From 226f3ec46be246f0d693ddbcc6725a7699818a76 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 2 Mar 2021 13:57:03 -0800 Subject: [PATCH 01/48] Use hash of source file text as version for the source file --- src/server/editorServices.ts | 10 +---- src/server/scriptInfo.ts | 41 +++++++------------ .../reference/api/tsserverlibrary.d.ts | 12 +----- 3 files changed, 17 insertions(+), 46 deletions(-) diff --git a/src/server/editorServices.ts b/src/server/editorServices.ts index d4c4277aba377..0ace48f73d8a2 100644 --- a/src/server/editorServices.ts +++ b/src/server/editorServices.ts @@ -677,12 +677,6 @@ namespace ts.server { /*@internal*/ readonly filenameToScriptInfo = new Map(); private readonly scriptInfoInNodeModulesWatchers = new Map(); - /** - * Contains all the deleted script info's version information so that - * it does not reset when creating script info again - * (and could have potentially collided with version where contents mismatch) - */ - private readonly filenameToScriptInfoVersion = new Map(); // Set of all '.js' files ever opened. private readonly allJsFilesForOpenFileTelemetry = new Map(); @@ -1612,7 +1606,6 @@ namespace ts.server { private deleteScriptInfo(info: ScriptInfo) { this.filenameToScriptInfo.delete(info.path); - this.filenameToScriptInfoVersion.set(info.path, info.getVersion()); const realpath = info.getRealpathIfDifferent(); if (realpath) { this.realpathToScriptInfos!.remove(realpath, info); // TODO: GH#18217 @@ -2746,9 +2739,8 @@ namespace ts.server { if (!openedByClient && !isDynamic && !(hostToQueryFileExistsOn || this.host).fileExists(fileName)) { return; } - info = new ScriptInfo(this.host, fileName, scriptKind!, !!hasMixedContent, path, this.filenameToScriptInfoVersion.get(path)); // TODO: GH#18217 + info = new ScriptInfo(this.host, fileName, scriptKind!, !!hasMixedContent, path); // TODO: GH#18217 this.filenameToScriptInfo.set(info.path, info); - this.filenameToScriptInfoVersion.delete(info.path); if (!openedByClient) { this.watchClosedScriptInfo(info); } diff --git a/src/server/scriptInfo.ts b/src/server/scriptInfo.ts index a26fcc6748932..a095c26737c83 100644 --- a/src/server/scriptInfo.ts +++ b/src/server/scriptInfo.ts @@ -1,12 +1,7 @@ namespace ts.server { - export interface ScriptInfoVersion { - svc: number; - text: number; - } - /* @internal */ export class TextStorage { - version: ScriptInfoVersion; + version: string | undefined; /** * Generated only on demand (based on edits, or information requested) @@ -46,14 +41,7 @@ namespace ts.server { */ private pendingReloadFromDisk = false; - constructor(private readonly host: ServerHost, private readonly info: ScriptInfo, initialVersion?: ScriptInfoVersion) { - this.version = initialVersion || { svc: 0, text: 0 }; - } - - public getVersion() { - return this.svc - ? `SVC-${this.version.svc}-${this.svc.getSnapshotVersion()}` - : `Text-${this.version.text}`; + constructor(private readonly host: ServerHost, private readonly info: ScriptInfo) { } public hasScriptVersionCache_TestOnly() { @@ -77,16 +65,17 @@ namespace ts.server { public useText(newText?: string) { this.svc = undefined; this.text = newText; + this.version = undefined; this.lineMap = undefined; this.fileSize = undefined; this.resetSourceMapInfo(); - this.version.text++; } public edit(start: number, end: number, newText: string) { this.switchToScriptVersionCache().edit(start, end - start, newText); this.ownFileText = false; this.text = undefined; + this.version = undefined; this.lineMap = undefined; this.fileSize = undefined; this.resetSourceMapInfo(); @@ -142,6 +131,7 @@ namespace ts.server { public delayReloadFromFileIntoText() { this.pendingReloadFromDisk = true; + this.version = undefined; } /** @@ -225,7 +215,6 @@ namespace ts.server { private switchToScriptVersionCache(): ScriptVersionCache { if (!this.svc || this.pendingReloadFromDisk) { this.svc = ScriptVersionCache.fromString(this.getOrLoadText()); - this.version.svc++; } return this.svc; } @@ -334,10 +323,10 @@ namespace ts.server { readonly scriptKind: ScriptKind, public readonly hasMixedContent: boolean, readonly path: Path, - initialVersion?: ScriptInfoVersion) { + ) { this.isDynamic = isDynamicFileName(fileName); - this.textStorage = new TextStorage(host, this, initialVersion); + this.textStorage = new TextStorage(host, this); if (hasMixedContent || this.isDynamic) { this.textStorage.reload(""); this.realpath = this.path; @@ -347,11 +336,6 @@ namespace ts.server { : getScriptKindFromFileName(fileName); } - /*@internal*/ - getVersion() { - return this.textStorage.version; - } - /*@internal*/ getTelemetryFileSize() { return this.textStorage.getTelemetryFileSize(); @@ -569,10 +553,15 @@ namespace ts.server { } } - getLatestVersion(): string { + getLatestVersion() { // Ensure we have updated snapshot to give back latest version - this.textStorage.getSnapshot(); - return this.textStorage.getVersion(); + const snapShot = this.textStorage.getSnapshot(); + if (this.textStorage.version === undefined) { + // Ensure we have updated snapshot to give back latest version + const text = getSnapshotText(snapShot); + this.textStorage.version = this.host.createHash ? this.host.createHash(text) : generateDjb2Hash(text); + } + return this.textStorage.version; } saveTo(fileName: string) { diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index d6ba9868cd499..94c9a48c44843 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -9474,10 +9474,6 @@ declare namespace ts.server.protocol { } } declare namespace ts.server { - interface ScriptInfoVersion { - svc: number; - text: number; - } function isDynamicFileName(fileName: NormalizedPath): boolean; class ScriptInfo { private readonly host; @@ -9492,7 +9488,7 @@ declare namespace ts.server { private formatSettings; private preferences; private textStorage; - constructor(host: ServerHost, fileName: NormalizedPath, scriptKind: ScriptKind, hasMixedContent: boolean, path: Path, initialVersion?: ScriptInfoVersion); + constructor(host: ServerHost, fileName: NormalizedPath, scriptKind: ScriptKind, hasMixedContent: boolean, path: Path); isScriptOpen(): boolean; open(newText: string): void; close(fileExists?: boolean): void; @@ -9953,12 +9949,6 @@ declare namespace ts.server { } export class ProjectService { private readonly scriptInfoInNodeModulesWatchers; - /** - * Contains all the deleted script info's version information so that - * it does not reset when creating script info again - * (and could have potentially collided with version where contents mismatch) - */ - private readonly filenameToScriptInfoVersion; private readonly allJsFilesForOpenFileTelemetry; /** * maps external project file name to list of config files that were the part of this project From bf5e953d6cc2c727a4dbaf93505b7a7806d8e1c6 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 11 May 2021 13:20:19 -0700 Subject: [PATCH 02/48] Add way to handle different script kind for the source file to determine if program is upto date --- src/compiler/program.ts | 7 +++++++ src/compiler/watchPublic.ts | 2 +- src/server/project.ts | 3 ++- src/services/services.ts | 2 +- src/testRunner/unittests/reuseProgramStructure.ts | 4 +++- 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 91529ceada8d4..0ed8f1906b26c 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -653,6 +653,7 @@ namespace ts { rootFileNames: string[], newOptions: CompilerOptions, getSourceVersion: (path: Path, fileName: string) => string | undefined, + getScriptKind: ((path: Path, fileName: string) => ScriptKind) | undefined, fileExists: (fileName: string) => boolean, hasInvalidatedResolution: HasInvalidatedResolution, hasChangedAutomaticTypeDirectiveNames: HasChangedAutomaticTypeDirectiveNames | undefined, @@ -688,6 +689,7 @@ namespace ts { function sourceFileNotUptoDate(sourceFile: SourceFile) { return !sourceFileVersionUptoDate(sourceFile) || + !sourceFileScriptKindUptoDate(sourceFile) || hasInvalidatedResolution(sourceFile.path); } @@ -695,6 +697,11 @@ namespace ts { return sourceFile.version === getSourceVersion(sourceFile.resolvedPath, sourceFile.fileName); } + function sourceFileScriptKindUptoDate(sourceFile: SourceFile) { + return !getScriptKind || + sourceFile.scriptKind === ensureScriptKind(sourceFile.fileName, getScriptKind(sourceFile.resolvedPath, sourceFile.fileName)); + } + function projectReferenceUptoDate(oldRef: ProjectReference, newRef: ProjectReference, index: number) { return projectReferenceIsEqualTo(oldRef, newRef) && resolvedProjectReferenceUptoDate(program!.getResolvedProjectReferences()![index], oldRef); diff --git a/src/compiler/watchPublic.ts b/src/compiler/watchPublic.ts index 0296e285b4520..0a7db974d1898 100644 --- a/src/compiler/watchPublic.ts +++ b/src/compiler/watchPublic.ts @@ -426,7 +426,7 @@ namespace ts { // All resolutions are invalid if user provided resolutions const hasInvalidatedResolution = resolutionCache.createHasInvalidatedResolution(userProvidedResolution); - if (isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, getSourceVersion, fileExists, hasInvalidatedResolution, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) { + if (isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, getSourceVersion, /*getScriptKind*/ undefined, fileExists, hasInvalidatedResolution, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) { if (hasChangedConfigFileParsingErrors) { builderProgram = createProgram(/*rootNames*/ undefined, /*options*/ undefined, compilerHost, builderProgram, configFileParsingDiagnostics, projectReferences); hasChangedConfigFileParsingErrors = false; diff --git a/src/server/project.ts b/src/server/project.ts index d3bb46302b82d..0c3e6c5cdc0f6 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -412,7 +412,8 @@ namespace ts.server { } getScriptKind(fileName: string) { - const info = this.getOrCreateScriptInfoAndAttachToProject(fileName); + // Don't attach to the project if script kind is asked + const info = this.projectService.getOrCreateScriptInfoNotOpenedByClient(fileName, this.currentDirectory, this.directoryStructureHost); return (info && info.scriptKind)!; // TODO: GH#18217 } diff --git a/src/services/services.ts b/src/services/services.ts index afe43e32a79c2..8bd3b65c5f1d9 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -1312,7 +1312,7 @@ namespace ts { }; // If the program is already up-to-date, we can reuse it - if (isProgramUptoDate(program, rootFileNames, newSettings, (_path, fileName) => host.getScriptVersion(fileName), fileExists, hasInvalidatedResolution, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) { + if (isProgramUptoDate(program, rootFileNames, newSettings, (_path, fileName) => host.getScriptVersion(fileName), host.getScriptKind ? (_path, fileName) => host.getScriptKind!(fileName) : undefined, fileExists, hasInvalidatedResolution, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) { return; } diff --git a/src/testRunner/unittests/reuseProgramStructure.ts b/src/testRunner/unittests/reuseProgramStructure.ts index 2face82e2d0aa..1cad884575990 100644 --- a/src/testRunner/unittests/reuseProgramStructure.ts +++ b/src/testRunner/unittests/reuseProgramStructure.ts @@ -913,7 +913,9 @@ namespace ts { ) { return isProgramUptoDate( program, newRootFileNames, newOptions, - path => program.getSourceFileByPath(path)!.version, /*fileExists*/ returnFalse, + path => program.getSourceFileByPath(path)!.version, + /*getScfriptKind*/ undefined, + /*fileExists*/ returnFalse, /*hasInvalidatedResolution*/ returnFalse, /*hasChangedAutomaticTypeDirectiveNames*/ undefined, /*getParsedCommandLine*/ returnUndefined, From 364826d257291d1d57e9e3376ad4125e2e2c4dbe Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 2 Mar 2021 15:30:34 -0800 Subject: [PATCH 03/48] Let source file store resolutions with failed lookup locations --- src/compiler/builderState.ts | 2 +- src/compiler/checker.ts | 2 +- src/compiler/program.ts | 108 +++++++++++------- src/compiler/resolutionCache.ts | 21 ++-- src/compiler/tsbuildPublic.ts | 4 +- src/compiler/types.ts | 10 +- src/compiler/utilities.ts | 42 ++++--- src/compiler/watchPublic.ts | 4 +- src/server/project.ts | 10 +- src/services/findAllReferences.ts | 2 +- src/services/getEditsForFileRename.ts | 7 +- src/services/goToDefinition.ts | 2 +- src/services/services.ts | 4 +- src/services/types.ts | 7 +- .../unittests/reuseProgramStructure.ts | 14 +-- .../unittests/tsserver/typingsInstaller.ts | 2 +- .../reference/api/tsserverlibrary.d.ts | 18 ++- tests/baselines/reference/api/typescript.d.ts | 13 +-- 18 files changed, 139 insertions(+), 133 deletions(-) diff --git a/src/compiler/builderState.ts b/src/compiler/builderState.ts index c150098fff9fb..0a282b1ff067c 100644 --- a/src/compiler/builderState.ts +++ b/src/compiler/builderState.ts @@ -146,7 +146,7 @@ namespace ts { // Handle type reference directives if (sourceFile.resolvedTypeReferenceDirectiveNames) { - sourceFile.resolvedTypeReferenceDirectiveNames.forEach((resolvedTypeReferenceDirective) => { + sourceFile.resolvedTypeReferenceDirectiveNames.forEach(({ resolvedTypeReferenceDirective }) => { if (!resolvedTypeReferenceDirective) { return; } diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 814c42af9b183..93be98527a1c5 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -300,7 +300,7 @@ namespace ts { if (!sf.resolvedModules) return; forEachEntry(sf.resolvedModules, r => { - if (r && r.packageId) set.add(r.packageId.name); + if (r.resolvedModule?.packageId) set.add(r.resolvedModule.packageId.name); }); }); return set; diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 0ed8f1906b26c..5e7150c60d934 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -582,6 +582,20 @@ namespace ts { allDiagnostics?: readonly T[]; } + const emptyResolution: ResolvedModuleWithFailedLookupLocations & ResolvedTypeReferenceDirectiveWithFailedLookupLocations = { + resolvedModule: undefined, + resolvedTypeReferenceDirective: undefined, + failedLookupLocations: [] + }; + + function isResolvedModuleWithFailedLookupLocation(resolved: ResolvedModuleWithFailedLookupLocations | ResolvedModule | undefined): resolved is ResolvedModuleWithFailedLookupLocations { + return !!resolved && !!(resolved as ResolvedModuleWithFailedLookupLocations).failedLookupLocations; + } + + function isResolvedTypeReferenceDirectiveWithFailedLookupLocations(resolved: ResolvedTypeReferenceDirectiveWithFailedLookupLocations | ResolvedTypeReferenceDirective | undefined): resolved is ResolvedTypeReferenceDirectiveWithFailedLookupLocations { + return !!resolved && !!(resolved as ResolvedTypeReferenceDirectiveWithFailedLookupLocations).failedLookupLocations; + } + /*@internal*/ export function isReferencedFile(reason: FileIncludeReason | undefined): reason is ReferencedFile { switch (reason?.kind) { @@ -623,7 +637,7 @@ namespace ts { switch (kind) { case FileIncludeKind.Import: const importLiteral = getModuleNameStringLiteralAt(file, index); - packageId = file.resolvedModules?.get(importLiteral.text)?.packageId; + packageId = file.resolvedModules?.get(importLiteral.text)?.resolvedModule?.packageId; if (importLiteral.pos === -1) return { file, packageId, text: importLiteral.text }; pos = skipTrivia(file.text, importLiteral.pos); end = importLiteral.end; @@ -633,7 +647,7 @@ namespace ts { break; case FileIncludeKind.TypeReferenceDirective: ({ pos, end } = file.typeReferenceDirectives[index]); - packageId = file.resolvedTypeReferenceDirectiveNames?.get(toFileNameLowerCase(file.typeReferenceDirectives[index].fileName))?.packageId; + packageId = file.resolvedTypeReferenceDirectiveNames?.get(toFileNameLowerCase(file.typeReferenceDirectives[index].fileName))?.resolvedTypeReferenceDirective?.packageId; break; case FileIncludeKind.LibReferenceDirective: ({ pos, end } = file.libReferenceDirectives[index]); @@ -849,28 +863,39 @@ namespace ts { let moduleResolutionCache: ModuleResolutionCache | undefined; let typeReferenceDirectiveResolutionCache: TypeReferenceDirectiveResolutionCache | undefined; - let actualResolveModuleNamesWorker: (moduleNames: string[], containingFile: string, reusedNames?: string[], redirectedReference?: ResolvedProjectReference) => ResolvedModuleFull[]; + let actualResolveModuleNamesWorker: (moduleNames: string[], containingFile: string, reusedNames?: string[], redirectedReference?: ResolvedProjectReference) => ResolvedModuleWithFailedLookupLocations[]; const hasInvalidatedResolution = host.hasInvalidatedResolution || returnFalse; if (host.resolveModuleNames) { - actualResolveModuleNamesWorker = (moduleNames, containingFile, reusedNames, redirectedReference) => host.resolveModuleNames!(Debug.checkEachDefined(moduleNames), containingFile, reusedNames, redirectedReference, options).map(resolved => { - // An older host may have omitted extension, in which case we should infer it from the file extension of resolvedFileName. - if (!resolved || (resolved as ResolvedModuleFull).extension !== undefined) { - return resolved as ResolvedModuleFull; - } - const withExtension = clone(resolved) as ResolvedModuleFull; - withExtension.extension = extensionFromPath(resolved.resolvedFileName); - return withExtension; - }); + actualResolveModuleNamesWorker = (moduleNames, containingFile, reusedNames, redirectedReference) => { + const result = host.resolveModuleNames!(Debug.checkEachDefined(moduleNames), containingFile, reusedNames, redirectedReference, options); + return result.some(isResolvedModuleWithFailedLookupLocation) ? + result as ResolvedModuleWithFailedLookupLocations[] : + (result as (ResolvedModule | undefined)[]).map(resolved => resolved ? + (resolved as ResolvedModuleFull).extension !== undefined ? + // An older host may have omitted extension, in which case we should infer it from the file extension of resolvedFileName. + { resolvedModule: resolved as ResolvedModuleFull, failedLookupLocations: emptyResolution.failedLookupLocations } : + { resolvedModule: { ...resolved, extension: extensionFromPath(resolved.resolvedFileName) }, failedLookupLocations: emptyResolution.failedLookupLocations } : + emptyResolution + ); + }; } else { moduleResolutionCache = createModuleResolutionCache(currentDirectory, getCanonicalFileName, options); - const loader = (moduleName: string, containingFile: string, redirectedReference: ResolvedProjectReference | undefined) => resolveModuleName(moduleName, containingFile, options, host, moduleResolutionCache, redirectedReference).resolvedModule!; // TODO: GH#18217 - actualResolveModuleNamesWorker = (moduleNames, containingFile, _reusedNames, redirectedReference) => loadWithLocalCache(Debug.checkEachDefined(moduleNames), containingFile, redirectedReference, loader); + const loader = (moduleName: string, containingFile: string, redirectedReference: ResolvedProjectReference | undefined) => resolveModuleName(moduleName, containingFile, options, host, moduleResolutionCache, redirectedReference); + actualResolveModuleNamesWorker = (moduleNames, containingFile, _reusedNames, redirectedReference) => loadWithLocalCache(Debug.checkEachDefined(moduleNames), containingFile, redirectedReference, loader); } - let actualResolveTypeReferenceDirectiveNamesWorker: (typeDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference) => (ResolvedTypeReferenceDirective | undefined)[]; + let actualResolveTypeReferenceDirectiveNamesWorker: (typeDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference) => ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; if (host.resolveTypeReferenceDirectives) { - actualResolveTypeReferenceDirectiveNamesWorker = (typeDirectiveNames, containingFile, redirectedReference) => host.resolveTypeReferenceDirectives!(Debug.checkEachDefined(typeDirectiveNames), containingFile, redirectedReference, options); + actualResolveTypeReferenceDirectiveNamesWorker = (typeDirectiveNames, containingFile, redirectedReference) => { + const result = host.resolveTypeReferenceDirectives!(Debug.checkEachDefined(typeDirectiveNames), containingFile, redirectedReference, options); + return result.some(isResolvedTypeReferenceDirectiveWithFailedLookupLocations) ? + result as ResolvedTypeReferenceDirectiveWithFailedLookupLocations[] : + (result as (ResolvedTypeReferenceDirective | undefined)[]).map(resolved => resolved ? + { resolvedTypeReferenceDirective: resolved, failedLookupLocations: emptyResolution.failedLookupLocations } : + emptyResolution + ); + }; } else { typeReferenceDirectiveResolutionCache = createTypeReferenceDirectiveResolutionCache(currentDirectory, getCanonicalFileName, /*options*/ undefined, moduleResolutionCache?.getPackageJsonInfoCache()); @@ -881,8 +906,8 @@ namespace ts { host, redirectedReference, typeReferenceDirectiveResolutionCache, - ).resolvedTypeReferenceDirective!; // TODO: GH#18217 - actualResolveTypeReferenceDirectiveNamesWorker = (typeReferenceDirectiveNames, containingFile, redirectedReference) => loadWithLocalCache(Debug.checkEachDefined(typeReferenceDirectiveNames), containingFile, redirectedReference, loader); + ); + actualResolveTypeReferenceDirectiveNamesWorker = (typeReferenceDirectiveNames, containingFile, redirectedReference) => loadWithLocalCache(Debug.checkEachDefined(typeReferenceDirectiveNames), containingFile, redirectedReference, loader); } // Map from a stringified PackageId to the source file with that id. @@ -983,7 +1008,7 @@ namespace ts { const containingFilename = combinePaths(containingDirectory, inferredTypesContainingFile); const resolutions = resolveTypeReferenceDirectiveNamesWorker(typeReferences, containingFilename); for (let i = 0; i < typeReferences.length; i++) { - processTypeReferenceDirective(typeReferences[i], resolutions[i], { kind: FileIncludeKind.AutomaticTypeDirectiveFile, typeReference: typeReferences[i], packageId: resolutions[i]?.packageId }); + processTypeReferenceDirective(typeReferences[i], resolutions[i], { kind: FileIncludeKind.AutomaticTypeDirectiveFile, typeReference: typeReferences[i], packageId: resolutions[i]?.resolvedTypeReferenceDirective?.packageId }); } tracing?.pop(); } @@ -1095,7 +1120,6 @@ namespace ts { redirectTargetsMap, isEmittedFile, getConfigFileParsingDiagnostics, - getResolvedModuleWithFailedLookupLocationsFromCache, getProjectReferences, getResolvedProjectReferences, getProjectReferenceRedirect, @@ -1135,7 +1159,7 @@ namespace ts { return program; - function resolveModuleNamesWorker(moduleNames: string[], containingFile: SourceFile, reusedNames: string[] | undefined): readonly ResolvedModuleFull[] { + function resolveModuleNamesWorker(moduleNames: string[], containingFile: SourceFile, reusedNames: string[] | undefined): readonly ResolvedModuleWithFailedLookupLocations[] { if (!moduleNames.length) return emptyArray; const containingFileName = getNormalizedAbsolutePath(containingFile.originalFileName, currentDirectory); const redirectedReference = getRedirectReferenceForResolution(containingFile); @@ -1148,7 +1172,7 @@ namespace ts { return result; } - function resolveTypeReferenceDirectiveNamesWorker(typeDirectiveNames: string[], containingFile: string | SourceFile): readonly (ResolvedTypeReferenceDirective | undefined)[] { + function resolveTypeReferenceDirectiveNamesWorker(typeDirectiveNames: string[], containingFile: string | SourceFile): readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[] { if (!typeDirectiveNames.length) return []; const containingFileName = !isString(containingFile) ? getNormalizedAbsolutePath(containingFile.originalFileName, currentDirectory) : containingFile; const redirectedReference = !isString(containingFile) ? getRedirectReferenceForResolution(containingFile) : undefined; @@ -1207,10 +1231,6 @@ namespace ts { return libs.length + 2; } - function getResolvedModuleWithFailedLookupLocationsFromCache(moduleName: string, containingFile: string): ResolvedModuleWithFailedLookupLocations | undefined { - return moduleResolutionCache && resolveModuleNameFromCache(moduleName, containingFile, moduleResolutionCache); - } - function toPath(fileName: string): Path { return ts.toPath(fileName, currentDirectory, getCanonicalFileName); } @@ -1243,7 +1263,7 @@ namespace ts { return classifiableNames; } - function resolveModuleNamesReusingOldState(moduleNames: string[], file: SourceFile): readonly ResolvedModuleFull[] { + function resolveModuleNamesReusingOldState(moduleNames: string[], file: SourceFile): readonly ResolvedModuleWithFailedLookupLocations[] { if (structureIsReused === StructureIsReused.Not && !file.ambientModuleNames.length) { // If the old program state does not permit reusing resolutions and `file` does not contain locally defined ambient modules, // the best we can do is fallback to the default logic. @@ -1260,7 +1280,7 @@ namespace ts { // which per above occurred during the current program creation. // Since we assume the filesystem does not change during program creation, // it is safe to reuse resolutions from the earlier call. - const result: ResolvedModuleFull[] = []; + const result: ResolvedModuleWithFailedLookupLocations[] = []; for (const moduleName of moduleNames) { const resolvedModule = file.resolvedModules.get(moduleName)!; result.push(resolvedModule); @@ -1283,26 +1303,26 @@ namespace ts { * Needs to be reset to undefined before returning, * * ResolvedModuleFull instance: can be reused. */ - let result: ResolvedModuleFull[] | undefined; let reusedNames: string[] | undefined; /** A transient placeholder used to mark predicted resolution in the result list. */ - const predictedToResolveToAmbientModuleMarker: ResolvedModuleFull = {} as any; + const predictedToResolveToAmbientModuleMarker = true; + let result: (ResolvedModuleWithFailedLookupLocations | typeof predictedToResolveToAmbientModuleMarker)[] | undefined; for (let i = 0; i < moduleNames.length; i++) { const moduleName = moduleNames[i]; // If the source file is unchanged and doesnt have invalidated resolution, reuse the module resolutions if (file === oldSourceFile && !hasInvalidatedResolution(oldSourceFile.path)) { - const oldResolvedModule = getResolvedModule(oldSourceFile, moduleName); - if (oldResolvedModule) { + const oldResolvedModule = oldSourceFile.resolvedModules?.get(moduleName); + if (oldResolvedModule?.resolvedModule) { if (isTraceEnabled(options, host)) { trace(host, - oldResolvedModule.packageId ? + oldResolvedModule.resolvedModule.packageId ? Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2, moduleName, getNormalizedAbsolutePath(file.originalFileName, currentDirectory), - oldResolvedModule.resolvedFileName, - oldResolvedModule.packageId && packageIdToString(oldResolvedModule.packageId) + oldResolvedModule.resolvedModule.resolvedFileName, + oldResolvedModule.resolvedModule.packageId && packageIdToString(oldResolvedModule.resolvedModule.packageId) ); } (result || (result = new Array(moduleNames.length)))[i] = oldResolvedModule; @@ -1351,7 +1371,7 @@ namespace ts { // `result[i]` is either a `ResolvedModuleFull` or a marker. // If it is the former, we can leave it as is. if (result[i] === predictedToResolveToAmbientModuleMarker) { - result[i] = undefined!; // TODO: GH#18217 + result[i] = emptyResolution; } } else { @@ -1361,7 +1381,7 @@ namespace ts { } Debug.assert(j === resolutions.length); - return result; + return result as ResolvedModuleWithFailedLookupLocations[]; // If we change our policy of rechecking failed lookups on each program create, // we should adjust the value returned here. @@ -2819,7 +2839,7 @@ namespace ts { function processTypeReferenceDirective( typeReferenceDirective: string, - resolvedTypeReferenceDirective: ResolvedTypeReferenceDirective | undefined, + { resolvedTypeReferenceDirective }: ResolvedTypeReferenceDirectiveWithFailedLookupLocations, reason: FileIncludeReason ): void { tracing?.push(tracing.Phase.Program, "processTypeReferenceDirective", { directive: typeReferenceDirective, hasResolved: !!resolveModuleNamesReusingOldState, refKind: reason.kind, refPath: isReferencedFile(reason) ? reason.file : undefined }); @@ -2921,14 +2941,14 @@ namespace ts { const resolution = resolutions[index]; setResolvedModule(file, moduleNames[index], resolution); - if (!resolution) { + if (!resolution.resolvedModule) { continue; } - const isFromNodeModulesSearch = resolution.isExternalLibraryImport; - const isJsFile = !resolutionExtensionIsTSOrJson(resolution.extension); + const isFromNodeModulesSearch = resolution.resolvedModule.isExternalLibraryImport; + const isJsFile = !resolutionExtensionIsTSOrJson(resolution.resolvedModule.extension); const isJsFileFromNodeModules = isFromNodeModulesSearch && isJsFile; - const resolvedFileName = resolution.resolvedFileName; + const resolvedFileName = resolution.resolvedModule.resolvedFileName; if (isFromNodeModulesSearch) { currentNodeModulesDepth++; @@ -2943,7 +2963,7 @@ namespace ts { // Don't add the file if it has a bad extension (e.g. 'tsx' if we don't have '--allowJs') // This may still end up being an untyped module -- the file won't be included but imports will be allowed. const shouldAddFile = resolvedFileName - && !getResolutionDiagnostic(optionsForFile, resolution) + && !getResolutionDiagnostic(optionsForFile, resolution.resolvedModule) && !optionsForFile.noResolve && index < file.imports.length && !elideImport @@ -2961,7 +2981,7 @@ namespace ts { /*isDefaultLib*/ false, /*ignoreNoDefaultLib*/ false, { kind: FileIncludeKind.Import, file: file.path, index, }, - resolution.packageId, + resolution.resolvedModule.packageId, ); } diff --git a/src/compiler/resolutionCache.ts b/src/compiler/resolutionCache.ts index bccb5af9b55fe..e7d9417f6836d 100644 --- a/src/compiler/resolutionCache.ts +++ b/src/compiler/resolutionCache.ts @@ -5,9 +5,8 @@ namespace ts { startRecordingFilesWithChangedResolutions(): void; finishRecordingFilesWithChangedResolutions(): Path[] | undefined; - resolveModuleNames(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference?: ResolvedProjectReference): (ResolvedModuleFull | undefined)[]; - getResolvedModuleWithFailedLookupLocationsFromCache(moduleName: string, containingFile: string): CachedResolvedModuleWithFailedLookupLocations | undefined; - resolveTypeReferenceDirectives(typeDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference): (ResolvedTypeReferenceDirective | undefined)[]; + resolveModuleNames(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations[]; + resolveTypeReferenceDirectives(typeDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference): ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; invalidateResolutionsOfFailedLookupLocations(): boolean; invalidateResolutionOfFile(filePath: Path): void; @@ -210,7 +209,6 @@ namespace ts { startCachingPerDirectoryResolution: clearPerDirectoryResolutions, finishCachingPerDirectoryResolution, resolveModuleNames, - getResolvedModuleWithFailedLookupLocationsFromCache, resolveTypeReferenceDirectives, removeResolutionsFromProjectReferenceRedirects, removeResolutionsOfFile, @@ -364,7 +362,7 @@ namespace ts { cache, perDirectoryCacheWithRedirects, loader, getResolutionWithResolvedFileName, shouldRetryResolution, reusedNames, logChanges - }: ResolveNamesWithLocalCacheInput): (R | undefined)[] { + }: ResolveNamesWithLocalCacheInput): T[] { const path = resolutionHost.toPath(containingFile); const resolutionsInFile = cache.get(path) || cache.set(path, new Map()).get(path)!; const dirPath = getDirectoryPath(path); @@ -374,7 +372,7 @@ namespace ts { perDirectoryResolution = new Map(); perDirectoryCache.set(dirPath, perDirectoryResolution); } - const resolvedModules: (R | undefined)[] = []; + const resolvedModules: T[] = []; const compilerOptions = resolutionHost.getCompilationSettings(); const hasInvalidatedNonRelativeUnresolvedImport = logChanges && isFileWithInvalidatedNonRelativeUnresolvedImports(path); @@ -463,7 +461,7 @@ namespace ts { } Debug.assert(resolution !== undefined && !resolution.isInvalidated); seenNamesInFile.set(name, true); - resolvedModules.push(getResolutionWithResolvedFileName(resolution)); + resolvedModules.push(resolution); } // Stop watching and remove the unused name @@ -495,7 +493,7 @@ namespace ts { } } - function resolveTypeReferenceDirectives(typeDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference): (ResolvedTypeReferenceDirective | undefined)[] { + function resolveTypeReferenceDirectives(typeDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference) { return resolveNamesWithLocalCache({ names: typeDirectiveNames, containingFile, @@ -508,7 +506,7 @@ namespace ts { }); } - function resolveModuleNames(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference?: ResolvedProjectReference): (ResolvedModuleFull | undefined)[] { + function resolveModuleNames(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference?: ResolvedProjectReference) { return resolveNamesWithLocalCache({ names: moduleNames, containingFile, @@ -523,11 +521,6 @@ namespace ts { }); } - function getResolvedModuleWithFailedLookupLocationsFromCache(moduleName: string, containingFile: string): CachedResolvedModuleWithFailedLookupLocations | undefined { - const cache = resolvedModuleNames.get(resolutionHost.toPath(containingFile)); - return cache && cache.get(moduleName); - } - function isNodeModulesAtTypesDirectory(dirPath: Path) { return endsWith(dirPath, "/node_modules/@types"); } diff --git a/src/compiler/tsbuildPublic.ts b/src/compiler/tsbuildPublic.ts index 9c329520c7600..f818ee286b336 100644 --- a/src/compiler/tsbuildPublic.ts +++ b/src/compiler/tsbuildPublic.ts @@ -278,9 +278,9 @@ namespace ts { const moduleResolutionCache = !compilerHost.resolveModuleNames ? createModuleResolutionCache(currentDirectory, getCanonicalFileName) : undefined; const typeReferenceDirectiveResolutionCache = !compilerHost.resolveTypeReferenceDirectives ? createTypeReferenceDirectiveResolutionCache(currentDirectory, getCanonicalFileName, /*options*/ undefined, moduleResolutionCache?.getPackageJsonInfoCache()) : undefined; if (!compilerHost.resolveModuleNames) { - const loader = (moduleName: string, containingFile: string, redirectedReference: ResolvedProjectReference | undefined) => resolveModuleName(moduleName, containingFile, state.projectCompilerOptions, compilerHost, moduleResolutionCache, redirectedReference).resolvedModule!; + const loader = (moduleName: string, containingFile: string, redirectedReference: ResolvedProjectReference | undefined) => resolveModuleName(moduleName, containingFile, state.projectCompilerOptions, compilerHost, moduleResolutionCache, redirectedReference); compilerHost.resolveModuleNames = (moduleNames, containingFile, _reusedNames, redirectedReference) => - loadWithLocalCache(Debug.checkEachDefined(moduleNames), containingFile, redirectedReference, loader); + loadWithLocalCache(moduleNames, containingFile, redirectedReference, loader); } if (!compilerHost.resolveTypeReferenceDirectives) { const loader = (moduleName: string, containingFile: string, redirectedReference: ResolvedProjectReference | undefined) => resolveTypeReferenceDirective(moduleName, containingFile, state.projectCompilerOptions, compilerHost, redirectedReference, state.typeReferenceDirectiveResolutionCache).resolvedTypeReferenceDirective!; diff --git a/src/compiler/types.ts b/src/compiler/types.ts index f2765d04ebca2..8e5c95e96f6df 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -3573,8 +3573,8 @@ namespace ts { // Stores a mapping 'external module reference text' -> 'resolved file name' | undefined // It is used to resolve module names in the checker. // Content of this field should never be used directly - use getResolvedModuleFileName/setResolvedModuleFileName functions instead - /* @internal */ resolvedModules?: ESMap; - /* @internal */ resolvedTypeReferenceDirectiveNames: ESMap; + /* @internal */ resolvedModules?: ESMap; + /* @internal */ resolvedTypeReferenceDirectiveNames: ESMap; /* @internal */ imports: readonly StringLiteralLike[]; // Identifier only if `declare global` /* @internal */ moduleAugmentations: readonly (StringLiteral | Identifier)[]; @@ -3952,8 +3952,6 @@ namespace ts { /* @internal */ getFileIncludeReasons(): MultiMap; /* @internal */ useCaseSensitiveFileNames(): boolean; - /* @internal */ getResolvedModuleWithFailedLookupLocationsFromCache(moduleName: string, containingFile: string): ResolvedModuleWithFailedLookupLocations | undefined; - getProjectReferences(): readonly ProjectReference[] | undefined; getResolvedProjectReferences(): readonly (ResolvedProjectReference | undefined)[] | undefined; /*@internal*/ getProjectReferenceRedirect(fileName: string): string | undefined; @@ -6546,11 +6544,11 @@ namespace ts { * If resolveModuleNames is implemented then implementation for members from ModuleResolutionHost can be just * 'throw new Error("NotImplemented")' */ - resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedModule | undefined)[]; + resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): ResolvedModuleWithFailedLookupLocations[] | (ResolvedModule | undefined)[]; /** * This method is a companion for 'resolveModuleNames' and is used to resolve 'types' references to actual type declaration files */ - resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedTypeReferenceDirective | undefined)[]; + resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): ResolvedTypeReferenceDirectiveWithFailedLookupLocations[] | (ResolvedTypeReferenceDirective | undefined)[]; getEnvironmentVariable?(name: string): string | undefined; /* @internal */ onReleaseOldSourceFile?(oldSourceFile: SourceFile, oldOptions: CompilerOptions, hasSourceFileByPath: boolean): void; /* @internal */ onReleaseParsedCommandLine?(configFileName: string, oldResolvedRef: ResolvedProjectReference | undefined, optionOptions: CompilerOptions): void; diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 1970b9db104aa..9660c7e346b46 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -170,20 +170,20 @@ namespace ts { } export function getResolvedModule(sourceFile: SourceFile | undefined, moduleNameText: string): ResolvedModuleFull | undefined { - return sourceFile && sourceFile.resolvedModules && sourceFile.resolvedModules.get(moduleNameText); + return sourceFile?.resolvedModules?.get(moduleNameText)?.resolvedModule; } - export function setResolvedModule(sourceFile: SourceFile, moduleNameText: string, resolvedModule: ResolvedModuleFull): void { + export function setResolvedModule(sourceFile: SourceFile, moduleNameText: string, resolvedModule: ResolvedModuleWithFailedLookupLocations): void { if (!sourceFile.resolvedModules) { - sourceFile.resolvedModules = new Map(); + sourceFile.resolvedModules = new Map(); } sourceFile.resolvedModules.set(moduleNameText, resolvedModule); } - export function setResolvedTypeReferenceDirective(sourceFile: SourceFile, typeReferenceDirectiveName: string, resolvedTypeReferenceDirective?: ResolvedTypeReferenceDirective): void { + export function setResolvedTypeReferenceDirective(sourceFile: SourceFile, typeReferenceDirectiveName: string, resolvedTypeReferenceDirective: ResolvedTypeReferenceDirectiveWithFailedLookupLocations): void { if (!sourceFile.resolvedTypeReferenceDirectiveNames) { - sourceFile.resolvedTypeReferenceDirectiveNames = new Map(); + sourceFile.resolvedTypeReferenceDirectiveNames = new Map(); } sourceFile.resolvedTypeReferenceDirectiveNames.set(typeReferenceDirectiveName, resolvedTypeReferenceDirective); @@ -195,12 +195,16 @@ namespace ts { !oldRef.circular === !newRef.circular; } - export function moduleResolutionIsEqualTo(oldResolution: ResolvedModuleFull, newResolution: ResolvedModuleFull): boolean { - return oldResolution.isExternalLibraryImport === newResolution.isExternalLibraryImport && - oldResolution.extension === newResolution.extension && - oldResolution.resolvedFileName === newResolution.resolvedFileName && - oldResolution.originalPath === newResolution.originalPath && - packageIdIsEqual(oldResolution.packageId, newResolution.packageId); + export function moduleResolutionIsEqualTo(oldResolution: ResolvedModuleWithFailedLookupLocations, newResolution: ResolvedModuleWithFailedLookupLocations): boolean { + return oldResolution === newResolution || + oldResolution.resolvedModule === newResolution.resolvedModule || + !!oldResolution.resolvedModule && + !!newResolution.resolvedModule && + oldResolution.resolvedModule.isExternalLibraryImport === newResolution.resolvedModule.isExternalLibraryImport && + oldResolution.resolvedModule.extension === newResolution.resolvedModule.extension && + oldResolution.resolvedModule.resolvedFileName === newResolution.resolvedModule.resolvedFileName && + oldResolution.resolvedModule.originalPath === newResolution.resolvedModule.originalPath && + packageIdIsEqual(oldResolution.resolvedModule.packageId, newResolution.resolvedModule.packageId); } function packageIdIsEqual(a: PackageId | undefined, b: PackageId | undefined): boolean { @@ -212,10 +216,14 @@ namespace ts { return `${fullName}@${version}`; } - export function typeDirectiveIsEqualTo(oldResolution: ResolvedTypeReferenceDirective, newResolution: ResolvedTypeReferenceDirective): boolean { - return oldResolution.resolvedFileName === newResolution.resolvedFileName - && oldResolution.primary === newResolution.primary - && oldResolution.originalPath === newResolution.originalPath; + export function typeDirectiveIsEqualTo(oldResolution: ResolvedTypeReferenceDirectiveWithFailedLookupLocations, newResolution: ResolvedTypeReferenceDirectiveWithFailedLookupLocations): boolean { + return oldResolution === newResolution || + oldResolution.resolvedTypeReferenceDirective === newResolution.resolvedTypeReferenceDirective || + !!oldResolution.resolvedTypeReferenceDirective && + !!newResolution.resolvedTypeReferenceDirective && + oldResolution.resolvedTypeReferenceDirective.resolvedFileName === newResolution.resolvedTypeReferenceDirective.resolvedFileName && + oldResolution.resolvedTypeReferenceDirective.primary === newResolution.resolvedTypeReferenceDirective.primary && + oldResolution.resolvedTypeReferenceDirective.originalPath === newResolution.resolvedTypeReferenceDirective.originalPath; } export function hasChangesInResolutions( @@ -6206,9 +6214,9 @@ namespace ts { export function discoverProbableSymlinks(files: readonly SourceFile[], getCanonicalFileName: GetCanonicalFileName, cwd: string): SymlinkCache { const cache = createSymlinkCache(cwd, getCanonicalFileName); const symlinks = flatMap(files, sf => { - const pairs = sf.resolvedModules && arrayFrom(mapDefinedIterator(sf.resolvedModules.values(), res => + const pairs = sf.resolvedModules && arrayFrom(mapDefinedIterator(sf.resolvedModules.values(), ({ resolvedModule: res }) => res?.originalPath ? [res.resolvedFileName, res.originalPath] as const : undefined)); - return concatenate(pairs, sf.resolvedTypeReferenceDirectiveNames && arrayFrom(mapDefinedIterator(sf.resolvedTypeReferenceDirectiveNames.values(), res => + return concatenate(pairs, sf.resolvedTypeReferenceDirectiveNames && arrayFrom(mapDefinedIterator(sf.resolvedTypeReferenceDirectiveNames.values(), ({ resolvedTypeReferenceDirective: res }) => res?.originalPath && res.resolvedFileName ? [res.resolvedFileName, res.originalPath] as const : undefined))); }); diff --git a/src/compiler/watchPublic.ts b/src/compiler/watchPublic.ts index 0a7db974d1898..d91a21eff391b 100644 --- a/src/compiler/watchPublic.ts +++ b/src/compiler/watchPublic.ts @@ -101,9 +101,9 @@ namespace ts { getEnvironmentVariable?(name: string): string | undefined; /** If provided, used to resolve the module names, otherwise typescript's default module resolution */ - resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedModule | undefined)[]; + resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): ResolvedModuleWithFailedLookupLocations[] | (ResolvedModule | undefined)[]; /** If provided, used to resolve type reference directives, otherwise typescript's default resolution */ - resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedTypeReferenceDirective | undefined)[]; + resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): ResolvedTypeReferenceDirectiveWithFailedLookupLocations[] | (ResolvedTypeReferenceDirective | undefined)[]; } /** Internal interface used to wire emit through same host */ diff --git a/src/server/project.ts b/src/server/project.ts index 0c3e6c5cdc0f6..00ab6052e35e8 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -467,15 +467,11 @@ namespace ts.server { return !this.isWatchedMissingFile(path) && this.directoryStructureHost.fileExists(file); } - resolveModuleNames(moduleNames: string[], containingFile: string, reusedNames?: string[], redirectedReference?: ResolvedProjectReference): (ResolvedModuleFull | undefined)[] { + resolveModuleNames(moduleNames: string[], containingFile: string, reusedNames?: string[], redirectedReference?: ResolvedProjectReference) { return this.resolutionCache.resolveModuleNames(moduleNames, containingFile, reusedNames, redirectedReference); } - getResolvedModuleWithFailedLookupLocationsFromCache(moduleName: string, containingFile: string): ResolvedModuleWithFailedLookupLocations | undefined { - return this.resolutionCache.getResolvedModuleWithFailedLookupLocationsFromCache(moduleName, containingFile); - } - - resolveTypeReferenceDirectives(typeDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference): (ResolvedTypeReferenceDirective | undefined)[] { + resolveTypeReferenceDirectives(typeDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference) { return this.resolutionCache.resolveTypeReferenceDirectives(typeDirectiveNames, containingFile, redirectedReference); } @@ -1742,7 +1738,7 @@ namespace ts.server { return getOrUpdate(cachedUnresolvedImportsPerFile, file.path, () => { if (!file.resolvedModules) return emptyArray; let unresolvedImports: string[] | undefined; - file.resolvedModules.forEach((resolvedModule, name) => { + file.resolvedModules.forEach(({ resolvedModule }, name) => { // pick unresolved non-relative names if ((!resolvedModule || !resolutionExtensionIsTSOrJson(resolvedModule.extension)) && !isExternalModuleNameRelative(name) && diff --git a/src/services/findAllReferences.ts b/src/services/findAllReferences.ts index cbcb270917b52..fb91c5ec1e403 100644 --- a/src/services/findAllReferences.ts +++ b/src/services/findAllReferences.ts @@ -658,7 +658,7 @@ namespace ts.FindAllReferences { if (!options.implementations && isStringLiteralLike(node)) { if (isModuleSpecifierLike(node)) { const fileIncludeReasons = program.getFileIncludeReasons(); - const referencedFileName = node.getSourceFile().resolvedModules?.get(node.text)?.resolvedFileName; + const referencedFileName = node.getSourceFile().resolvedModules?.get(node.text)?.resolvedModule?.resolvedFileName; const referencedFile = referencedFileName ? program.getSourceFile(referencedFileName) : undefined; if (referencedFile) { return [{ definition: { type: DefinitionKind.String, node }, references: getReferencesForNonModule(referencedFile, fileIncludeReasons, program) || emptyArray }]; diff --git a/src/services/getEditsForFileRename.ts b/src/services/getEditsForFileRename.ts index 563e10680522a..d29c07681e0cf 100644 --- a/src/services/getEditsForFileRename.ts +++ b/src/services/getEditsForFileRename.ts @@ -153,7 +153,7 @@ namespace ts { // TODO:GH#18217 ? getSourceFileToImportFromResolved(importLiteral, resolveModuleName(importLiteral.text, oldImportFromPath, program.getCompilerOptions(), host as ModuleResolutionHost), oldToNew, allFiles) - : getSourceFileToImport(importedModuleSymbol, importLiteral, sourceFile, program, host, oldToNew); + : getSourceFileToImport(importedModuleSymbol, importLiteral, sourceFile, program, oldToNew); // Need an update if the imported file moved, or the importing file moved and was using a relative path. return toImport !== undefined && (toImport.updated || (importingSourceFileMoved && pathIsRelative(importLiteral.text))) @@ -180,7 +180,6 @@ namespace ts { importLiteral: StringLiteralLike, importingSourceFile: SourceFile, program: Program, - host: LanguageServiceHost, oldToNew: PathUpdater, ): ToImport | undefined { if (importedModuleSymbol) { @@ -190,9 +189,7 @@ namespace ts { return newFileName === undefined ? { newFileName: oldFileName, updated: false } : { newFileName, updated: true }; } else { - const resolved = host.resolveModuleNames - ? host.getResolvedModuleWithFailedLookupLocationsFromCache && host.getResolvedModuleWithFailedLookupLocationsFromCache(importLiteral.text, importingSourceFile.fileName) - : program.getResolvedModuleWithFailedLookupLocationsFromCache(importLiteral.text, importingSourceFile.fileName); + const resolved = importingSourceFile.resolvedModules?.get(importLiteral.text); return getSourceFileToImportFromResolved(importLiteral, resolved, oldToNew, program.getSourceFiles()); } } diff --git a/src/services/goToDefinition.ts b/src/services/goToDefinition.ts index 1ece63e531790..f532d2312530a 100644 --- a/src/services/goToDefinition.ts +++ b/src/services/goToDefinition.ts @@ -136,7 +136,7 @@ namespace ts.GoToDefinition { if (sourceFile.resolvedModules?.size) { const node = getTokenAtPosition(sourceFile, position); if (isModuleSpecifierLike(node) && isExternalModuleNameRelative(node.text) && sourceFile.resolvedModules.has(node.text)) { - const verifiedFileName = sourceFile.resolvedModules.get(node.text)?.resolvedFileName; + const verifiedFileName = sourceFile.resolvedModules.get(node.text)?.resolvedModule?.resolvedFileName; const fileName = verifiedFileName || resolvePath(getDirectoryPath(sourceFile.fileName), node.text); return { file: program.getSourceFile(fileName), diff --git a/src/services/services.ts b/src/services/services.ts index 8bd3b65c5f1d9..903bff459fd02 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -636,8 +636,8 @@ namespace ts { public languageVariant!: LanguageVariant; public identifiers!: ESMap; public nameTable: UnderscoreEscapedMap | undefined; - public resolvedModules: ESMap | undefined; - public resolvedTypeReferenceDirectiveNames!: ESMap; + public resolvedModules: ESMap | undefined; + public resolvedTypeReferenceDirectiveNames!: ESMap; public imports!: readonly StringLiteralLike[]; public moduleAugmentations!: StringLiteral[]; private namedDeclarations: ESMap | undefined; diff --git a/src/services/types.ts b/src/services/types.ts index be1d09ff69c57..9f1be14b4dd75 100644 --- a/src/services/types.ts +++ b/src/services/types.ts @@ -266,12 +266,9 @@ namespace ts { * LS host can optionally implement this method if it wants to be completely in charge of module name resolution. * if implementation is omitted then language service will use built-in module resolution logic and get answers to * host specific questions using 'getScriptSnapshot'. - * - * If this is implemented, `getResolvedModuleWithFailedLookupLocationsFromCache` should be too. */ - resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedModule | undefined)[]; - getResolvedModuleWithFailedLookupLocationsFromCache?(modulename: string, containingFile: string): ResolvedModuleWithFailedLookupLocations | undefined; - resolveTypeReferenceDirectives?(typeDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedTypeReferenceDirective | undefined)[]; + resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): ResolvedModuleWithFailedLookupLocations[] | (ResolvedModule | undefined)[]; + resolveTypeReferenceDirectives?(typeDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): ResolvedTypeReferenceDirectiveWithFailedLookupLocations[] | (ResolvedTypeReferenceDirective | undefined)[]; /* @internal */ hasInvalidatedResolution?: HasInvalidatedResolution; /* @internal */ hasChangedAutomaticTypeDirectiveNames?: HasChangedAutomaticTypeDirectiveNames; /* @internal */ diff --git a/src/testRunner/unittests/reuseProgramStructure.ts b/src/testRunner/unittests/reuseProgramStructure.ts index 1cad884575990..788f18f0c0259 100644 --- a/src/testRunner/unittests/reuseProgramStructure.ts +++ b/src/testRunner/unittests/reuseProgramStructure.ts @@ -175,7 +175,7 @@ namespace ts { return true; } - function checkCache(caption: string, program: Program, fileName: string, expectedContent: ESMap | undefined, getCache: (f: SourceFile) => ESMap | undefined, entryChecker: (expected: T, original: T) => boolean): void { + function checkCache(caption: string, program: Program, fileName: string, expectedContent: ESMap | undefined, getCache: (f: SourceFile) => ESMap | undefined, getResolved: (actual: U) => T, entryChecker: (expected: T, original: T) => boolean): void { const file = program.getSourceFile(fileName); assert.isTrue(file !== undefined, `cannot find file ${fileName}`); const cache = getCache(file!); @@ -184,17 +184,17 @@ namespace ts { } else { assert.isTrue(cache !== undefined, `expected ${caption} to be set`); - assert.isTrue(mapsAreEqual(expectedContent, cache!, entryChecker), `contents of ${caption} did not match the expected contents.`); + assert.isTrue(mapsAreEqual(expectedContent, cache!, getResolved, entryChecker), `contents of ${caption} did not match the expected contents.`); } } /** True if the maps have the same keys and values. */ - function mapsAreEqual(left: ESMap, right: ESMap, valuesAreEqual?: (left: T, right: T) => boolean): boolean { - if (left === right) return true; + function mapsAreEqual(left: ESMap, right: ESMap, getResolved: (actual: U) => T, valuesAreEqual?: (left: T, right: T) => boolean): boolean { + if (!left && !right) return true; if (!left || !right) return false; const someInLeftHasNoMatch = forEachEntry(left, (leftValue, leftKey) => { if (!right.has(leftKey)) return true; - const rightValue = right.get(leftKey)!; + const rightValue = getResolved(right.get(leftKey)!); return !(valuesAreEqual ? valuesAreEqual(leftValue, rightValue) : leftValue === rightValue); }); if (someInLeftHasNoMatch) return false; @@ -203,11 +203,11 @@ namespace ts { } function checkResolvedModulesCache(program: Program, fileName: string, expectedContent: ESMap | undefined): void { - checkCache("resolved modules", program, fileName, expectedContent, f => f.resolvedModules, checkResolvedModule); + checkCache("resolved modules", program, fileName, expectedContent, f => f.resolvedModules, resolved => resolved.resolvedModule, checkResolvedModule); } function checkResolvedTypeDirectivesCache(program: Program, fileName: string, expectedContent: ESMap | undefined): void { - checkCache("resolved type directives", program, fileName, expectedContent, f => f.resolvedTypeReferenceDirectiveNames, checkResolvedTypeDirective); + checkCache("resolved type directives", program, fileName, expectedContent, f => f.resolvedTypeReferenceDirectiveNames, resolved => resolved.resolvedTypeReferenceDirective, checkResolvedTypeDirective); } describe("unittests:: Reuse program structure:: General", () => { diff --git a/src/testRunner/unittests/tsserver/typingsInstaller.ts b/src/testRunner/unittests/tsserver/typingsInstaller.ts index 7995b66670ec8..a535b36cd488a 100644 --- a/src/testRunner/unittests/tsserver/typingsInstaller.ts +++ b/src/testRunner/unittests/tsserver/typingsInstaller.ts @@ -1839,7 +1839,7 @@ namespace ts.projectSystem { function verifyResolvedModuleOfFooo(project: server.Project) { server.updateProjectIfDirty(project); const foooResolution = project.getLanguageService().getProgram()!.getSourceFileByPath(appPath)!.resolvedModules!.get("fooo")!; - assert.equal(foooResolution.resolvedFileName, foooPath); + assert.equal(foooResolution.resolvedModule!.resolvedFileName, foooPath); return foooResolution; } diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 94c9a48c44843..d443165a70089 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -3129,11 +3129,11 @@ declare namespace ts { useCaseSensitiveFileNames(): boolean; getNewLine(): string; readDirectory?(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[], depth?: number): string[]; - resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedModule | undefined)[]; + resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): ResolvedModuleWithFailedLookupLocations[] | (ResolvedModule | undefined)[]; /** * This method is a companion for 'resolveModuleNames' and is used to resolve 'types' references to actual type declaration files */ - resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedTypeReferenceDirective | undefined)[]; + resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): ResolvedTypeReferenceDirectiveWithFailedLookupLocations[] | (ResolvedTypeReferenceDirective | undefined)[]; getEnvironmentVariable?(name: string): string | undefined; createHash?(data: string): string; getParsedCommandLine?(fileName: string): ParsedCommandLine | undefined; @@ -5149,9 +5149,9 @@ declare namespace ts { /** If provided is used to get the environment variable */ getEnvironmentVariable?(name: string): string | undefined; /** If provided, used to resolve the module names, otherwise typescript's default module resolution */ - resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedModule | undefined)[]; + resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): ResolvedModuleWithFailedLookupLocations[] | (ResolvedModule | undefined)[]; /** If provided, used to resolve type reference directives, otherwise typescript's default resolution */ - resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedTypeReferenceDirective | undefined)[]; + resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): ResolvedTypeReferenceDirectiveWithFailedLookupLocations[] | (ResolvedTypeReferenceDirective | undefined)[]; } interface WatchCompilerHost extends ProgramHost, WatchHost { /** Instead of using output d.ts file from project reference, use its source file */ @@ -5533,9 +5533,8 @@ declare namespace ts { realpath?(path: string): string; fileExists?(path: string): boolean; getTypeRootsVersion?(): number; - resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedModule | undefined)[]; - getResolvedModuleWithFailedLookupLocationsFromCache?(modulename: string, containingFile: string): ResolvedModuleWithFailedLookupLocations | undefined; - resolveTypeReferenceDirectives?(typeDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedTypeReferenceDirective | undefined)[]; + resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): ResolvedModuleWithFailedLookupLocations[] | (ResolvedModule | undefined)[]; + resolveTypeReferenceDirectives?(typeDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): ResolvedTypeReferenceDirectiveWithFailedLookupLocations[] | (ResolvedTypeReferenceDirective | undefined)[]; getDirectories?(directoryName: string): string[]; /** * Gets a set of custom transformers to use during emit. @@ -9636,9 +9635,8 @@ declare namespace ts.server { readFile(fileName: string): string | undefined; writeFile(fileName: string, content: string): void; fileExists(file: string): boolean; - resolveModuleNames(moduleNames: string[], containingFile: string, reusedNames?: string[], redirectedReference?: ResolvedProjectReference): (ResolvedModuleFull | undefined)[]; - getResolvedModuleWithFailedLookupLocationsFromCache(moduleName: string, containingFile: string): ResolvedModuleWithFailedLookupLocations | undefined; - resolveTypeReferenceDirectives(typeDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference): (ResolvedTypeReferenceDirective | undefined)[]; + resolveModuleNames(moduleNames: string[], containingFile: string, reusedNames?: string[], redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations[]; + resolveTypeReferenceDirectives(typeDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference): ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; directoryExists(path: string): boolean; getDirectories(path: string): string[]; log(s: string): void; diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 9f58cc3bbab09..7b5bc3d464b0c 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -3129,11 +3129,11 @@ declare namespace ts { useCaseSensitiveFileNames(): boolean; getNewLine(): string; readDirectory?(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[], depth?: number): string[]; - resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedModule | undefined)[]; + resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): ResolvedModuleWithFailedLookupLocations[] | (ResolvedModule | undefined)[]; /** * This method is a companion for 'resolveModuleNames' and is used to resolve 'types' references to actual type declaration files */ - resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedTypeReferenceDirective | undefined)[]; + resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): ResolvedTypeReferenceDirectiveWithFailedLookupLocations[] | (ResolvedTypeReferenceDirective | undefined)[]; getEnvironmentVariable?(name: string): string | undefined; createHash?(data: string): string; getParsedCommandLine?(fileName: string): ParsedCommandLine | undefined; @@ -5149,9 +5149,9 @@ declare namespace ts { /** If provided is used to get the environment variable */ getEnvironmentVariable?(name: string): string | undefined; /** If provided, used to resolve the module names, otherwise typescript's default module resolution */ - resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedModule | undefined)[]; + resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): ResolvedModuleWithFailedLookupLocations[] | (ResolvedModule | undefined)[]; /** If provided, used to resolve type reference directives, otherwise typescript's default resolution */ - resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedTypeReferenceDirective | undefined)[]; + resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): ResolvedTypeReferenceDirectiveWithFailedLookupLocations[] | (ResolvedTypeReferenceDirective | undefined)[]; } interface WatchCompilerHost extends ProgramHost, WatchHost { /** Instead of using output d.ts file from project reference, use its source file */ @@ -5533,9 +5533,8 @@ declare namespace ts { realpath?(path: string): string; fileExists?(path: string): boolean; getTypeRootsVersion?(): number; - resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedModule | undefined)[]; - getResolvedModuleWithFailedLookupLocationsFromCache?(modulename: string, containingFile: string): ResolvedModuleWithFailedLookupLocations | undefined; - resolveTypeReferenceDirectives?(typeDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedTypeReferenceDirective | undefined)[]; + resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): ResolvedModuleWithFailedLookupLocations[] | (ResolvedModule | undefined)[]; + resolveTypeReferenceDirectives?(typeDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): ResolvedTypeReferenceDirectiveWithFailedLookupLocations[] | (ResolvedTypeReferenceDirective | undefined)[]; getDirectories?(directoryName: string): string[]; /** * Gets a set of custom transformers to use during emit. From 4b306e101a7501f0778eb407ff0c97f7bac420c2 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 7 Oct 2020 14:08:05 -0700 Subject: [PATCH 04/48] Ensure program uses sourceFile version and Path instead of fileNames to lookup --- src/compiler/program.ts | 53 +++++++++++++++++++++++++---------------- 1 file changed, 32 insertions(+), 21 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 5e7150c60d934..cc9047fab25bb 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -733,11 +733,14 @@ namespace ts { if (!newParsedCommandLine) return false; // If change in source file - if (oldResolvedRef.commandLine.options.configFile !== newParsedCommandLine.options.configFile) return false; + if (oldResolvedRef.commandLine.options.configFile?.version !== newParsedCommandLine.options.configFile?.version) return false; // check file names if (!arrayIsEqualTo(oldResolvedRef.commandLine.fileNames, newParsedCommandLine.fileNames)) return false; + // Check options + if (!compareDataObjects(oldResolvedRef.commandLine.options, newParsedCommandLine.options)) return false; + // Add to seen before checking the referenced paths of this config file (seenResolvedRefs || (seenResolvedRefs = [])).push(oldResolvedRef); @@ -1270,8 +1273,8 @@ namespace ts { return resolveModuleNamesWorker(moduleNames, file, /*reusedNames*/ undefined); } - const oldSourceFile = oldProgram && oldProgram.getSourceFile(file.fileName); - if (oldSourceFile !== file && file.resolvedModules) { + const oldSourceFile = oldProgram?.getSourceFileByPath(file.resolvedPath); + if (oldSourceFile?.version !== file.version && file.resolvedModules) { // `file` was created for the new program. // // We only set `file.resolvedModules` via work from the current function, @@ -1307,7 +1310,6 @@ namespace ts { /** A transient placeholder used to mark predicted resolution in the result list. */ const predictedToResolveToAmbientModuleMarker = true; let result: (ResolvedModuleWithFailedLookupLocations | typeof predictedToResolveToAmbientModuleMarker)[] | undefined; - for (let i = 0; i < moduleNames.length; i++) { const moduleName = moduleNames[i]; // If the source file is unchanged and doesnt have invalidated resolution, reuse the module resolutions @@ -1386,7 +1388,7 @@ namespace ts { // If we change our policy of rechecking failed lookups on each program create, // we should adjust the value returned here. function moduleNameResolvesToAmbientModuleInNonModifiedFile(moduleName: string): boolean { - const resolutionToFile = getResolvedModule(oldSourceFile, moduleName); + const resolutionToFile = oldSourceFile?.resolvedModules?.get(moduleName)?.resolvedModule; const resolvedFile = resolutionToFile && oldProgram!.getSourceFile(resolutionToFile.resolvedFileName); if (resolutionToFile && resolvedFile) { // In the old program, we resolved to an ambient module that was in the same @@ -1420,8 +1422,9 @@ namespace ts { if (oldResolvedRef) { // Resolved project reference has gone missing or changed return !newResolvedRef || - newResolvedRef.sourceFile !== oldResolvedRef.sourceFile || - !arrayIsEqualTo(oldResolvedRef.commandLine.fileNames, newResolvedRef.commandLine.fileNames); + newResolvedRef.sourceFile.version !== oldResolvedRef.sourceFile.version || + !arrayIsEqualTo(oldResolvedRef.commandLine.fileNames, newResolvedRef.commandLine.fileNames) || + !compareDataObjects(oldResolvedRef.commandLine.options, newResolvedRef.commandLine.options); } else { // A previously-unresolved reference may be resolved now @@ -1464,7 +1467,7 @@ namespace ts { // check if program source files has changed in the way that can affect structure of the program const newSourceFiles: SourceFile[] = []; - const modifiedSourceFiles: { oldFile: SourceFile, newFile: SourceFile }[] = []; + const modifiedSourceFileIndices: number[] = []; structureIsReused = StructureIsReused.Completely; // If the missing file paths are now present, it can change the progam structure, @@ -1478,7 +1481,8 @@ namespace ts { const enum SeenPackageName { Exists, Modified } const seenPackageNames = new Map(); - for (const oldSourceFile of oldSourceFiles) { + for (let index = 0; index < oldSourceFiles.length; index++) { + const oldSourceFile = oldSourceFiles[index]; let newSourceFile = host.getSourceFileByPath ? host.getSourceFileByPath(oldSourceFile.fileName, oldSourceFile.resolvedPath, options.target!, /*onError*/ undefined, shouldCreateNewSourceFile) : host.getSourceFile(oldSourceFile.fileName, options.target!, /*onError*/ undefined, shouldCreateNewSourceFile); // TODO: GH#18217 @@ -1493,7 +1497,7 @@ namespace ts { if (oldSourceFile.redirectInfo) { // We got `newSourceFile` by path, so it is actually for the unredirected file. // This lets us know if the unredirected file has changed. If it has we should break the redirect. - if (newSourceFile !== oldSourceFile.redirectInfo.unredirected) { + if (newSourceFile.version !== oldSourceFile.redirectInfo.unredirected.version) { // Underlying file has changed. Might not redirect anymore. Must rebuild program. return StructureIsReused.Not; } @@ -1508,7 +1512,7 @@ namespace ts { fileChanged = false; } else { - fileChanged = newSourceFile !== oldSourceFile; + fileChanged = newSourceFile.version !== oldSourceFile.version; } // Since the project references havent changed, its right to set originalFileName and resolvedPath here @@ -1570,14 +1574,14 @@ namespace ts { } // tentatively approve the file - modifiedSourceFiles.push({ oldFile: oldSourceFile, newFile: newSourceFile }); + modifiedSourceFileIndices.push(index); } else if (hasInvalidatedResolution(oldSourceFile.path)) { // 'module/types' references could have changed structureIsReused = StructureIsReused.SafeModules; // add file to the modified list so that we will resolve it later - modifiedSourceFiles.push({ oldFile: oldSourceFile, newFile: newSourceFile }); + modifiedSourceFileIndices.push(index); } // if file has passed all checks it should be safe to reuse it @@ -1588,16 +1592,19 @@ namespace ts { return structureIsReused; } - const modifiedFiles = modifiedSourceFiles.map(f => f.oldFile); - for (const oldFile of oldSourceFiles) { - if (!contains(modifiedFiles, oldFile)) { - for (const moduleName of oldFile.ambientModuleNames) { - ambientModuleNameToUnmodifiedFileName.set(moduleName, oldFile.fileName); + Debug.assert(newSourceFiles.length === oldSourceFiles.length); + const modifiedFiles = new Set(modifiedSourceFileIndices); + for (let index = 0; index < oldSourceFiles.length; index++) { + if (!modifiedFiles.has(index)) { + for (const moduleName of oldSourceFiles[index].ambientModuleNames) { + ambientModuleNameToUnmodifiedFileName.set(moduleName, oldSourceFiles[index].fileName); } } } // try to verify results of module resolution - for (const { oldFile: oldSourceFile, newFile: newSourceFile } of modifiedSourceFiles) { + for (const index of modifiedSourceFileIndices) { + const oldSourceFile = oldSourceFiles[index]; + const newSourceFile = newSourceFiles[index]; const moduleNames = getModuleNames(newSourceFile); const resolutions = resolveModuleNamesReusingOldState(moduleNames, newSourceFile); // ensure that module resolution results are still correct @@ -1634,9 +1641,13 @@ namespace ts { missingFilePaths = oldProgram.getMissingFilePaths(); // update fileName -> file mapping - Debug.assert(newSourceFiles.length === oldProgram.getSourceFiles().length); - for (const newSourceFile of newSourceFiles) { + for (let index = 0; index < newSourceFiles.length; index++) { + const newSourceFile = newSourceFiles[index]; filesByName.set(newSourceFile.path, newSourceFile); + // Ensure imports are calculated and resolutions are updated if the file version didnt change but its different instance of file + collectExternalModuleReferences(newSourceFile); + newSourceFile.resolvedModules = oldSourceFiles[index].resolvedModules; + newSourceFile.resolvedTypeReferenceDirectiveNames = oldSourceFiles[index].resolvedTypeReferenceDirectiveNames; } const oldFilesByNameMap = oldProgram.getFilesByNameMap(); oldFilesByNameMap.forEach((oldFile, path) => { From 1784730bf75d511aeb9f8e50d66fa04be94bd691 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 7 Oct 2020 17:06:09 -0700 Subject: [PATCH 05/48] Add assert that redirectTarget file is already seen before redirect file is created and handle it accordingly --- src/compiler/program.ts | 37 ++++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index cc9047fab25bb..12e009a80032f 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1483,7 +1483,7 @@ namespace ts { for (let index = 0; index < oldSourceFiles.length; index++) { const oldSourceFile = oldSourceFiles[index]; - let newSourceFile = host.getSourceFileByPath + const newSourceFile = host.getSourceFileByPath ? host.getSourceFileByPath(oldSourceFile.fileName, oldSourceFile.resolvedPath, options.target!, /*onError*/ undefined, shouldCreateNewSourceFile) : host.getSourceFile(oldSourceFile.fileName, options.target!, /*onError*/ undefined, shouldCreateNewSourceFile); // TODO: GH#18217 @@ -1501,12 +1501,15 @@ namespace ts { // Underlying file has changed. Might not redirect anymore. Must rebuild program. return StructureIsReused.Not; } - fileChanged = false; - newSourceFile = oldSourceFile; // Use the redirect. + // redirect target should already be present + Debug.checkDefined(find(newSourceFiles, f => f.path === oldSourceFile.redirectInfo?.redirectTarget.path)); + // Add to the newSourceFiles for now and handle redirect if program is used completely + newSourceFiles.push(newSourceFile); + continue; } else if (oldProgram.redirectTargetsMap.has(oldSourceFile.path)) { // If a redirected-to source file changes, the redirect may be broken. - if (newSourceFile !== oldSourceFile) { + if (newSourceFile.version !== oldSourceFile.version) { return StructureIsReused.Not; } fileChanged = false; @@ -1643,11 +1646,24 @@ namespace ts { // update fileName -> file mapping for (let index = 0; index < newSourceFiles.length; index++) { const newSourceFile = newSourceFiles[index]; - filesByName.set(newSourceFile.path, newSourceFile); - // Ensure imports are calculated and resolutions are updated if the file version didnt change but its different instance of file - collectExternalModuleReferences(newSourceFile); - newSourceFile.resolvedModules = oldSourceFiles[index].resolvedModules; - newSourceFile.resolvedTypeReferenceDirectiveNames = oldSourceFiles[index].resolvedTypeReferenceDirectiveNames; + const oldSourceFile = oldSourceFiles[index]; + // Update file if its redirecting to different file + if (oldSourceFile.redirectInfo) { + const newRedirectTarget = filesByName.get(oldSourceFile.redirectInfo.redirectTarget.path) as SourceFile; + const newRedirectSourceFile = newRedirectTarget === oldSourceFile.redirectInfo.redirectTarget ? + oldSourceFile : + // Create new redirect file + createRedirectSourceFile(newRedirectTarget, newSourceFile, oldSourceFile.fileName, oldSourceFile.path, oldSourceFile.resolvedPath, oldSourceFile.originalFileName); + newSourceFiles[index] = newRedirectSourceFile; + filesByName.set(newRedirectSourceFile.path, newRedirectSourceFile); + } + else { + filesByName.set(newSourceFile.path, newSourceFile); + // Ensure imports are calculated and resolutions are updated if the file version didnt change but its different instance of file + collectExternalModuleReferences(newSourceFile); + newSourceFile.resolvedModules = oldSourceFile.resolvedModules; + newSourceFile.resolvedTypeReferenceDirectiveNames = oldSourceFile.resolvedTypeReferenceDirectiveNames; + } } const oldFilesByNameMap = oldProgram.getFilesByNameMap(); oldFilesByNameMap.forEach((oldFile, path) => { @@ -2530,7 +2546,6 @@ namespace ts { redirect.resolvedPath = resolvedPath; redirect.originalFileName = originalFileName; redirect.redirectInfo = { redirectTarget, unredirected }; - sourceFilesFoundSearchingNodeModules.set(path, currentNodeModulesDepth > 0); Object.defineProperties(redirect, { id: { get(this: SourceFile) { return this.redirectInfo!.redirectTarget.id; }, @@ -2662,7 +2677,7 @@ namespace ts { redirectTargetsMap.add(fileFromPackageId.path, fileName); addFileToFilesByName(dupFile, path, redirectedPath); addFileIncludeReason(dupFile, reason); - sourceFileToPackageName.set(path, packageId.name); + sourceFilesFoundSearchingNodeModules.set(path, currentNodeModulesDepth > 0); processingOtherFiles!.push(dupFile); return dupFile; } From 430462af3bf32706d13f9679e9262a445d890852 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 8 Oct 2020 14:05:46 -0700 Subject: [PATCH 06/48] Switch program to store name to ResolvedTypeReferenceDirective --- src/compiler/checker.ts | 6 +++--- src/compiler/program.ts | 21 +++++++++++---------- src/compiler/types.ts | 4 ++-- src/services/goToDefinition.ts | 2 +- src/services/importTracker.ts | 2 +- 5 files changed, 18 insertions(+), 17 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 93be98527a1c5..feaa4ffdad075 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -40328,11 +40328,11 @@ namespace ts { if (resolvedTypeReferenceDirectives) { // populate reverse mapping: file path -> type reference directive that was resolved to this file fileToDirective = new Map(); - resolvedTypeReferenceDirectives.forEach((resolvedDirective, key) => { - if (!resolvedDirective || !resolvedDirective.resolvedFileName) { + resolvedTypeReferenceDirectives.forEach(({ resolvedTypeReferenceDirective }, key) => { + if (!resolvedTypeReferenceDirective || !resolvedTypeReferenceDirective.resolvedFileName) { return; } - const file = host.getSourceFile(resolvedDirective.resolvedFileName); + const file = host.getSourceFile(resolvedTypeReferenceDirective.resolvedFileName); if (file) { // Add the transitive closure of path references loaded by this file (as long as they are not) // part of an existing type reference. diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 12e009a80032f..5b4703695c9cb 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -826,7 +826,7 @@ namespace ts { const cachedBindAndCheckDiagnosticsForFile: DiagnosticCache = {}; const cachedDeclarationDiagnosticsForFile: DiagnosticCache = {}; - let resolvedTypeReferenceDirectives = new Map(); + let resolvedTypeReferenceDirectives = new Map(); let fileProcessingDiagnostics: FilePreprocessingDiagnostics[] | undefined; // The below settings are to track if a .js file should be add to the program if loaded via searching under node_modules. @@ -2865,26 +2865,27 @@ namespace ts { function processTypeReferenceDirective( typeReferenceDirective: string, - { resolvedTypeReferenceDirective }: ResolvedTypeReferenceDirectiveWithFailedLookupLocations, + resolved: ResolvedTypeReferenceDirectiveWithFailedLookupLocations, reason: FileIncludeReason ): void { tracing?.push(tracing.Phase.Program, "processTypeReferenceDirective", { directive: typeReferenceDirective, hasResolved: !!resolveModuleNamesReusingOldState, refKind: reason.kind, refPath: isReferencedFile(reason) ? reason.file : undefined }); - processTypeReferenceDirectiveWorker(typeReferenceDirective, resolvedTypeReferenceDirective, reason); + processTypeReferenceDirectiveWorker(typeReferenceDirective, resolved, reason); tracing?.pop(); } function processTypeReferenceDirectiveWorker( typeReferenceDirective: string, - resolvedTypeReferenceDirective: ResolvedTypeReferenceDirective | undefined, + resolved: ResolvedTypeReferenceDirectiveWithFailedLookupLocations, reason: FileIncludeReason ): void { // If we already found this library as a primary reference - nothing to do const previousResolution = resolvedTypeReferenceDirectives.get(typeReferenceDirective); - if (previousResolution && previousResolution.primary) { + if (previousResolution?.resolvedTypeReferenceDirective?.primary) { return; } let saveResolution = true; + const { resolvedTypeReferenceDirective } = resolved; if (resolvedTypeReferenceDirective) { if (resolvedTypeReferenceDirective.isExternalLibraryImport) currentNodeModulesDepth++; @@ -2895,17 +2896,17 @@ namespace ts { else { // If we already resolved to this file, it must have been a secondary reference. Check file contents // for sameness and possibly issue an error - if (previousResolution) { + if (previousResolution?.resolvedTypeReferenceDirective) { // Don't bother reading the file again if it's the same file. - if (resolvedTypeReferenceDirective.resolvedFileName !== previousResolution.resolvedFileName) { + if (resolvedTypeReferenceDirective.resolvedFileName !== previousResolution.resolvedTypeReferenceDirective.resolvedFileName) { const otherFileText = host.readFile(resolvedTypeReferenceDirective.resolvedFileName!); - const existingFile = getSourceFile(previousResolution.resolvedFileName!)!; + const existingFile = getSourceFile(previousResolution.resolvedTypeReferenceDirective.resolvedFileName!)!; if (otherFileText !== existingFile.text) { addFilePreprocessingFileExplainingDiagnostic( existingFile, reason, Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict, - [typeReferenceDirective, resolvedTypeReferenceDirective.resolvedFileName, previousResolution.resolvedFileName] + [typeReferenceDirective, resolvedTypeReferenceDirective.resolvedFileName, previousResolution.resolvedTypeReferenceDirective.resolvedFileName] ); } } @@ -2925,7 +2926,7 @@ namespace ts { } if (saveResolution) { - resolvedTypeReferenceDirectives.set(typeReferenceDirective, resolvedTypeReferenceDirective); + resolvedTypeReferenceDirectives.set(typeReferenceDirective, resolved); } } diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 8e5c95e96f6df..d476595ad1bc8 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -3932,7 +3932,7 @@ namespace ts { getRelationCacheSizes(): { assignable: number, identity: number, subtype: number, strictSubtype: number }; /* @internal */ getFileProcessingDiagnostics(): FilePreprocessingDiagnostics[] | undefined; - /* @internal */ getResolvedTypeReferenceDirectives(): ESMap; + /* @internal */ getResolvedTypeReferenceDirectives(): ESMap; isSourceFileFromExternalLibrary(file: SourceFile): boolean; isSourceFileDefaultLibrary(file: SourceFile): boolean; @@ -4068,7 +4068,7 @@ namespace ts { getSourceFiles(): readonly SourceFile[]; getSourceFile(fileName: string): SourceFile | undefined; - getResolvedTypeReferenceDirectives(): ReadonlyESMap; + getResolvedTypeReferenceDirectives(): ReadonlyESMap; getProjectReferenceRedirect(fileName: string): string | undefined; isSourceOfProjectReferenceRedirect(fileName: string): boolean; diff --git a/src/services/goToDefinition.ts b/src/services/goToDefinition.ts index f532d2312530a..effacecd0d9ea 100644 --- a/src/services/goToDefinition.ts +++ b/src/services/goToDefinition.ts @@ -123,7 +123,7 @@ namespace ts.GoToDefinition { const typeReferenceDirective = findReferenceInPosition(sourceFile.typeReferenceDirectives, position); if (typeReferenceDirective) { const reference = program.getResolvedTypeReferenceDirectives().get(typeReferenceDirective.fileName); - const file = reference && program.getSourceFile(reference.resolvedFileName!); // TODO:GH#18217 + const file = reference?.resolvedTypeReferenceDirective && program.getSourceFile(reference.resolvedTypeReferenceDirective.resolvedFileName!); // TODO:GH#18217 return file && { reference: typeReferenceDirective, fileName: file.fileName, file, unverified: false }; } diff --git a/src/services/importTracker.ts b/src/services/importTracker.ts index d3c95854f9bbe..7f1f4e7a5ed54 100644 --- a/src/services/importTracker.ts +++ b/src/services/importTracker.ts @@ -368,7 +368,7 @@ namespace ts.FindAllReferences { } for (const ref of referencingFile.typeReferenceDirectives) { const referenced = program.getResolvedTypeReferenceDirectives().get(ref.fileName); - if (referenced !== undefined && referenced.resolvedFileName === (searchSourceFile as SourceFile).fileName) { + if (referenced?.resolvedTypeReferenceDirective?.resolvedFileName === (searchSourceFile as SourceFile).fileName) { refs.push({ kind: "reference", referencingFile, ref }); } } From 02bd3846a45606b78743018e961efb4f92e4e8b1 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 8 Oct 2020 14:46:53 -0700 Subject: [PATCH 07/48] Some more updates to module resolution reuse --- src/compiler/program.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 5b4703695c9cb..23b54db0a92b6 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -821,7 +821,7 @@ namespace ts { let diagnosticsProducingTypeChecker: TypeChecker; let noDiagnosticsTypeChecker: TypeChecker; let classifiableNames: Set<__String>; - const ambientModuleNameToUnmodifiedFileName = new Map(); + let ambientModuleNameToUnmodifiedFileName: ESMap | undefined; let fileReasons = createMultiMap(); const cachedBindAndCheckDiagnosticsForFile: DiagnosticCache = {}; const cachedDeclarationDiagnosticsForFile: DiagnosticCache = {}; @@ -955,7 +955,7 @@ namespace ts { tracing?.push(tracing.Phase.Program, "shouldProgramCreateNewSourceFiles", { hasOldProgram: !!oldProgram }); const shouldCreateNewSourceFile = shouldProgramCreateNewSourceFiles(oldProgram, options); tracing?.pop(); - // We set `structuralIsReused` to `undefined` because `tryReuseStructureFromOldProgram` calls `tryReuseStructureFromOldProgram` which checks + // We set `structuralIsReused` to `undefined` because `tryReuseStructureFromOldProgram` calls `resolveModuleNamesReusingOldState` which checks // `structuralIsReused`, which would be a TDZ violation if it was not set in advance to `undefined`. let structureIsReused: StructureIsReused; tracing?.push(tracing.Phase.Program, "tryReuseStructureFromOldProgram", {}); @@ -1313,7 +1313,7 @@ namespace ts { for (let i = 0; i < moduleNames.length; i++) { const moduleName = moduleNames[i]; // If the source file is unchanged and doesnt have invalidated resolution, reuse the module resolutions - if (file === oldSourceFile && !hasInvalidatedResolution(oldSourceFile.path)) { + if (oldSourceFile && file.version === oldSourceFile.version && !hasInvalidatedResolution(oldSourceFile.path)) { const oldResolvedModule = oldSourceFile.resolvedModules?.get(moduleName); if (oldResolvedModule?.resolvedModule) { if (isTraceEnabled(options, host)) { @@ -1399,7 +1399,7 @@ namespace ts { } // at least one of declarations should come from non-modified source file - const unmodifiedFile = ambientModuleNameToUnmodifiedFileName.get(moduleName); + const unmodifiedFile = ambientModuleNameToUnmodifiedFileName?.get(moduleName); if (!unmodifiedFile) { return false; @@ -1480,6 +1480,7 @@ namespace ts { const oldSourceFiles = oldProgram.getSourceFiles(); const enum SeenPackageName { Exists, Modified } const seenPackageNames = new Map(); + let ambientModuleToUnmodifiedFile: ESMap | undefined; for (let index = 0; index < oldSourceFiles.length; index++) { const oldSourceFile = oldSourceFiles[index]; @@ -1586,6 +1587,13 @@ namespace ts { // add file to the modified list so that we will resolve it later modifiedSourceFileIndices.push(index); } + else { + // Ensure imports are calculated if the file version didnt change but its different instance of file + collectExternalModuleReferences(newSourceFile); + for (const moduleName of newSourceFile.ambientModuleNames) { + (ambientModuleToUnmodifiedFile ||= new Map()).set(moduleName, oldSourceFiles[index].fileName); + } + } // if file has passed all checks it should be safe to reuse it newSourceFiles.push(newSourceFile); @@ -1596,14 +1604,7 @@ namespace ts { } Debug.assert(newSourceFiles.length === oldSourceFiles.length); - const modifiedFiles = new Set(modifiedSourceFileIndices); - for (let index = 0; index < oldSourceFiles.length; index++) { - if (!modifiedFiles.has(index)) { - for (const moduleName of oldSourceFiles[index].ambientModuleNames) { - ambientModuleNameToUnmodifiedFileName.set(moduleName, oldSourceFiles[index].fileName); - } - } - } + ambientModuleNameToUnmodifiedFileName = ambientModuleToUnmodifiedFile; // try to verify results of module resolution for (const index of modifiedSourceFileIndices) { const oldSourceFile = oldSourceFiles[index]; @@ -1659,8 +1660,7 @@ namespace ts { } else { filesByName.set(newSourceFile.path, newSourceFile); - // Ensure imports are calculated and resolutions are updated if the file version didnt change but its different instance of file - collectExternalModuleReferences(newSourceFile); + // Ensure resolutions are updated if the file version didnt change but its different instance of file newSourceFile.resolvedModules = oldSourceFile.resolvedModules; newSourceFile.resolvedTypeReferenceDirectiveNames = oldSourceFile.resolvedTypeReferenceDirectiveNames; } From 830df2eeb190279caba925b391a4152b6a0fecd4 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 8 Oct 2020 19:58:20 -0700 Subject: [PATCH 08/48] Its ok to compare the file version for redirect files --- src/compiler/program.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 23b54db0a92b6..1c214098bce84 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1498,7 +1498,7 @@ namespace ts { if (oldSourceFile.redirectInfo) { // We got `newSourceFile` by path, so it is actually for the unredirected file. // This lets us know if the unredirected file has changed. If it has we should break the redirect. - if (newSourceFile.version !== oldSourceFile.redirectInfo.unredirected.version) { + if (newSourceFile.version !== oldSourceFile.version) { // Underlying file has changed. Might not redirect anymore. Must rebuild program. return StructureIsReused.Not; } From 48abe6caed75a1e3679358b334f23d2b82d46505 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 8 Oct 2020 20:20:27 -0700 Subject: [PATCH 09/48] Make getFilesByName buildinfo ready --- src/compiler/program.ts | 54 ++++++++++++++++++++--------------------- src/compiler/types.ts | 6 ++++- 2 files changed, 32 insertions(+), 28 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 1c214098bce84..7a8aae109f9ca 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -925,10 +925,10 @@ namespace ts { /** * map with * - SourceFile if present - * - false if sourceFile missing for source of project reference redirect - * - undefined otherwise + * - missingSourceOfProjectReferenceRedirect = false if sourceFile missing for source of project reference redirect + * - missingFile = 0 otherwise */ - const filesByName = new Map(); + const filesByName = new Map(); let missingFilePaths: readonly Path[] | undefined; // stores 'filename -> file association' ignoring case // used to track cases when two file names differ only in casing @@ -1034,7 +1034,7 @@ namespace ts { } } - missingFilePaths = arrayFrom(mapDefinedIterator(filesByName.entries(), ([path, file]) => file === undefined ? path as Path : undefined)); + missingFilePaths = arrayFrom(mapDefinedIterator(filesByName.entries(), ([path, file]) => file === missingFile ? path as Path : undefined)); files = stableSort(processingDefaultLibFiles, compareDefaultLibFiles).concat(processingOtherFiles); processingDefaultLibFiles = undefined; processingOtherFiles = undefined; @@ -1678,7 +1678,7 @@ namespace ts { } return; } - filesByName.set(path, filesByName.get(oldFile.path)); + filesByName.set(path, filesByName.get(oldFile.path)!); }); files = newSourceFiles; @@ -1762,8 +1762,8 @@ namespace ts { (_ref, index) => resolvedProjectReferences![index]?.commandLine, fileName => { const path = toPath(fileName); - const sourceFile = getSourceFileByPath(path); - return sourceFile ? sourceFile.text : filesByName.has(path) ? undefined : host.readFile(path); + const sourceFile = filesByName.get(path); + return sourceFile ? sourceFile.text : sourceFile !== undefined ? undefined : host.readFile(path); } ); } @@ -2595,13 +2595,13 @@ namespace ts { } } const originalFileName = fileName; - if (filesByName.has(path)) { - const file = filesByName.get(path); - addFileIncludeReason(file || undefined, reason); + const cachedFile = filesByName.get(path); + if (cachedFile !== undefined) { + addFileIncludeReason(cachedFile || undefined, reason); // try to check if we've already seen this file but with a different casing in path // NOTE: this only makes sense for case-insensitive file systems, and only on files which are not redirected - if (file && options.forceConsistentCasingInFileNames) { - const checkedName = file.fileName; + if (cachedFile && options.forceConsistentCasingInFileNames) { + const checkedName = cachedFile.fileName; const isRedirect = toPath(checkedName) !== toPath(fileName); if (isRedirect) { fileName = getProjectReferenceRedirect(fileName) || fileName; @@ -2610,34 +2610,34 @@ namespace ts { const checkedAbsolutePath = getNormalizedAbsolutePathWithoutRoot(checkedName, currentDirectory); const inputAbsolutePath = getNormalizedAbsolutePathWithoutRoot(fileName, currentDirectory); if (checkedAbsolutePath !== inputAbsolutePath) { - reportFileNamesDifferOnlyInCasingError(fileName, file, reason); + reportFileNamesDifferOnlyInCasingError(fileName, cachedFile, reason); } } // If the file was previously found via a node_modules search, but is now being processed as a root file, // then everything it sucks in may also be marked incorrectly, and needs to be checked again. - if (file && sourceFilesFoundSearchingNodeModules.get(file.path) && currentNodeModulesDepth === 0) { - sourceFilesFoundSearchingNodeModules.set(file.path, false); + if (cachedFile && sourceFilesFoundSearchingNodeModules.get(cachedFile.path) && currentNodeModulesDepth === 0) { + sourceFilesFoundSearchingNodeModules.set(cachedFile.path, false); if (!options.noResolve) { - processReferencedFiles(file, isDefaultLib); - processTypeReferenceDirectives(file); + processReferencedFiles(cachedFile, isDefaultLib); + processTypeReferenceDirectives(cachedFile); } if (!options.noLib) { - processLibReferenceDirectives(file); + processLibReferenceDirectives(cachedFile); } - modulesWithElidedImports.set(file.path, false); - processImportedModules(file); + modulesWithElidedImports.set(cachedFile.path, false); + processImportedModules(cachedFile); } // See if we need to reprocess the imports due to prior skipped imports - else if (file && modulesWithElidedImports.get(file.path)) { + else if (cachedFile && modulesWithElidedImports.get(cachedFile.path)) { if (currentNodeModulesDepth < maxNodeModuleJsDepth) { - modulesWithElidedImports.set(file.path, false); - processImportedModules(file); + modulesWithElidedImports.set(cachedFile.path, false); + processImportedModules(cachedFile); } } - return file || undefined; + return cachedFile || undefined; } let redirectedPath: Path | undefined; @@ -2739,11 +2739,11 @@ namespace ts { function addFileToFilesByName(file: SourceFile | undefined, path: Path, redirectedPath: Path | undefined) { if (redirectedPath) { - filesByName.set(redirectedPath, file); - filesByName.set(path, file || false); + filesByName.set(redirectedPath, file || missingFile); + filesByName.set(path, file || missingSourceOfProjectReferenceRedirect); } else { - filesByName.set(path, file); + filesByName.set(path, file || missingFile); } } diff --git a/src/compiler/types.ts b/src/compiler/types.ts index d476595ad1bc8..5c73c705033ec 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -3861,6 +3861,10 @@ namespace ts { /*@internal*/ export type FilePreprocessingDiagnostics = FilePreprocessingReferencedDiagnostic | FilePreprocessingFileExplainingDiagnostic; + /*@internal*/ + export const missingSourceOfProjectReferenceRedirect = false; + /*@internal*/ + export const missingFile = 0; export interface Program extends ScriptReferenceHost { getCurrentDirectory(): string; /** @@ -3880,7 +3884,7 @@ namespace ts { /* @internal */ getMissingFilePaths(): readonly Path[]; /* @internal */ - getFilesByNameMap(): ESMap; + getFilesByNameMap(): ESMap; /** * Emits the JavaScript and declaration files. If targetSourceFile is not specified, then From 396ec7ff3a35d50da45e8a6c81790c6d44c59155 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 8 Oct 2020 12:56:03 -0700 Subject: [PATCH 10/48] Create Types for ProgramFromBuildInfo --- src/compiler/builder.ts | 11 +- src/compiler/core.ts | 4 +- src/compiler/program.ts | 136 +++++++++++-------- src/compiler/types.ts | 78 ++++++++++- src/executeCommandLine/executeCommandLine.ts | 5 +- src/services/services.ts | 5 +- 6 files changed, 166 insertions(+), 73 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index c63627df3e60b..516d7cc4d1d5c 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -261,9 +261,14 @@ namespace ts { return state; } + export function getToPathForBuildInfoFilePath(options: CompilerOptions, currentDirectory: string, getCanonicalFileName: GetCanonicalFileName) { + const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(options)!, currentDirectory)); + return (path: string) => toPath(path, buildInfoDirectory, getCanonicalFileName); + } + function convertToDiagnostics(diagnostics: readonly ReusableDiagnostic[], newProgram: Program, getCanonicalFileName: GetCanonicalFileName): readonly Diagnostic[] { if (!diagnostics.length) return emptyArray; - const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions())!, newProgram.getCurrentDirectory())); + const toPath = getToPathForBuildInfoFilePath(newProgram.getCompilerOptions(), newProgram.getCurrentDirectory(), getCanonicalFileName); return diagnostics.map(diagnostic => { const result: Diagnostic = convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath); result.reportsUnnecessary = diagnostic.reportsUnnecessary; @@ -278,10 +283,6 @@ namespace ts { undefined; return result; }); - - function toPath(path: string) { - return ts.toPath(path, buildInfoDirectory, getCanonicalFileName); - } } function convertToDiagnosticRelatedInformation(diagnostic: ReusableDiagnosticRelatedInformation, newProgram: Program, toPath: (path: string) => Path): DiagnosticRelatedInformation { diff --git a/src/compiler/core.ts b/src/compiler/core.ts index d826a52958671..ef7bc4652042f 100644 --- a/src/compiler/core.ts +++ b/src/compiler/core.ts @@ -848,7 +848,9 @@ namespace ts { return true; } - export function arrayIsEqualTo(array1: readonly T[] | undefined, array2: readonly T[] | undefined, equalityComparer: (a: T, b: T, index: number) => boolean = equateValues): boolean { + export function arrayIsEqualTo(array1: readonly T[] | undefined, array2: readonly T[] | undefined, equalityComparer?: (a: T, b: T, index: number) => boolean): boolean; + export function arrayIsEqualTo(array1: readonly T[] | undefined, array2: readonly U[] | undefined, equalityComparer: (a: T, b: U, index: number) => boolean): boolean; + export function arrayIsEqualTo(array1: readonly T[] | undefined, array2: readonly U[] | undefined, equalityComparer: (a: T, b: U, index: number) => boolean = equateValues as any): boolean { if (!array1 || !array2) { return array1 === array2; } diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 7a8aae109f9ca..689e6b81afc14 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -537,11 +537,11 @@ namespace ts { return forEachProjectReference(/*projectReferences*/ undefined, resolvedProjectReferences, (resolvedRef, parent) => resolvedRef && cb(resolvedRef, parent)); } - function forEachProjectReference( + function forEachProjectReference( projectReferences: readonly ProjectReference[] | undefined, - resolvedProjectReferences: readonly (ResolvedProjectReference | undefined)[] | undefined, - cbResolvedRef: (resolvedRef: ResolvedProjectReference | undefined, parent: ResolvedProjectReference | undefined, index: number) => T | undefined, - cbRef?: (projectReferences: readonly ProjectReference[] | undefined, parent: ResolvedProjectReference | undefined) => T | undefined + resolvedProjectReferences: readonly (R | undefined)[] | undefined, + cbResolvedRef: (resolvedRef: R | undefined, parent: R | undefined, index: number) => T | undefined, + cbRef?: (projectReferences: readonly ProjectReference[] | undefined, parent: R | undefined) => T | undefined ): T | undefined { let seenResolvedRefs: Set | undefined; @@ -549,8 +549,8 @@ namespace ts { function worker( projectReferences: readonly ProjectReference[] | undefined, - resolvedProjectReferences: readonly (ResolvedProjectReference | undefined)[] | undefined, - parent: ResolvedProjectReference | undefined, + resolvedProjectReferences: readonly (R | undefined)[] | undefined, + parent: R | undefined, ): T | undefined { // Visit project references first @@ -569,7 +569,7 @@ namespace ts { if (result || !resolvedRef) return result; (seenResolvedRefs ||= new Set()).add(resolvedRef.sourceFile.path); - return worker(resolvedRef.commandLine.projectReferences, resolvedRef.references, resolvedRef); + return worker(resolvedRef.commandLine.projectReferences, resolvedRef.references as readonly (R | undefined)[] | undefined, resolvedRef); }); } } @@ -762,10 +762,14 @@ namespace ts { configFileParseResult.errors; } + function isProgramFromBuildInfo(program: Program | ProgramFromBuildInfo): program is ProgramFromBuildInfo { + return !!(program as ProgramFromBuildInfo).programFromBuildInfo; + } + /** * Determine if source file needs to be re-created even if its text hasn't changed */ - function shouldProgramCreateNewSourceFiles(program: Program | undefined, newOptions: CompilerOptions): boolean { + function shouldProgramCreateNewSourceFiles(program: Program | ProgramFromBuildInfo | undefined, newOptions: CompilerOptions): boolean { if (!program) return false; // If any compiler options change, we can't reuse old source file even if version match // The change in options like these could result in change in syntax tree or `sourceFile.bindDiagnostics`. @@ -793,6 +797,8 @@ namespace ts { * @returns A 'Program' object. */ export function createProgram(createProgramOptions: CreateProgramOptions): Program; + /*@internal*/ + export function createProgram(createProgramOptions: CreateProgramOptionsWithProgramFromBuildInfo): Program; // eslint-disable-line @typescript-eslint/unified-signatures /** * Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions' * that represent a compilation unit. @@ -808,7 +814,7 @@ namespace ts { * @returns A 'Program' object. */ export function createProgram(rootNames: readonly string[], options: CompilerOptions, host?: CompilerHost, oldProgram?: Program, configFileParsingDiagnostics?: readonly Diagnostic[]): Program; - export function createProgram(rootNamesOrOptions: readonly string[] | CreateProgramOptions, _options?: CompilerOptions, _host?: CompilerHost, _oldProgram?: Program, _configFileParsingDiagnostics?: readonly Diagnostic[]): Program { + export function createProgram(rootNamesOrOptions: readonly string[] | CreateProgramOptions | CreateProgramOptionsWithProgramFromBuildInfo, _options?: CompilerOptions, _host?: CompilerHost, _oldProgram?: Program, _configFileParsingDiagnostics?: readonly Diagnostic[]): Program { const createProgramOptions = isArray(rootNamesOrOptions) ? createCreateProgramOptions(rootNamesOrOptions, _options!, _host, _oldProgram, _configFileParsingDiagnostics) : rootNamesOrOptions; // TODO: GH#18217 const { rootNames, options, configFileParsingDiagnostics, projectReferences } = createProgramOptions; let { oldProgram } = createProgramOptions; @@ -916,7 +922,7 @@ namespace ts { // Map from a stringified PackageId to the source file with that id. // Only one source file may have a given packageId. Others become redirects (see createRedirectSourceFile). // `packageIdToSourceFile` is only used while building the program, while `sourceFileToPackageName` and `isSourceFileTargetOfRedirect` are kept around. - const packageIdToSourceFile = new Map(); + let packageIdToSourceFile = new Map(); // Maps from a SourceFile's `.path` to the name of the package it was imported with. let sourceFileToPackageName = new Map(); // Key is a file name. Value is the (non-empty, or undefined) list of files that redirect to it. @@ -928,11 +934,11 @@ namespace ts { * - missingSourceOfProjectReferenceRedirect = false if sourceFile missing for source of project reference redirect * - missingFile = 0 otherwise */ - const filesByName = new Map(); + const filesByName = new Map(); let missingFilePaths: readonly Path[] | undefined; // stores 'filename -> file association' ignoring case // used to track cases when two file names differ only in casing - const filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? new Map() : undefined; + let filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? new Map() : undefined; // A parallel array to projectReferences storing the results of reading in the referenced tsconfig files let resolvedProjectReferences: readonly (ResolvedProjectReference | undefined)[] | undefined; @@ -1034,48 +1040,52 @@ namespace ts { } } - missingFilePaths = arrayFrom(mapDefinedIterator(filesByName.entries(), ([path, file]) => file === missingFile ? path as Path : undefined)); + missingFilePaths = arrayFrom(mapDefinedIterator(filesByName.entries(), ([path, file]) => file === missingFile ? path : undefined)); files = stableSort(processingDefaultLibFiles, compareDefaultLibFiles).concat(processingOtherFiles); processingDefaultLibFiles = undefined; processingOtherFiles = undefined; + packageIdToSourceFile = undefined!; + filesByNameIgnoreCase = undefined; } Debug.assert(!!missingFilePaths); - // Release any files we have acquired in the old program but are - // not part of the new program. - if (oldProgram && host.onReleaseOldSourceFile) { - const oldSourceFiles = oldProgram.getSourceFiles(); - for (const oldSourceFile of oldSourceFiles) { - const newFile = getSourceFileByPath(oldSourceFile.resolvedPath); - if (shouldCreateNewSourceFile || !newFile || - // old file wasn't redirect but new file is - (oldSourceFile.resolvedPath === oldSourceFile.path && newFile.resolvedPath !== oldSourceFile.path)) { - host.onReleaseOldSourceFile(oldSourceFile, oldProgram.getCompilerOptions(), !!getSourceFileByPath(oldSourceFile.path)); + if (oldProgram && !isProgramFromBuildInfo(oldProgram)) { + // Release any files we have acquired in the old program but are + // not part of the new program. + if (host.onReleaseOldSourceFile) { + const oldSourceFiles = oldProgram.getSourceFiles(); + for (const oldSourceFile of oldSourceFiles) { + const newFile = getSourceFileByPath(oldSourceFile.resolvedPath); + if (shouldCreateNewSourceFile || !newFile || + // old file wasn't redirect but new file is + (oldSourceFile.resolvedPath === oldSourceFile.path && newFile.resolvedPath !== oldSourceFile.path)) { + host.onReleaseOldSourceFile(oldSourceFile, oldProgram.getCompilerOptions(), !!getSourceFileByPath(oldSourceFile.path)); + } + } + if (!host.getParsedCommandLine) { + oldProgram.forEachResolvedProjectReference(resolvedProjectReference => { + if (!getResolvedProjectReferenceByPath(resolvedProjectReference.sourceFile.path)) { + host.onReleaseOldSourceFile!(resolvedProjectReference.sourceFile, oldProgram!.getCompilerOptions(), /*hasSourceFileByPath*/ false); + } + }); } } - if (!host.getParsedCommandLine) { - oldProgram.forEachResolvedProjectReference(resolvedProjectReference => { - if (!getResolvedProjectReferenceByPath(resolvedProjectReference.sourceFile.path)) { - host.onReleaseOldSourceFile!(resolvedProjectReference.sourceFile, oldProgram!.getCompilerOptions(), /*hasSourceFileByPath*/ false); - } - }); - } - } - // Release commandlines that new program does not use - if (oldProgram && host.onReleaseParsedCommandLine) { - forEachProjectReference( - oldProgram.getProjectReferences(), - oldProgram.getResolvedProjectReferences(), - (oldResolvedRef, parent, index) => { - const oldReference = parent?.commandLine.projectReferences![index] || oldProgram!.getProjectReferences()![index]; - const oldRefPath = resolveProjectReferencePath(oldReference); - if (!projectReferenceRedirects?.has(toPath(oldRefPath))) { - host.onReleaseParsedCommandLine!(oldRefPath, oldResolvedRef, oldProgram!.getCompilerOptions()); + // Release commandlines that new program does not use + if (host.onReleaseParsedCommandLine) { + forEachProjectReference( + oldProgram.getProjectReferences(), + oldProgram.getResolvedProjectReferences(), + (oldResolvedRef, parent, index) => { + const oldReference = parent?.commandLine.projectReferences![index] || oldProgram!.getProjectReferences()![index]; + const oldRefPath = resolveProjectReferencePath(oldReference); + if (!projectReferenceRedirects?.has(toPath(oldRefPath))) { + host.onReleaseParsedCommandLine!(oldRefPath, oldResolvedRef, oldProgram!.getCompilerOptions()); + } } - } - ); + ); + } } typeReferenceDirectiveResolutionCache = undefined; @@ -1115,6 +1125,7 @@ namespace ts { getFileProcessingDiagnostics: () => fileProcessingDiagnostics, getResolvedTypeReferenceDirectives: () => resolvedTypeReferenceDirectives, isSourceFileFromExternalLibrary, + isSourceFileFromExternalLibraryPath, isSourceFileDefaultLibrary, dropDiagnosticsProducingTypeChecker, getSourceFileFromReference, @@ -1389,7 +1400,7 @@ namespace ts { // we should adjust the value returned here. function moduleNameResolvesToAmbientModuleInNonModifiedFile(moduleName: string): boolean { const resolutionToFile = oldSourceFile?.resolvedModules?.get(moduleName)?.resolvedModule; - const resolvedFile = resolutionToFile && oldProgram!.getSourceFile(resolutionToFile.resolvedFileName); + const resolvedFile = resolutionToFile && oldProgram!.getSourceFileByPath(toPath(resolutionToFile.resolvedFileName)); if (resolutionToFile && resolvedFile) { // In the old program, we resolved to an ambient module that was in the same // place as we expected to find an actual module file. @@ -1503,7 +1514,7 @@ namespace ts { return StructureIsReused.Not; } // redirect target should already be present - Debug.checkDefined(find(newSourceFiles, f => f.path === oldSourceFile.redirectInfo?.redirectTarget.path)); + Debug.checkDefined(find(newSourceFiles, f => f.path === oldSourceFile.redirectInfo!.redirectTarget.path)); // Add to the newSourceFiles for now and handle redirect if program is used completely newSourceFiles.push(newSourceFile); continue; @@ -1651,8 +1662,8 @@ namespace ts { // Update file if its redirecting to different file if (oldSourceFile.redirectInfo) { const newRedirectTarget = filesByName.get(oldSourceFile.redirectInfo.redirectTarget.path) as SourceFile; - const newRedirectSourceFile = newRedirectTarget === oldSourceFile.redirectInfo.redirectTarget ? - oldSourceFile : + const newRedirectSourceFile = !isProgramFromBuildInfo(oldProgram) && newRedirectTarget === oldSourceFile.redirectInfo.redirectTarget ? + oldSourceFile as SourceFile : // Create new redirect file createRedirectSourceFile(newRedirectTarget, newSourceFile, oldSourceFile.fileName, oldSourceFile.path, oldSourceFile.resolvedPath, oldSourceFile.originalFileName); newSourceFiles[index] = newRedirectSourceFile; @@ -1665,20 +1676,21 @@ namespace ts { newSourceFile.resolvedTypeReferenceDirectiveNames = oldSourceFile.resolvedTypeReferenceDirectiveNames; } } - const oldFilesByNameMap = oldProgram.getFilesByNameMap(); + const oldFilesByNameMap = oldProgram.getFilesByNameMap() as ESMap; oldFilesByNameMap.forEach((oldFile, path) => { if (!oldFile) { - filesByName.set(path, oldFile); + filesByName.set(path, oldFile as false | 0); return; } - if (oldFile.path === path) { + const oldPath = !isString(oldFile) ? oldFile.path : oldFile; + if (oldPath === path) { // Set the file as found during node modules search if it was found that way in old progra, - if (oldProgram!.isSourceFileFromExternalLibrary(oldFile)) { - sourceFilesFoundSearchingNodeModules.set(oldFile.path, true); + if (oldProgram!.isSourceFileFromExternalLibraryPath(oldPath)) { + sourceFilesFoundSearchingNodeModules.set(oldPath, true); } return; } - filesByName.set(path, filesByName.get(oldFile.path)!); + filesByName.set(path, filesByName.get(oldPath)!); }); files = newSourceFiles; @@ -1769,7 +1781,11 @@ namespace ts { } function isSourceFileFromExternalLibrary(file: SourceFile): boolean { - return !!sourceFilesFoundSearchingNodeModules.get(file.path); + return isSourceFileFromExternalLibraryPath(file.path); + } + + function isSourceFileFromExternalLibraryPath(file: Path): boolean { + return !!sourceFilesFoundSearchingNodeModules.get(file); } function isSourceFileDefaultLibrary(file: SourceFile): boolean { @@ -2308,14 +2324,14 @@ namespace ts { processSourceFile(normalizePath(fileName), isDefaultLib, ignoreNoDefaultLib, /*packageId*/ undefined, reason); } - function fileReferenceIsEqualTo(a: FileReference, b: FileReference): boolean { - return a.fileName === b.fileName; + function fileReferenceIsEqualTo(oldReference: FileReference | string, newReference: FileReference): boolean { + return (!isString(oldReference) ? oldReference.fileName : oldReference) === newReference.fileName; } - function moduleNameIsEqualTo(a: StringLiteralLike | Identifier, b: StringLiteralLike | Identifier): boolean { - return a.kind === SyntaxKind.Identifier - ? b.kind === SyntaxKind.Identifier && a.escapedText === b.escapedText - : b.kind === SyntaxKind.StringLiteral && a.text === b.text; + function moduleNameIsEqualTo(oldName: StringLiteralLike | Identifier | ModuleNameOfProgramFromBuildInfo, newName: StringLiteralLike | Identifier): boolean { + return oldName.kind === SyntaxKind.Identifier + ? newName.kind === SyntaxKind.Identifier && oldName.escapedText === newName.escapedText + : newName.kind === SyntaxKind.StringLiteral && oldName.text === newName.text; } function createSyntheticImport(text: string, file: SourceFile) { diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 5c73c705033ec..6a97153ace20e 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -3884,7 +3884,7 @@ namespace ts { /* @internal */ getMissingFilePaths(): readonly Path[]; /* @internal */ - getFilesByNameMap(): ESMap; + getFilesByNameMap(): ESMap; /** * Emits the JavaScript and declaration files. If targetSourceFile is not specified, then @@ -3938,6 +3938,7 @@ namespace ts { /* @internal */ getFileProcessingDiagnostics(): FilePreprocessingDiagnostics[] | undefined; /* @internal */ getResolvedTypeReferenceDirectives(): ESMap; isSourceFileFromExternalLibrary(file: SourceFile): boolean; + /* @internal */ isSourceFileFromExternalLibraryPath(path: Path): boolean; isSourceFileDefaultLibrary(file: SourceFile): boolean; // For testing purposes only. @@ -3975,6 +3976,78 @@ namespace ts { export interface Program extends TypeCheckerHost, ModuleSpecifierResolutionHost { } + /* @internal */ + export interface RedirectInfoOfProgramFromBuildInfo { + readonly redirectTarget: Pick; + } + + /* @internal */ + export interface ResolvedProjectReferenceOfProgramFromBuildInfo { + commandLine: Pick; + sourceFile: Pick; + references?: readonly (ResolvedProjectReferenceOfProgramFromBuildInfo | undefined)[]; + } + + /*@internal*/ + export interface IdentifierOfProgramFromBuildInfo { + kind: SyntaxKind.Identifier; + escapedText: string; + } + + /*@internal*/ + export interface StringLiteralLikeOfProgramFromBuildInfo { + kind: SyntaxKind.StringLiteral | SyntaxKind.NoSubstitutionTemplateLiteral; + text: string; + escapedText: string; + } + + /*@internal*/ + export type ModuleNameOfProgramFromBuildInfo = IdentifierOfProgramFromBuildInfo | StringLiteralLikeOfProgramFromBuildInfo; + + /*@internal*/ + export interface SourceFileOfProgramFromBuildInfo { + fileName: string; + originalFileName: string; + path: Path; + resolvedPath: Path; + flags: NodeFlags; + version: string; + + typeReferenceDirectives: readonly string[]; + libReferenceDirectives: readonly string[]; + referencedFiles: readonly string[]; + imports: readonly StringLiteralLikeOfProgramFromBuildInfo[]; + moduleAugmentations: ModuleNameOfProgramFromBuildInfo[]; + ambientModuleNames: readonly string[]; + hasNoDefaultLib: boolean; + + resolvedModules?: ESMap; + resolvedTypeReferenceDirectiveNames: ESMap; + redirectInfo?: RedirectInfoOfProgramFromBuildInfo; + } + + /*@internal*/ + export interface ProgramFromBuildInfo { + programFromBuildInfo: true; + + getCompilerOptions(): CompilerOptions; + getRootFileNames(): readonly string[]; + getSourceFiles(): SourceFileOfProgramFromBuildInfo[]; + getSourceFileByPath(path: Path): SourceFileOfProgramFromBuildInfo | undefined; + getProjectReferences(): readonly ProjectReference[] | undefined; + getResolvedProjectReferences(): readonly ResolvedProjectReferenceOfProgramFromBuildInfo[] | undefined; + getMissingFilePaths(): readonly Path[]; + getFileIncludeReasons(): MultiMap; + getResolvedTypeReferenceDirectives(): ESMap; + getFilesByNameMap(): ReadonlyESMap; + isSourceFileFromExternalLibraryPath(path: Path): boolean; + getFileProcessingDiagnostics(): FilePreprocessingDiagnostics[] | undefined; + + redirectTargetsMap: MultiMap; + sourceFileToPackageName: ESMap; + structureIsReused?: StructureIsReused; + } + /* @internal */ export type RedirectTargetsMap = ReadonlyESMap; @@ -6215,6 +6288,9 @@ namespace ts { configFileParsingDiagnostics?: readonly Diagnostic[]; } + /* @internal */ + export type CreateProgramOptionsWithProgramFromBuildInfo = Omit & { oldProgram: ProgramFromBuildInfo; }; + /* @internal */ export interface CommandLineOptionBase { name: string; diff --git a/src/executeCommandLine/executeCommandLine.ts b/src/executeCommandLine/executeCommandLine.ts index 1861e3e103247..d646b475876b7 100644 --- a/src/executeCommandLine/executeCommandLine.ts +++ b/src/executeCommandLine/executeCommandLine.ts @@ -526,14 +526,13 @@ namespace ts { changeCompilerHostLikeToUseCache(host, fileName => toPath(fileName, currentDirectory, getCanonicalFileName)); enableStatisticsAndTracing(sys, options, /*isBuildMode*/ false); - const programOptions: CreateProgramOptions = { + const program = createProgram({ rootNames: fileNames, options, projectReferences, host, configFileParsingDiagnostics: getConfigFileParsingDiagnostics(config) - }; - const program = createProgram(programOptions); + }); const exitStatus = emitFilesAndReportErrorsAndGetExitStatus( program, reportDiagnostic, diff --git a/src/services/services.ts b/src/services/services.ts index 903bff459fd02..e7f7cb6bd2172 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -1357,14 +1357,13 @@ namespace ts { host.setCompilerHost?.(compilerHost); const documentRegistryBucketKey = documentRegistry.getKeyForCompilationSettings(newSettings); - const options: CreateProgramOptions = { + program = createProgram({ rootNames: rootFileNames, options: newSettings, host: compilerHost, oldProgram: program, projectReferences - }; - program = createProgram(options); + }); // hostCache is captured in the closure for 'getOrCreateSourceFile' but it should not be used past this point. // It needs to be cleared to allow all collected snapshots to be released From 69f5ded2ebabc497408c7234fb451ebadd8667ce Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 9 Oct 2020 11:31:58 -0700 Subject: [PATCH 11/48] Skeleton for buildinfo program --- src/compiler/builder.ts | 6 +++++- src/compiler/builderPublic.ts | 5 +++++ src/compiler/resolutionCache.ts | 1 + src/compiler/types.ts | 2 +- src/compiler/watchUtilities.ts | 2 +- 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index 516d7cc4d1d5c..160394fecfd38 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -936,7 +936,7 @@ namespace ts { rootNames: newProgramOrRootNames, options: hostOrOptions as CompilerOptions, host: oldProgramOrHost as CompilerHost, - oldProgram: oldProgram && oldProgram.getProgramOrUndefined(), + oldProgram: oldProgram?.getProgramOrProgramFromBuildInfoOrUndefined(), configFileParsingDiagnostics, projectReferences }); @@ -1270,6 +1270,8 @@ namespace ts { restoreState: noop, getProgram: notImplemented, getProgramOrUndefined: returnUndefined, + // TODO:: + getProgramOrProgramFromBuildInfoOrUndefined: returnUndefined, releaseProgram: noop, getCompilerOptions: () => state.compilerOptions, getSourceFile: notImplemented, @@ -1317,6 +1319,8 @@ namespace ts { restoreState: noop, getProgram, getProgramOrUndefined: () => getState().program, + // TODO:: + getProgramOrProgramFromBuildInfoOrUndefined: () => getState().program, releaseProgram: () => getState().program = undefined, getCompilerOptions: () => getState().compilerOptions, getSourceFile: fileName => getProgram().getSourceFile(fileName), diff --git a/src/compiler/builderPublic.ts b/src/compiler/builderPublic.ts index 5d5d2ed25dd52..547b0d9f34094 100644 --- a/src/compiler/builderPublic.ts +++ b/src/compiler/builderPublic.ts @@ -41,6 +41,11 @@ namespace ts { */ /*@internal*/ getProgramOrUndefined(): Program | undefined; + /** + * Returns current program that could be undefined if the program was released + */ + /*@internal*/ + getProgramOrProgramFromBuildInfoOrUndefined(): Program | ProgramFromBuildInfo | undefined; /** * Releases reference to the program, making all the other operations that need program to fail. */ diff --git a/src/compiler/resolutionCache.ts b/src/compiler/resolutionCache.ts index e7d9417f6836d..1d561ce31adce 100644 --- a/src/compiler/resolutionCache.ts +++ b/src/compiler/resolutionCache.ts @@ -378,6 +378,7 @@ namespace ts { // All the resolutions in this file are invalidated if this file wasn't resolved using same redirect const program = resolutionHost.getCurrentProgram(); + // TODO later to see if we need to hydrate resolution cache and if we need to be able to answer this const oldRedirect = program && program.getResolvedProjectReferenceToRedirect(containingFile); const unmatchedRedirects = oldRedirect ? !redirectedReference || redirectedReference.sourceFile.path !== oldRedirect.sourceFile.path : diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 6a97153ace20e..9333a47047770 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -6289,7 +6289,7 @@ namespace ts { } /* @internal */ - export type CreateProgramOptionsWithProgramFromBuildInfo = Omit & { oldProgram: ProgramFromBuildInfo; }; + export type CreateProgramOptionsWithProgramFromBuildInfo = Omit & { oldProgram: ProgramFromBuildInfo | Program | undefined; }; /* @internal */ export interface CommandLineOptionBase { diff --git a/src/compiler/watchUtilities.ts b/src/compiler/watchUtilities.ts index 647c0ffdd14d7..18b385976b038 100644 --- a/src/compiler/watchUtilities.ts +++ b/src/compiler/watchUtilities.ts @@ -486,7 +486,7 @@ namespace ts { // just check if sourceFile with the name exists const filePathWithoutExtension = removeFileExtension(fileOrDirectoryPath); - const realProgram = isArray(program) ? undefined : isBuilderProgram(program) ? program.getProgramOrUndefined() : program; + const realProgram = isArray(program) ? undefined : isBuilderProgram(program) ? program.getProgramOrProgramFromBuildInfoOrUndefined() : program; const builderProgram = !realProgram && !isArray(program) ? program as BuilderProgram : undefined; if (hasSourceFile((filePathWithoutExtension + Extension.Ts) as Path) || hasSourceFile((filePathWithoutExtension + Extension.Tsx) as Path)) { From 31b7991b5066454b691793fe0d62961c93940a14 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 12 Oct 2020 11:56:19 -0700 Subject: [PATCH 12/48] Add option persistResolutions --- src/compiler/builder.ts | 3 +++ src/compiler/commandLineParser.ts | 7 +++++++ src/compiler/diagnosticMessages.json | 4 ++++ src/compiler/program.ts | 4 ++++ src/compiler/types.ts | 1 + tests/baselines/reference/api/tsserverlibrary.d.ts | 1 + tests/baselines/reference/api/typescript.d.ts | 1 + tests/baselines/reference/persistResolutions.js | 6 ++++++ tests/baselines/reference/persistResolutions.symbols | 4 ++++ tests/baselines/reference/persistResolutions.types | 5 +++++ .../persistResolutionsWithoutIncremental.errors.txt | 11 +++++++++++ .../reference/persistResolutionsWithoutIncremental.js | 6 ++++++ .../persistResolutionsWithoutIncremental.symbols | 4 ++++ .../persistResolutionsWithoutIncremental.types | 5 +++++ .../persistResolutions/tsconfig.json | 5 +++++ tests/cases/compiler/persistResolutions.ts | 9 +++++++++ .../compiler/persistResolutionsWithoutIncremental.ts | 8 ++++++++ 17 files changed, 84 insertions(+) create mode 100644 tests/baselines/reference/persistResolutions.js create mode 100644 tests/baselines/reference/persistResolutions.symbols create mode 100644 tests/baselines/reference/persistResolutions.types create mode 100644 tests/baselines/reference/persistResolutionsWithoutIncremental.errors.txt create mode 100644 tests/baselines/reference/persistResolutionsWithoutIncremental.js create mode 100644 tests/baselines/reference/persistResolutionsWithoutIncremental.symbols create mode 100644 tests/baselines/reference/persistResolutionsWithoutIncremental.types create mode 100644 tests/baselines/reference/showConfig/Shows tsconfig for single option/persistResolutions/tsconfig.json create mode 100644 tests/cases/compiler/persistResolutions.ts create mode 100644 tests/cases/compiler/persistResolutionsWithoutIncremental.ts diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index 160394fecfd38..a6bcaa5ae54df 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -298,6 +298,7 @@ namespace ts { */ function releaseCache(state: BuilderProgramState) { BuilderState.releaseCache(state); + // TODO:: If persistResolutions, cache program state.program = undefined; } @@ -984,9 +985,11 @@ namespace ts { builderProgram.getState = getState; builderProgram.backupState = () => { Debug.assert(backupState === undefined); + Debug.checkDefined(state.program); backupState = cloneBuilderProgramState(state); }; builderProgram.restoreState = () => { + Debug.assert(backupState!.program === state.program); state = Debug.checkDefined(backupState); backupState = undefined; }; diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 7b28392608151..4d83fbf216481 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -954,6 +954,13 @@ namespace ts { // so pass --noResolve to avoid reporting missing file errors. transpileOptionValue: true }, + { + name: "persistResolutions", + type: "boolean", + affectsModuleResolution: true, + category: Diagnostics.Advanced_Options, + description: Diagnostics.Save_module_and_type_reference_directive_resolution_information_in_tsbuildinfo_file, + }, { name: "stripInternal", type: "boolean", diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 53de48b009186..0c4d94aeca4a8 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -4881,6 +4881,10 @@ "category": "Message", "code": 6243 }, + "Save module and type reference directive resolution information in '.tsbuildinfo' file.": { + "category": "Message", + "code": 6244 + }, "Projects to reference": { "category": "Message", diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 689e6b81afc14..354c22ef59285 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -3155,6 +3155,10 @@ namespace ts { programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)); } + if (options.persistResolutions && !isIncrementalCompilation(options)) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "persistResolutions", "incremental", "composite"); + } + verifyProjectReferences(); // List of collected files is complete; validate exhautiveness if this is a project with a file list diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 9333a47047770..a492c6d9c9253 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -6104,6 +6104,7 @@ namespace ts { composite?: boolean; incremental?: boolean; tsBuildInfoFile?: string; + persistResolutions?: string; removeComments?: boolean; rootDir?: string; rootDirs?: string[]; diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index d443165a70089..83ee75ebcac79 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -2901,6 +2901,7 @@ declare namespace ts { composite?: boolean; incremental?: boolean; tsBuildInfoFile?: string; + persistResolutions?: string; removeComments?: boolean; rootDir?: string; rootDirs?: string[]; diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 7b5bc3d464b0c..74093cee783ef 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -2901,6 +2901,7 @@ declare namespace ts { composite?: boolean; incremental?: boolean; tsBuildInfoFile?: string; + persistResolutions?: string; removeComments?: boolean; rootDir?: string; rootDirs?: string[]; diff --git a/tests/baselines/reference/persistResolutions.js b/tests/baselines/reference/persistResolutions.js new file mode 100644 index 0000000000000..b90c65b9f0901 --- /dev/null +++ b/tests/baselines/reference/persistResolutions.js @@ -0,0 +1,6 @@ +//// [a.ts] +const x = 10; + + +//// [a.js] +var x = 10; diff --git a/tests/baselines/reference/persistResolutions.symbols b/tests/baselines/reference/persistResolutions.symbols new file mode 100644 index 0000000000000..05c35bcf58a68 --- /dev/null +++ b/tests/baselines/reference/persistResolutions.symbols @@ -0,0 +1,4 @@ +=== /a.ts === +const x = 10; +>x : Symbol(x, Decl(a.ts, 0, 5)) + diff --git a/tests/baselines/reference/persistResolutions.types b/tests/baselines/reference/persistResolutions.types new file mode 100644 index 0000000000000..ed892fed2ba10 --- /dev/null +++ b/tests/baselines/reference/persistResolutions.types @@ -0,0 +1,5 @@ +=== /a.ts === +const x = 10; +>x : 10 +>10 : 10 + diff --git a/tests/baselines/reference/persistResolutionsWithoutIncremental.errors.txt b/tests/baselines/reference/persistResolutionsWithoutIncremental.errors.txt new file mode 100644 index 0000000000000..121353a7f02da --- /dev/null +++ b/tests/baselines/reference/persistResolutionsWithoutIncremental.errors.txt @@ -0,0 +1,11 @@ +error TS5069: Option 'persistResolutions' cannot be specified without specifying option 'incremental' or option 'composite'. + + +!!! error TS5069: Option 'persistResolutions' cannot be specified without specifying option 'incremental' or option 'composite'. +==== /tsconfig.json (0 errors) ==== + { } + + +==== /a.ts (0 errors) ==== + const x = 10; + \ No newline at end of file diff --git a/tests/baselines/reference/persistResolutionsWithoutIncremental.js b/tests/baselines/reference/persistResolutionsWithoutIncremental.js new file mode 100644 index 0000000000000..b90c65b9f0901 --- /dev/null +++ b/tests/baselines/reference/persistResolutionsWithoutIncremental.js @@ -0,0 +1,6 @@ +//// [a.ts] +const x = 10; + + +//// [a.js] +var x = 10; diff --git a/tests/baselines/reference/persistResolutionsWithoutIncremental.symbols b/tests/baselines/reference/persistResolutionsWithoutIncremental.symbols new file mode 100644 index 0000000000000..05c35bcf58a68 --- /dev/null +++ b/tests/baselines/reference/persistResolutionsWithoutIncremental.symbols @@ -0,0 +1,4 @@ +=== /a.ts === +const x = 10; +>x : Symbol(x, Decl(a.ts, 0, 5)) + diff --git a/tests/baselines/reference/persistResolutionsWithoutIncremental.types b/tests/baselines/reference/persistResolutionsWithoutIncremental.types new file mode 100644 index 0000000000000..ed892fed2ba10 --- /dev/null +++ b/tests/baselines/reference/persistResolutionsWithoutIncremental.types @@ -0,0 +1,5 @@ +=== /a.ts === +const x = 10; +>x : 10 +>10 : 10 + diff --git a/tests/baselines/reference/showConfig/Shows tsconfig for single option/persistResolutions/tsconfig.json b/tests/baselines/reference/showConfig/Shows tsconfig for single option/persistResolutions/tsconfig.json new file mode 100644 index 0000000000000..f70527a30961c --- /dev/null +++ b/tests/baselines/reference/showConfig/Shows tsconfig for single option/persistResolutions/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "persistResolutions": true + } +} diff --git a/tests/cases/compiler/persistResolutions.ts b/tests/cases/compiler/persistResolutions.ts new file mode 100644 index 0000000000000..3ab26c4d1bc45 --- /dev/null +++ b/tests/cases/compiler/persistResolutions.ts @@ -0,0 +1,9 @@ +// @incremental: true +// @persistResolutions: true + +// @Filename: /a.ts +const x = 10; + +// @Filename: /tsconfig.json +{ } + diff --git a/tests/cases/compiler/persistResolutionsWithoutIncremental.ts b/tests/cases/compiler/persistResolutionsWithoutIncremental.ts new file mode 100644 index 0000000000000..be8a4c10a23be --- /dev/null +++ b/tests/cases/compiler/persistResolutionsWithoutIncremental.ts @@ -0,0 +1,8 @@ +// @persistResolutions: true + +// @Filename: /a.ts +const x = 10; + +// @Filename: /tsconfig.json +{ } + From f85403828699102a9b273ded82dbefdb8bee2de0 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 12 Oct 2020 12:38:31 -0700 Subject: [PATCH 13/48] CleanResolutions to remove resolutions from tsbuildinfo file --- src/compiler/commandLineParser.ts | 7 +++++++ src/compiler/diagnosticMessages.json | 4 ++++ src/compiler/tsbuildPublic.ts | 1 + src/compiler/types.ts | 1 + tests/baselines/reference/api/tsserverlibrary.d.ts | 1 + tests/baselines/reference/api/typescript.d.ts | 1 + .../cleanResolutions/tsconfig.json | 5 +++++ 7 files changed, 20 insertions(+) create mode 100644 tests/baselines/reference/showConfig/Shows tsconfig for single option/cleanResolutions/tsconfig.json diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 4d83fbf216481..86efb8b24f649 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -278,6 +278,13 @@ namespace ts { category: Diagnostics.Advanced_Options, description: Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us }, + { + name: "cleanResolutions", + type: "boolean", + isCommandLineOnly: true, + category: Diagnostics.Advanced_Options, + description: Diagnostics.Save_module_and_type_reference_directive_resolution_information_in_tsbuildinfo_file, + }, ]; /* @internal */ diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 0c4d94aeca4a8..9b92facab9b8e 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -4885,6 +4885,10 @@ "category": "Message", "code": 6244 }, + "Clean module and type reference directive resolution information in '.tsbuildinfo' file.": { + "category": "Message", + "code": 6245 + }, "Projects to reference": { "category": "Message", diff --git a/src/compiler/tsbuildPublic.ts b/src/compiler/tsbuildPublic.ts index f818ee286b336..c451cd752c75f 100644 --- a/src/compiler/tsbuildPublic.ts +++ b/src/compiler/tsbuildPublic.ts @@ -18,6 +18,7 @@ namespace ts { /*@internal*/ pretty?: boolean; incremental?: boolean; assumeChangesOnlyAffectDirectDependencies?: boolean; + /*@internal*/ cleanResolutions?: boolean; traceResolution?: boolean; /* @internal */ diagnostics?: boolean; diff --git a/src/compiler/types.ts b/src/compiler/types.ts index a492c6d9c9253..90067e0d91d39 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -6105,6 +6105,7 @@ namespace ts { incremental?: boolean; tsBuildInfoFile?: string; persistResolutions?: string; + cleanResolutions?: boolean; removeComments?: boolean; rootDir?: string; rootDirs?: string[]; diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 83ee75ebcac79..ff74af449bf57 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -2902,6 +2902,7 @@ declare namespace ts { incremental?: boolean; tsBuildInfoFile?: string; persistResolutions?: string; + cleanResolutions?: boolean; removeComments?: boolean; rootDir?: string; rootDirs?: string[]; diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 74093cee783ef..77d2751e2b6e6 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -2902,6 +2902,7 @@ declare namespace ts { incremental?: boolean; tsBuildInfoFile?: string; persistResolutions?: string; + cleanResolutions?: boolean; removeComments?: boolean; rootDir?: string; rootDirs?: string[]; diff --git a/tests/baselines/reference/showConfig/Shows tsconfig for single option/cleanResolutions/tsconfig.json b/tests/baselines/reference/showConfig/Shows tsconfig for single option/cleanResolutions/tsconfig.json new file mode 100644 index 0000000000000..010b324604740 --- /dev/null +++ b/tests/baselines/reference/showConfig/Shows tsconfig for single option/cleanResolutions/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "cleanResolutions": true + } +} From 9e07d458c815870a647b69f425ff028aed073ac5 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 12 Oct 2020 14:49:35 -0700 Subject: [PATCH 14/48] Clean resolutions from tsbuild info --- src/compiler/tsbuildPublic.ts | 36 +++++++++++++++++++ src/compiler/watch.ts | 23 ++++++++++++ src/compiler/watchPublic.ts | 26 ++++++++++++++ src/executeCommandLine/executeCommandLine.ts | 31 ++++++++++++++++ .../reference/api/tsserverlibrary.d.ts | 7 ++++ tests/baselines/reference/api/typescript.d.ts | 7 ++++ 6 files changed, 130 insertions(+) diff --git a/src/compiler/tsbuildPublic.ts b/src/compiler/tsbuildPublic.ts index c451cd752c75f..02b2d2a71519d 100644 --- a/src/compiler/tsbuildPublic.ts +++ b/src/compiler/tsbuildPublic.ts @@ -134,8 +134,10 @@ namespace ts { export interface SolutionBuilder { build(project?: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers): ExitStatus; clean(project?: string): ExitStatus; + cleanResolutions(project?: string): ExitStatus; buildReferences(project: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers): ExitStatus; cleanReferences(project?: string): ExitStatus; + cleanResolutionsOfReferences(project?: string): ExitStatus; getNextInvalidatedProject(cancellationToken?: CancellationToken): InvalidatedProject | undefined; // Currently used for testing but can be made public if needed: @@ -1725,6 +1727,38 @@ namespace ts { return ExitStatus.Success; } + function cleanResolutions(state: SolutionBuilderState, project?: string, onlyReferences?: boolean) { + const buildOrder = getBuildOrderFor(state, project, onlyReferences); + if (!buildOrder) return ExitStatus.InvalidProject_OutputsSkipped; + + if (isCircularBuildOrder(buildOrder)) { + reportErrors(state, buildOrder.circularDiagnostics); + state.host.reportErrorSummary?.(getErrorCountForSummary(buildOrder.circularDiagnostics)); + return ExitStatus.ProjectReferenceCycle_OutputsSkipped; + } + + let diagnostics = 0; + for (const proj of buildOrder) { + const resolvedPath = toResolvedConfigFilePath(state, proj); + const parsed = parseConfigFile(state, proj, resolvedPath); + if (parsed) { + diagnostics += cleanResolutionsOfTsBuildInfoAndReportError( + parsed.options, + state.compilerHost, + err => state.host.reportDiagnostic(err), + state.write, + ); + } + else { + // File has gone missing; fine to ignore here + reportParseConfigFileDiagnostic(state, resolvedPath); + } + } + + state.host.reportErrorSummary?.(diagnostics); + return diagnostics ? ExitStatus.DiagnosticsPresent_OutputsGenerated : ExitStatus.Success; + } + function invalidateProject(state: SolutionBuilderState, resolved: ResolvedConfigFilePath, reloadLevel: ConfigFileProgramReloadLevel) { // If host implements getParsedCommandLine, we cant get list of files from parseConfigFileHost if (state.host.getParsedCommandLine && reloadLevel === ConfigFileProgramReloadLevel.Partial) { @@ -1899,8 +1933,10 @@ namespace ts { return { build: (project, cancellationToken, writeFile, getCustomTransformers) => build(state, project, cancellationToken, writeFile, getCustomTransformers), clean: project => clean(state, project), + cleanResolutions: project => cleanResolutions(state, project), buildReferences: (project, cancellationToken, writeFile, getCustomTransformers) => build(state, project, cancellationToken, writeFile, getCustomTransformers, /*onlyReferences*/ true), cleanReferences: project => clean(state, project, /*onlyReferences*/ true), + cleanResolutionsOfReferences: project => cleanResolutions(state, project, /*onlyReferences*/ true), getNextInvalidatedProject: cancellationToken => { setupInitialBuild(state, cancellationToken); return getNextInvalidatedProject(state, getBuildOrder(state), /*reportQueue*/ false); diff --git a/src/compiler/watch.ts b/src/compiler/watch.ts index 90346bbd72642..2c1d5b9b12acf 100644 --- a/src/compiler/watch.ts +++ b/src/compiler/watch.ts @@ -392,6 +392,29 @@ namespace ts { return ExitStatus.Success; } + export interface CleanResolutionsOfTsBuildInfoAndReportErrorHost extends CleanResolutionsOfTsBuildInfoHost { + getCurrentDirectory(): string; + } + export function cleanResolutionsOfTsBuildInfoAndReportError( + options: CompilerOptions, + host: CleanResolutionsOfTsBuildInfoAndReportErrorHost, + reportDiagnostic: DiagnosticReporter, + write?: (s: string) => void, + reportSummary?: ReportEmitErrorSummary, + ): number { + const { emittedFiles, diagnostics } = cleanResolutionsOfTsBuildInfo(options, host); + diagnostics.forEach(reportDiagnostic); + if (write) { + const currentDir = host.getCurrentDirectory(); + forEach(emittedFiles, file => { + const filepath = getNormalizedAbsolutePath(file, currentDir); + write(`TSFILE: ${filepath}`); + }); + } + reportSummary?.(diagnostics.length); + return diagnostics.length; + } + export const noopFileWatcher: FileWatcher = { close: noop }; export const returnNoopFileWatcher = () => noopFileWatcher; diff --git a/src/compiler/watchPublic.ts b/src/compiler/watchPublic.ts index d91a21eff391b..8d73e78e25dba 100644 --- a/src/compiler/watchPublic.ts +++ b/src/compiler/watchPublic.ts @@ -16,6 +16,32 @@ namespace ts { return createBuildProgramUsingProgramBuildInfo(buildInfo.program, buildInfoPath, host); } + export interface CleanResolutionsOfTsBuildInfoHost { + readFile(fileName: string): string | undefined; + writeFile: WriteFileCallback; + } + export function cleanResolutionsOfTsBuildInfo(compilerOptions: CompilerOptions, host: CleanResolutionsOfTsBuildInfoHost): EmitResult { + if (outFile(compilerOptions)) return emitSkippedWithNoDiagnostics; + const buildInfoPath = getTsBuildInfoEmitOutputFilePath(compilerOptions); + if (!buildInfoPath) return emitSkippedWithNoDiagnostics; + const content = host.readFile(buildInfoPath); + if (!content) return emitSkippedWithNoDiagnostics; + const buildInfo = getBuildInfo(content); + if (buildInfo.version !== version) return emitSkippedWithNoDiagnostics; + if (!buildInfo.program) return emitSkippedWithNoDiagnostics; + // TODO:: Clean the actual program + let newContent = content; + + // Actual writeFile with new program + const emitDiagnostics = createDiagnosticCollection(); + writeFile(host, emitDiagnostics, buildInfoPath, newContent, /*writeByteOrderMark*/ false); + return { + emitSkipped: false, + diagnostics: emitDiagnostics.getDiagnostics(), + emittedFiles: compilerOptions.listEmittedFiles ? [buildInfoPath] : undefined + }; + } + export function createIncrementalCompilerHost(options: CompilerOptions, system = sys): CompilerHost { const host = createCompilerHostWorker(options, /*setParentNodes*/ undefined, system); host.createHash = maybeBind(system, system.createHash); diff --git a/src/executeCommandLine/executeCommandLine.ts b/src/executeCommandLine/executeCommandLine.ts index d646b475876b7..d597acd56518c 100644 --- a/src/executeCommandLine/executeCommandLine.ts +++ b/src/executeCommandLine/executeCommandLine.ts @@ -307,6 +307,10 @@ namespace ts { reportDiagnostic, configParseResult.options ); + if (commandLineOptions.cleanResolutions) { + configParseResult.errors.forEach(reportDiagnostic); + return cleanResolutions(sys, configParseResult.options, reportDiagnostic); + } if (isWatchSet(configParseResult.options)) { if (reportWatchModeWithoutSysSupport(sys, reportDiagnostic)) return; return createWatchOfConfigFile( @@ -347,6 +351,9 @@ namespace ts { reportDiagnostic, commandLineOptions ); + if (commandLineOptions.cleanResolutions) { + return cleanResolutions(sys, commandLineOptions, reportDiagnostic); + } if (isWatchSet(commandLineOptions)) { if (reportWatchModeWithoutSysSupport(sys, reportDiagnostic)) return; return createWatchOfFilesAndCompilerOptions( @@ -478,6 +485,19 @@ namespace ts { return sys.exit(ExitStatus.DiagnosticsPresent_OutputsSkipped); } + if (buildOptions.cleanResolutions) { + const buildHost = createSolutionBuilderHost( + sys, + /*createProgram*/ undefined, + reportDiagnostic, + createBuilderStatusReporter(sys, shouldBePretty(sys, buildOptions)), + createReportErrorSummary(sys, buildOptions) + ); + updateSolutionBuilderHost(sys, cb, buildHost); + const builder = createSolutionBuilder(buildHost, projects, buildOptions); + return sys.exit(builder.cleanResolutions()); + } + if (buildOptions.watch) { if (reportWatchModeWithoutSysSupport(sys, reportDiagnostic)) return; const buildHost = createSolutionBuilderWithWatchHost( @@ -513,6 +533,17 @@ namespace ts { undefined; } + function cleanResolutions(sys: System, options: CompilerOptions, reportDiagnostic: DiagnosticReporter) { + const diagnostics = cleanResolutionsOfTsBuildInfoAndReportError( + options, + sys, + reportDiagnostic, + s => sys.write(s + sys.newLine), + createReportErrorSummary(sys, options) + ); + return sys.exit(diagnostics ? ExitStatus.DiagnosticsPresent_OutputsGenerated : ExitStatus.Success); + } + function performCompilation( sys: System, cb: ExecuteCommandLineCallbacks, diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index ff74af449bf57..025ec6e904910 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -5091,6 +5091,11 @@ declare namespace ts { readFile(fileName: string): string | undefined; } function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost): EmitAndSemanticDiagnosticsBuilderProgram | undefined; + interface CleanResolutionsOfTsBuildInfoHost { + readFile(fileName: string): string | undefined; + writeFile: WriteFileCallback; + } + function cleanResolutionsOfTsBuildInfo(compilerOptions: CompilerOptions, host: CleanResolutionsOfTsBuildInfoHost): EmitResult; function createIncrementalCompilerHost(options: CompilerOptions, system?: System): CompilerHost; interface IncrementalProgramOptions { rootNames: readonly string[]; @@ -5257,8 +5262,10 @@ declare namespace ts { interface SolutionBuilder { build(project?: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers): ExitStatus; clean(project?: string): ExitStatus; + cleanResolutions(project?: string): ExitStatus; buildReferences(project: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers): ExitStatus; cleanReferences(project?: string): ExitStatus; + cleanResolutionsOfReferences(project?: string): ExitStatus; getNextInvalidatedProject(cancellationToken?: CancellationToken): InvalidatedProject | undefined; } /** diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 77d2751e2b6e6..859999f2f50d8 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -5091,6 +5091,11 @@ declare namespace ts { readFile(fileName: string): string | undefined; } function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost): EmitAndSemanticDiagnosticsBuilderProgram | undefined; + interface CleanResolutionsOfTsBuildInfoHost { + readFile(fileName: string): string | undefined; + writeFile: WriteFileCallback; + } + function cleanResolutionsOfTsBuildInfo(compilerOptions: CompilerOptions, host: CleanResolutionsOfTsBuildInfoHost): EmitResult; function createIncrementalCompilerHost(options: CompilerOptions, system?: System): CompilerHost; interface IncrementalProgramOptions { rootNames: readonly string[]; @@ -5257,8 +5262,10 @@ declare namespace ts { interface SolutionBuilder { build(project?: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers): ExitStatus; clean(project?: string): ExitStatus; + cleanResolutions(project?: string): ExitStatus; buildReferences(project: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers): ExitStatus; cleanReferences(project?: string): ExitStatus; + cleanResolutionsOfReferences(project?: string): ExitStatus; getNextInvalidatedProject(cancellationToken?: CancellationToken): InvalidatedProject | undefined; } /** From 6ee1739bdb956c329a3fdd936e830c9a3b6b0691 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 12 Oct 2020 16:37:17 -0700 Subject: [PATCH 15/48] Tests --- src/harness/fakesHosts.ts | 11 + src/testRunner/tsconfig.json | 4 + .../unittests/tsbuild/persistResolutions.ts | 64 + src/testRunner/unittests/tsbuild/sample.ts | 29 + .../tsbuildWatch/persistResolutions.ts | 364 ++++++ .../unittests/tsc/persistResolutions.ts | 6 + src/testRunner/unittests/tscWatch/helpers.ts | 19 +- .../unittests/tscWatch/persistResolutions.ts | 364 ++++++ ...nd-uses-it-for-new-program-with-outFile.js | 541 ++++++++ ...-resolution-and-uses-it-for-new-program.js | 738 +++++++++++ .../initial-build/persistResolutions.js | 1097 +++++++++++++++++ ...er-resolutions-are-cleaned-with-outFile.js | 406 ++++++ ...can-build-after-resolutions-are-cleaned.js | 589 +++++++++ ...-saved-in-tsbuildinfo-file-with-outFile.js | 406 ++++++ ...ons-have-been-saved-in-tsbuildinfo-file.js | 589 +++++++++ ...nd-uses-it-for-new-program-with-outFile.js | 406 ++++++ ...-resolution-and-uses-it-for-new-program.js | 666 ++++++++++ ...nd-uses-it-for-new-program-with-outFile.js | 845 +++++++++++++ ...-resolution-and-uses-it-for-new-program.js | 739 +++++++++++ ...er-resolutions-are-cleaned-with-outFile.js | 710 +++++++++++ ...can-build-after-resolutions-are-cleaned.js | 599 +++++++++ ...-saved-in-tsbuildinfo-file-with-outFile.js | 710 +++++++++++ ...ons-have-been-saved-in-tsbuildinfo-file.js | 599 +++++++++ ...nd-uses-it-for-new-program-with-outFile.js | 707 +++++++++++ ...-resolution-and-uses-it-for-new-program.js | 674 ++++++++++ 25 files changed, 11870 insertions(+), 12 deletions(-) create mode 100644 src/testRunner/unittests/tsbuild/persistResolutions.ts create mode 100644 src/testRunner/unittests/tsbuildWatch/persistResolutions.ts create mode 100644 src/testRunner/unittests/tsc/persistResolutions.ts create mode 100644 src/testRunner/unittests/tscWatch/persistResolutions.ts create mode 100644 tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js create mode 100644 tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js create mode 100644 tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js create mode 100644 tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js create mode 100644 tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js create mode 100644 tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js create mode 100644 tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js create mode 100644 tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js create mode 100644 tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js create mode 100644 tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js create mode 100644 tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js create mode 100644 tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js create mode 100644 tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js create mode 100644 tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js create mode 100644 tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js create mode 100644 tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js create mode 100644 tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js diff --git a/src/harness/fakesHosts.ts b/src/harness/fakesHosts.ts index 8d7db1d333cb3..60937c54eb9e7 100644 --- a/src/harness/fakesHosts.ts +++ b/src/harness/fakesHosts.ts @@ -523,6 +523,17 @@ ${indentText}${text}`; return sys; } + export function withTemporaryPatchingForBuildinfoReadWrite(sys: T, fn: (sys: T) => void) { + const originalReadFile = sys.readFile; + const originalWrite = sys.write; + const originalWriteFile = sys.writeFile; + fn(patchHostForBuildInfoReadWrite(sys)); + sys.readFile = originalReadFile; + sys.write = originalWrite; + sys.writeFile = originalWriteFile; + return sys; + } + export class SolutionBuilderHost extends CompilerHost implements ts.SolutionBuilderHost { createProgram: ts.CreateProgram; diff --git a/src/testRunner/tsconfig.json b/src/testRunner/tsconfig.json index 4a6858ef8c5c8..fcf8d43936cce 100644 --- a/src/testRunner/tsconfig.json +++ b/src/testRunner/tsconfig.json @@ -130,6 +130,7 @@ "unittests/tsbuild/noEmitOnError.ts", "unittests/tsbuild/outFile.ts", "unittests/tsbuild/outputPaths.ts", + "unittests/tsbuild/persistResolutions.ts", "unittests/tsbuild/publicApi.ts", "unittests/tsbuild/referencesWithRootDirInParent.ts", "unittests/tsbuild/resolveJsonModule.ts", @@ -140,6 +141,7 @@ "unittests/tsbuildWatch/moduleResolution.ts", "unittests/tsbuildWatch/noEmit.ts", "unittests/tsbuildWatch/noEmitOnError.ts", + "unittests/tsbuildWatch/persistResolutions.ts", "unittests/tsbuildWatch/programUpdates.ts", "unittests/tsbuildWatch/reexport.ts", "unittests/tsbuildWatch/watchEnvironment.ts", @@ -147,6 +149,7 @@ "unittests/tsc/declarationEmit.ts", "unittests/tsc/incremental.ts", "unittests/tsc/listFilesOnly.ts", + "unittests/tsc/persistResolutions.ts", "unittests/tsc/projectReferences.ts", "unittests/tsc/runWithoutArgs.ts", "unittests/tscWatch/consoleClearing.ts", @@ -154,6 +157,7 @@ "unittests/tscWatch/emitAndErrorUpdates.ts", "unittests/tscWatch/forceConsistentCasingInFileNames.ts", "unittests/tscWatch/incremental.ts", + "unittests/tscWatch/persistResolutions.ts", "unittests/tscWatch/programUpdates.ts", "unittests/tscWatch/projectsWithReferences.ts", "unittests/tscWatch/resolutionCache.ts", diff --git a/src/testRunner/unittests/tsbuild/persistResolutions.ts b/src/testRunner/unittests/tsbuild/persistResolutions.ts new file mode 100644 index 0000000000000..1b7778031c3fd --- /dev/null +++ b/src/testRunner/unittests/tsbuild/persistResolutions.ts @@ -0,0 +1,64 @@ +namespace ts { + export function verifyTscPersistsResolutions(input: "--p" | "--b", outFile?: string) { + verifyTscSerializedIncrementalEdits({ + scenario: "persistResolutions", + subScenario: `saves resolution and uses it for new program${outFile ? " with outFile" : ""}`, + fs: () => loadProjectFromFiles({ + "/src/project/src/main.ts": Utils.dedent` + import { something } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + "/src/project/src/filePresent.ts": `export function something() { return 10; }`, + "/src/project/tsconfig.json": JSON.stringify({ + compilerOptions: { + module: "amd", + composite: true, + persistResolutions: true, + traceResolution: true, + outFile + }, + include: ["src/**/*.ts"] + }), + }), + commandLineArgs: [input, "src/project"], + incrementalScenarios: [ + noChangeRun, + { + subScenario: "Modify main file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), + }, + { + subScenario: "Add new module and update main file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => { + fs.writeFileSync(`/src/project/src/newFile.ts`, "export function foo() { return 20; }"); + prependText(fs, `/src/project/src/main.ts`, `import { foo } from "./newFile";`); + }, + }, + { + subScenario: "Write file that could not be resolved", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.writeFileSync(`/src/project/src/fileNotFound.ts`, "export function something2() { return 20; }"), + }, + { + subScenario: "Clean resolutions", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: noop, + commandLineArgs: [input, "src/project", "--cleanResolutions"] + }, + noChangeRun, + { + subScenario: "Modify main file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), + }, + ], + baselinePrograms: true, + }); + } + + describe("unittests:: tsbuild:: persistResolutions::", () => { + verifyTscPersistsResolutions("--b"); + verifyTscPersistsResolutions("--b", "outFile.js"); + }); +} \ No newline at end of file diff --git a/src/testRunner/unittests/tsbuild/sample.ts b/src/testRunner/unittests/tsbuild/sample.ts index d666370d156f6..f9801e8e690dc 100644 --- a/src/testRunner/unittests/tsbuild/sample.ts +++ b/src/testRunner/unittests/tsbuild/sample.ts @@ -510,6 +510,35 @@ class someClass2 { }`), modifyFs: fs => replaceText(fs, "/src/tests/tsconfig.json", `"esModuleInterop": false`, `"esModuleInterop": true`), }], }); + + verifyTscSerializedIncrementalEdits({ + scenario: "sample1", + subScenario: "persistResolutions", + baselinePrograms: true, + fs: () => projFs, + modifyFs: fs => fs.writeFileSync("/src/core/tsconfig.json", JSON.stringify({ + compilerOptions: { + composite: true, + skipDefaultLibCheck: true, + persistResolutions: true, + } + })), + commandLineArgs: ["--b", "/src/tests"], + incrementalScenarios: [ + ...coreChanges, + { + subScenario: "Clean resolutions", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: noop, + commandLineArgs: ["--b", "/src/tests", "--cleanResolutions"], + }, + { + subScenario: "Modify core", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => replaceText(fs, "/src/core/index.ts", "export class someClass {", "export class someClassNew {"), + } + ] + }); }); }); } diff --git a/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts b/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts new file mode 100644 index 0000000000000..1fbb7bb95b0da --- /dev/null +++ b/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts @@ -0,0 +1,364 @@ +namespace ts.tscWatch { + describe("unittests:: tsbuildWatch:: watchMode:: persistentResolutions", () => { + verifyTscWatch({ + scenario: "persistResolutions", + subScenario: "saves resolution and uses it for new program", + sys: () => createWatchedSystem([ + { + path: `${projectRoot}/src/main.ts`, + content: Utils.dedent` + import { something } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + }, + { + path: `${projectRoot}/src/filePresent.ts`, + content: `export function something() { return 10; }`, + }, + { + path: `${projectRoot}/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { + module: "amd", + composite: true, + persistResolutions: true, + traceResolution: true, + }, + include: ["src/**/*.ts"] + }), + }, + libFile + ], { currentDirectory: projectRoot }), + commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], + changes: [ + { + caption: "Modify main file", + change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new module and update main file", + change: sys => { + sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + } + ] + }); + verifyTscWatch({ + scenario: "persistResolutions", + subScenario: "can build after resolutions have been saved in tsbuildinfo file", + sys: () => { + const sys = createWatchedSystem([ + { + path: `${projectRoot}/src/main.ts`, + content: Utils.dedent` + import { something } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + }, + { + path: `${projectRoot}/src/filePresent.ts`, + content: `export function something() { return 10; }`, + }, + { + path: `${projectRoot}/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { + module: "amd", + composite: true, + persistResolutions: true, + traceResolution: true, + }, + include: ["src/**/*.ts"] + }), + }, + libFile + ], { currentDirectory: projectRoot }); + const exit = sys.exit; + sys.exit = noop; + fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => executeCommandLine(sys, noop, ["--b", "."])); + sys.exit = exit; + sys.clearOutput(); + return sys; + }, + commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], + changes: [ + { + caption: "Modify main file", + change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new module and update main file", + change: sys => { + sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + } + ] + }); + verifyTscWatch({ + scenario: "persistResolutions", + subScenario: "can build after resolutions are cleaned", + sys: () => { + const sys = createWatchedSystem([ + { + path: `${projectRoot}/src/main.ts`, + content: Utils.dedent` + import { something } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + }, + { + path: `${projectRoot}/src/filePresent.ts`, + content: `export function something() { return 10; }`, + }, + { + path: `${projectRoot}/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { + module: "amd", + composite: true, + persistResolutions: true, + traceResolution: true, + }, + include: ["src/**/*.ts"] + }), + }, + libFile + ], { currentDirectory: projectRoot }); + const exit = sys.exit; + sys.exit = noop; + fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => { + executeCommandLine(sys, noop, ["--b", "."]); + executeCommandLine(sys, noop, ["--b", ".", "--cleanResolutions"]); + }); + sys.exit = exit; + sys.clearOutput(); + return sys; + }, + commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], + changes: [ + { + caption: "Modify main file", + change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new module and update main file", + change: sys => { + sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + } + ] + }); + + verifyTscWatch({ + scenario: "persistResolutions", + subScenario: "saves resolution and uses it for new program with outFile", + sys: () => createWatchedSystem([ + { + path: `${projectRoot}/src/main.ts`, + content: Utils.dedent` + import { something } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + }, + { + path: `${projectRoot}/src/filePresent.ts`, + content: `export function something() { return 10; }`, + }, + { + path: `${projectRoot}/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { + module: "amd", + composite: true, + persistResolutions: true, + traceResolution: true, + outFile: "outFile.js" + }, + include: ["src/**/*.ts"] + }), + }, + libFile + ], { currentDirectory: projectRoot }), + commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], + changes: [ + { + caption: "Modify main file", + change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new module and update main file", + change: sys => { + sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + } + ] + }); + verifyTscWatch({ + scenario: "persistResolutions", + subScenario: "can build after resolutions have been saved in tsbuildinfo file with outFile", + sys: () => { + const sys = createWatchedSystem([ + { + path: `${projectRoot}/src/main.ts`, + content: Utils.dedent` + import { something } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + }, + { + path: `${projectRoot}/src/filePresent.ts`, + content: `export function something() { return 10; }`, + }, + { + path: `${projectRoot}/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { + module: "amd", + composite: true, + persistResolutions: true, + traceResolution: true, + outFile: "outFile.js" + }, + include: ["src/**/*.ts"] + }), + }, + libFile + ], { currentDirectory: projectRoot }); + const exit = sys.exit; + sys.exit = noop; + fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => executeCommandLine(sys, noop, ["--b", "."])); + sys.exit = exit; + sys.clearOutput(); + return sys; + }, + commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], + changes: [ + { + caption: "Modify main file", + change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new module and update main file", + change: sys => { + sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + } + ] + }); + verifyTscWatch({ + scenario: "persistResolutions", + subScenario: "can build after resolutions are cleaned with outFile", + sys: () => { + const sys = createWatchedSystem([ + { + path: `${projectRoot}/src/main.ts`, + content: Utils.dedent` + import { something } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + }, + { + path: `${projectRoot}/src/filePresent.ts`, + content: `export function something() { return 10; }`, + }, + { + path: `${projectRoot}/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { + module: "amd", + composite: true, + persistResolutions: true, + traceResolution: true, + outFile: "outFile.js" + }, + include: ["src/**/*.ts"] + }), + }, + libFile + ], { currentDirectory: projectRoot }); + const exit = sys.exit; + sys.exit = noop; + fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => { + executeCommandLine(sys, noop, ["--b", "."]); + executeCommandLine(sys, noop, ["--b", ".", "--cleanResolutions"]); + }); + sys.exit = exit; + sys.clearOutput(); + return sys; + }, + commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], + changes: [ + { + caption: "Modify main file", + change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new module and update main file", + change: sys => { + sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + } + ] + }); + }); +} diff --git a/src/testRunner/unittests/tsc/persistResolutions.ts b/src/testRunner/unittests/tsc/persistResolutions.ts new file mode 100644 index 0000000000000..f5e388be0157b --- /dev/null +++ b/src/testRunner/unittests/tsc/persistResolutions.ts @@ -0,0 +1,6 @@ +namespace ts { + describe("unittests:: tsc:: persistResolutions::", () => { + verifyTscPersistsResolutions("--p"); + verifyTscPersistsResolutions("--p", "outFile.js"); + }); +} \ No newline at end of file diff --git a/src/testRunner/unittests/tscWatch/helpers.ts b/src/testRunner/unittests/tscWatch/helpers.ts index 7c58e6c8182ad..c63ea4c9f5902 100644 --- a/src/testRunner/unittests/tscWatch/helpers.ts +++ b/src/testRunner/unittests/tscWatch/helpers.ts @@ -533,17 +533,12 @@ namespace ts.tscWatch { } export function createSystemWithSolutionBuild(solutionRoots: readonly string[], files: readonly TestFSWithWatch.FileOrFolderOrSymLink[], params?: TestFSWithWatch.TestServerHostCreationParameters) { - const sys = createWatchedSystem(files, params); - const originalReadFile = sys.readFile; - const originalWrite = sys.write; - const originalWriteFile = sys.writeFile; - const solutionBuilder = createSolutionBuilder(TestFSWithWatch.changeToHostTrackingWrittenFiles( - fakes.patchHostForBuildInfoReadWrite(sys) - ), solutionRoots, {}); - solutionBuilder.build(); - sys.readFile = originalReadFile; - sys.write = originalWrite; - sys.writeFile = originalWriteFile; - return sys; + return fakes.withTemporaryPatchingForBuildinfoReadWrite( + createWatchedSystem(files, params), + sys => { + const solutionBuilder = createSolutionBuilder(TestFSWithWatch.changeToHostTrackingWrittenFiles(sys), solutionRoots, {}); + solutionBuilder.build(); + } + ); } } diff --git a/src/testRunner/unittests/tscWatch/persistResolutions.ts b/src/testRunner/unittests/tscWatch/persistResolutions.ts new file mode 100644 index 0000000000000..1658caa8bb6c1 --- /dev/null +++ b/src/testRunner/unittests/tscWatch/persistResolutions.ts @@ -0,0 +1,364 @@ +namespace ts.tscWatch { + describe("unittests:: tsc-watch:: persistResolutions", () => { + verifyTscWatch({ + scenario: "persistResolutions", + subScenario: "saves resolution and uses it for new program", + sys: () => createWatchedSystem([ + { + path: `${projectRoot}/src/main.ts`, + content: Utils.dedent` + import { something } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + }, + { + path: `${projectRoot}/src/filePresent.ts`, + content: `export function something() { return 10; }`, + }, + { + path: `${projectRoot}/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { + module: "amd", + composite: true, + persistResolutions: true, + traceResolution: true, + }, + include: ["src/**/*.ts"] + }), + }, + libFile + ], { currentDirectory: projectRoot }), + commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], + changes: [ + { + caption: "Modify main file", + change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new module and update main file", + change: sys => { + sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + } + ] + }); + verifyTscWatch({ + scenario: "persistResolutions", + subScenario: "can build after resolutions have been saved in tsbuildinfo file", + sys: () => { + const sys = createWatchedSystem([ + { + path: `${projectRoot}/src/main.ts`, + content: Utils.dedent` + import { something } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + }, + { + path: `${projectRoot}/src/filePresent.ts`, + content: `export function something() { return 10; }`, + }, + { + path: `${projectRoot}/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { + module: "amd", + composite: true, + persistResolutions: true, + traceResolution: true, + }, + include: ["src/**/*.ts"] + }), + }, + libFile + ], { currentDirectory: projectRoot }); + const exit = sys.exit; + sys.exit = noop; + fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => executeCommandLine(sys, noop, ["--p", "."])); + sys.exit = exit; + sys.clearOutput(); + return sys; + }, + commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], + changes: [ + { + caption: "Modify main file", + change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new module and update main file", + change: sys => { + sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + } + ] + }); + verifyTscWatch({ + scenario: "persistResolutions", + subScenario: "can build after resolutions are cleaned", + sys: () => { + const sys = createWatchedSystem([ + { + path: `${projectRoot}/src/main.ts`, + content: Utils.dedent` + import { something } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + }, + { + path: `${projectRoot}/src/filePresent.ts`, + content: `export function something() { return 10; }`, + }, + { + path: `${projectRoot}/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { + module: "amd", + composite: true, + persistResolutions: true, + traceResolution: true, + }, + include: ["src/**/*.ts"] + }), + }, + libFile + ], { currentDirectory: projectRoot }); + const exit = sys.exit; + sys.exit = noop; + fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => { + executeCommandLine(sys, noop, ["--p", "."]); + executeCommandLine(sys, noop, ["--p", ".", "--cleanResolutions"]); + }); + sys.exit = exit; + sys.clearOutput(); + return sys; + }, + commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], + changes: [ + { + caption: "Modify main file", + change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new module and update main file", + change: sys => { + sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + } + ] + }); + + verifyTscWatch({ + scenario: "persistResolutions", + subScenario: "saves resolution and uses it for new program with outFile", + sys: () => createWatchedSystem([ + { + path: `${projectRoot}/src/main.ts`, + content: Utils.dedent` + import { something } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + }, + { + path: `${projectRoot}/src/filePresent.ts`, + content: `export function something() { return 10; }`, + }, + { + path: `${projectRoot}/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { + module: "amd", + composite: true, + persistResolutions: true, + traceResolution: true, + outFile: "outFile.js" + }, + include: ["src/**/*.ts"] + }), + }, + libFile + ], { currentDirectory: projectRoot }), + commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], + changes: [ + { + caption: "Modify main file", + change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new module and update main file", + change: sys => { + sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + } + ] + }); + verifyTscWatch({ + scenario: "persistResolutions", + subScenario: "can build after resolutions have been saved in tsbuildinfo file with outFile", + sys: () => { + const sys = createWatchedSystem([ + { + path: `${projectRoot}/src/main.ts`, + content: Utils.dedent` + import { something } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + }, + { + path: `${projectRoot}/src/filePresent.ts`, + content: `export function something() { return 10; }`, + }, + { + path: `${projectRoot}/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { + module: "amd", + composite: true, + persistResolutions: true, + traceResolution: true, + outFile: "outFile.js" + }, + include: ["src/**/*.ts"] + }), + }, + libFile + ], { currentDirectory: projectRoot }); + const exit = sys.exit; + sys.exit = noop; + fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => executeCommandLine(sys, noop, ["--p", "."])); + sys.exit = exit; + sys.clearOutput(); + return sys; + }, + commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], + changes: [ + { + caption: "Modify main file", + change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new module and update main file", + change: sys => { + sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + } + ] + }); + verifyTscWatch({ + scenario: "persistResolutions", + subScenario: "can build after resolutions are cleaned with outFile", + sys: () => { + const sys = createWatchedSystem([ + { + path: `${projectRoot}/src/main.ts`, + content: Utils.dedent` + import { something } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + }, + { + path: `${projectRoot}/src/filePresent.ts`, + content: `export function something() { return 10; }`, + }, + { + path: `${projectRoot}/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { + module: "amd", + composite: true, + persistResolutions: true, + traceResolution: true, + outFile: "outFile.js" + }, + include: ["src/**/*.ts"] + }), + }, + libFile + ], { currentDirectory: projectRoot }); + const exit = sys.exit; + sys.exit = noop; + fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => { + executeCommandLine(sys, noop, ["--p", "."]); + executeCommandLine(sys, noop, ["--p", ".", "--cleanResolutions"]); + }); + sys.exit = exit; + sys.clearOutput(); + return sys; + }, + commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], + changes: [ + { + caption: "Modify main file", + change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new module and update main file", + change: sys => { + sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + } + ] + }); + }); +} \ No newline at end of file diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js new file mode 100644 index 0000000000000..2959a2fe96892 --- /dev/null +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -0,0 +1,541 @@ +Input:: +//// [/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/src/project/src/filePresent.ts] +export function something() { return 10; } + +//// [/src/project/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/src/project/tsconfig.json] +{"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} + + + +Output:: +/lib/tsc --b src/project +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + + + +Change:: no-change-run +Input:: + + +Output:: +/lib/tsc --b src/project +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + + + +Change:: Modify main file +Input:: +//// [/src/project/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + + +Output:: +/lib/tsc --b src/project +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + + + +Change:: Add new module and update main file +Input:: +//// [/src/project/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + +//// [/src/project/src/newFile.ts] +export function foo() { return 20; } + + + +Output:: +/lib/tsc --b src/project +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + + + +Change:: Write file that could not be resolved +Input:: +//// [/src/project/src/fileNotFound.ts] +export function something2() { return 20; } + + + +Output:: +/lib/tsc --b src/project +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/fileNotFound.ts +/src/project/src/filePresent.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/src/project/outFile.js] +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":914,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":266,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-914) +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-266) +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 914, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 266, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 274 +} + + + +Change:: Clean resolutions +Input:: + + +Output:: +/lib/tsc --b src/project --cleanResolutions +exitCode:: ExitStatus.Success + + + + +Change:: no-change-run +Input:: + + +Output:: +/lib/tsc --b src/project +exitCode:: ExitStatus.Success + + + + +Change:: Modify main file +Input:: +//// [/src/project/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something();something(); + + + +Output:: +/lib/tsc --b src/project +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/fileNotFound.ts +/src/project/src/filePresent.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] file written with same contents +//// [/src/project/outFile.js] +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + + +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":946,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":266,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-946) +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-266) +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 946, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 266, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 274 +} + diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js new file mode 100644 index 0000000000000..d732cf546415f --- /dev/null +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -0,0 +1,738 @@ +Input:: +//// [/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/src/project/src/filePresent.ts] +export function something() { return 10; } + +//// [/src/project/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/src/project/tsconfig.json] +{"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} + + + +Output:: +/lib/tsc --b src/project +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/main.ts + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[2,1],[3,1]]},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ] + ] + }, + "version": "FakeTSVersion", + "size": 1194 +} + + + +Change:: no-change-run +Input:: + + +Output:: +/lib/tsc --b src/project +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: + + + + +Change:: Modify main file +Input:: +//// [/src/project/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + + +Output:: +/lib/tsc --b src/project +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/main.ts + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[2,1],[3,1]]},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ] + ] + }, + "version": "FakeTSVersion", + "size": 1254 +} + + + +Change:: Add new module and update main file +Input:: +//// [/src/project/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + +//// [/src/project/src/newFile.ts] +export function foo() { return 20; } + + + +Output:: +/lib/tsc --b src/project +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/newFile.ts +/src/project/src/main.ts + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3],"affectedFilesPendingEmit":[[2,1],[4,1],[3,1]]},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-3405156953-export declare function foo(): number;\r\n" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 102, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ] + ] + }, + "version": "FakeTSVersion", + "size": 1448 +} + + + +Change:: Write file that could not be resolved +Input:: +//// [/src/project/src/fileNotFound.ts] +export function something2() { return 20; } + + + +Output:: +/lib/tsc --b src/project +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/fileNotFound.ts +/src/project/src/filePresent.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/fileNotFound.ts +/src/project/src/main.ts + + +//// [/src/project/src/fileNotFound.d.ts] +export declare function something2(): number; + + +//// [/src/project/src/fileNotFound.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); + + +//// [/src/project/src/filePresent.d.ts] +export declare function something(): number; + + +//// [/src/project/src/filePresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); + + +//// [/src/project/src/main.d.ts] +export {}; + + +//// [/src/project/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/src/project/src/newFile.d.ts] +export declare function foo(): number; + + +//// [/src/project/src/newFile.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,5,4]},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-13705775197-export declare function something2(): number;\r\n" + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-3405156953-export declare function foo(): number;\r\n" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/main.ts", + "./src/newfile.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1342 +} + + + +Change:: Clean resolutions +Input:: + + +Output:: +/lib/tsc --b src/project --cleanResolutions +exitCode:: ExitStatus.Success + + +//// [/src/project/tsconfig.tsbuildinfo] file written with same contents + + +Change:: no-change-run +Input:: + + +Output:: +/lib/tsc --b src/project +exitCode:: ExitStatus.Success + + + + +Change:: Modify main file +Input:: +//// [/src/project/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something();something(); + + + +Output:: +/lib/tsc --b src/project +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/fileNotFound.ts +/src/project/src/filePresent.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/main.ts + + +//// [/src/project/src/main.d.ts] file written with same contents +//// [/src/project/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"992573078-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,5,4]},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-13705775197-export declare function something2(): number;\r\n" + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-3405156953-export declare function foo(): number;\r\n" + }, + "./src/main.ts": { + "version": "992573078-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/main.ts", + "./src/newfile.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1352 +} + diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js new file mode 100644 index 0000000000000..0d54bcf3a9e2a --- /dev/null +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js @@ -0,0 +1,1097 @@ +Input:: +//// [/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/src/core/anotherModule.ts] +export const World = "hello"; + + +//// [/src/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + + +//// [/src/core/some_decl.d.ts] +declare const dts: any; + + +//// [/src/core/tsconfig.json] +{"compilerOptions":{"composite":true,"skipDefaultLibCheck":true,"persistResolutions":true}} + +//// [/src/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/src/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { "path": "../core" } + ] +} + + +//// [/src/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/src/tests/tsconfig.json] +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" } + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } +} + +//// [/src/ui/index.ts] + + +//// [/src/ui/tsconfig.json] + + + + +Output:: +/lib/tsc --b /src/tests +exitCode:: ExitStatus.Success +Program root files: ["/src/core/anotherModule.ts","/src/core/index.ts","/src/core/some_decl.d.ts"] +Program options: {"composite":true,"skipDefaultLibCheck":true,"persistResolutions":true,"configFilePath":"/src/core/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/core/anotherModule.ts +/src/core/index.ts +/src/core/some_decl.d.ts + +Semantic diagnostics in builder refreshed for:: +/lib/lib.d.ts +/src/core/anotherModule.ts +/src/core/index.ts +/src/core/some_decl.d.ts + +Program root files: ["/src/logic/index.ts"] +Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"configFilePath":"/src/logic/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/core/index.d.ts +/src/core/anotherModule.d.ts +/src/logic/index.ts + +Semantic diagnostics in builder refreshed for:: +/lib/lib.d.ts +/src/core/index.d.ts +/src/core/anotherModule.d.ts +/src/logic/index.ts + +Program root files: ["/src/tests/index.ts"] +Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"configFilePath":"/src/tests/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/core/index.d.ts +/src/core/anotherModule.d.ts +/src/logic/index.d.ts +/src/tests/index.ts + +Semantic diagnostics in builder refreshed for:: +/lib/lib.d.ts +/src/core/index.d.ts +/src/core/anotherModule.d.ts +/src/logic/index.d.ts +/src/tests/index.ts + + +//// [/src/core/anotherModule.d.ts] +export declare const World = "hello"; + + +//// [/src/core/anotherModule.js] +"use strict"; +exports.__esModule = true; +exports.World = void 0; +exports.World = "hello"; + + +//// [/src/core/index.d.ts] +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; + + +//// [/src/core/index.js] +"use strict"; +exports.__esModule = true; +exports.multiply = exports.leftPad = exports.someString = void 0; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +exports.leftPad = leftPad; +function multiply(a, b) { return a * b; } +exports.multiply = multiply; + + +//// [/src/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n","-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} + +//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./anothermodule.ts": { + "version": "-2676574883-export const World = \"hello\";\r\n", + "signature": "-2676574883-export const World = \"hello\";\r\n" + }, + "./index.ts": { + "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "signature": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" + }, + "./some_decl.d.ts": { + "version": "-9253692965-declare const dts: any;\r\n", + "signature": "-9253692965-declare const dts: any;\r\n", + "affectsGlobalScope": true + } + }, + "options": { + "composite": true, + "skipDefaultLibCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1093 +} + +//// [/src/logic/index.d.ts] +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + + +//// [/src/logic/index.js] +"use strict"; +exports.__esModule = true; +exports.m = exports.getSecondsInDay = void 0; +var c = require("../core/index"); +function getSecondsInDay() { + return c.multiply(10, 15); +} +exports.getSecondsInDay = getSecondsInDay; +var mod = require("../core/anotherModule"); +exports.m = mod; +//# sourceMappingURL=index.js.map + +//// [/src/logic/index.js.map] +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} + +//// [/src/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n","-8396256275-export declare const World = \"hello\";\r\n","-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4]},"version":"FakeTSVersion"} + +//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "../core/index.d.ts", + "../core/anothermodule.d.ts", + "./index.ts" + ], + "fileNamesList": [ + [ + "../core/index.d.ts", + "../core/anothermodule.d.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../core/index.d.ts": { + "version": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n", + "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" + }, + "../core/anothermodule.d.ts": { + "version": "-8396256275-export declare const World = \"hello\";\r\n", + "signature": "-8396256275-export declare const World = \"hello\";\r\n" + }, + "./index.ts": { + "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "signature": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anothermodule.d.ts" + ] + }, + "exportedModulesMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anothermodule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "./index.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1291 +} + +//// [/src/tests/index.d.ts] +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + + +//// [/src/tests/index.js] +"use strict"; +exports.__esModule = true; +exports.m = void 0; +var c = require("../core/index"); +var logic = require("../logic/index"); +c.leftPad("", 10); +logic.getSecondsInDay(); +var mod = require("../core/anotherModule"); +exports.m = mod; + + +//// [/src/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n","-8396256275-export declare const World = \"hello\";\r\n","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5]},"version":"FakeTSVersion"} + +//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "../core/index.d.ts", + "../core/anothermodule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileNamesList": [ + [ + "../core/anothermodule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anothermodule.d.ts", + "../logic/index.d.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../core/index.d.ts": { + "version": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n", + "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" + }, + "../core/anothermodule.d.ts": { + "version": "-8396256275-export declare const World = \"hello\";\r\n", + "signature": "-8396256275-export declare const World = \"hello\";\r\n" + }, + "../logic/index.d.ts": { + "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", + "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + }, + "./index.ts": { + "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "signature": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anothermodule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anothermodule.d.ts", + "../logic/index.d.ts" + ] + }, + "exportedModulesMap": { + "../logic/index.d.ts": [ + "../core/anothermodule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anothermodule.d.ts", + "../logic/index.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", + "./index.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1499 +} + + + +Change:: incremental-declaration-changes +Input:: +//// [/src/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +export class someClass { } + + + +Output:: +/lib/tsc --b /src/tests +exitCode:: ExitStatus.Success +Program root files: ["/src/core/anotherModule.ts","/src/core/index.ts","/src/core/some_decl.d.ts"] +Program options: {"composite":true,"skipDefaultLibCheck":true,"persistResolutions":true,"configFilePath":"/src/core/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/core/anotherModule.ts +/src/core/index.ts +/src/core/some_decl.d.ts + +Semantic diagnostics in builder refreshed for:: +/src/core/index.ts + +Program root files: ["/src/logic/index.ts"] +Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"configFilePath":"/src/logic/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/core/index.d.ts +/src/core/anotherModule.d.ts +/src/logic/index.ts + +Semantic diagnostics in builder refreshed for:: +/src/core/index.d.ts +/src/logic/index.ts + +Program root files: ["/src/tests/index.ts"] +Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"configFilePath":"/src/tests/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/core/index.d.ts +/src/core/anotherModule.d.ts +/src/logic/index.d.ts +/src/tests/index.ts + +Semantic diagnostics in builder refreshed for:: +/src/core/index.d.ts +/src/tests/index.ts + + +//// [/src/core/index.d.ts] +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +export declare class someClass { +} + + +//// [/src/core/index.js] +"use strict"; +exports.__esModule = true; +exports.someClass = exports.multiply = exports.leftPad = exports.someString = void 0; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +exports.leftPad = leftPad; +function multiply(a, b) { return a * b; } +exports.multiply = multiply; +var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; +}()); +exports.someClass = someClass; + + +//// [/src/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} + +//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./anothermodule.ts": { + "version": "-2676574883-export const World = \"hello\";\r\n", + "signature": "-2676574883-export const World = \"hello\";\r\n" + }, + "./index.ts": { + "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "signature": "-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n" + }, + "./some_decl.d.ts": { + "version": "-9253692965-declare const dts: any;\r\n", + "signature": "-9253692965-declare const dts: any;\r\n", + "affectsGlobalScope": true + } + }, + "options": { + "composite": true, + "skipDefaultLibCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1379 +} + +//// [/src/logic/index.d.ts] file written with same contents +//// [/src/logic/index.js] file written with same contents +//// [/src/logic/index.js.map] file written with same contents +//// [/src/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n","-8396256275-export declare const World = \"hello\";\r\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4]},"version":"FakeTSVersion"} + +//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "../core/index.d.ts", + "../core/anothermodule.d.ts", + "./index.ts" + ], + "fileNamesList": [ + [ + "../core/index.d.ts", + "../core/anothermodule.d.ts" + ], + [ + "../core/anothermodule.d.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../core/index.d.ts": { + "version": "-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n", + "signature": "-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n" + }, + "../core/anothermodule.d.ts": { + "version": "-8396256275-export declare const World = \"hello\";\r\n", + "signature": "-8396256275-export declare const World = \"hello\";\r\n" + }, + "./index.ts": { + "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anothermodule.d.ts" + ] + }, + "exportedModulesMap": { + "./index.ts": [ + "../core/anothermodule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "./index.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1519 +} + +//// [/src/tests/index.d.ts] file written with same contents +//// [/src/tests/index.js] file written with same contents +//// [/src/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n","-8396256275-export declare const World = \"hello\";\r\n","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5]},"version":"FakeTSVersion"} + +//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "../core/index.d.ts", + "../core/anothermodule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileNamesList": [ + [ + "../core/anothermodule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anothermodule.d.ts", + "../logic/index.d.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../core/index.d.ts": { + "version": "-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n", + "signature": "-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n" + }, + "../core/anothermodule.d.ts": { + "version": "-8396256275-export declare const World = \"hello\";\r\n", + "signature": "-8396256275-export declare const World = \"hello\";\r\n" + }, + "../logic/index.d.ts": { + "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", + "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + }, + "./index.ts": { + "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anothermodule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anothermodule.d.ts", + "../logic/index.d.ts" + ] + }, + "exportedModulesMap": { + "../logic/index.d.ts": [ + "../core/anothermodule.d.ts" + ], + "./index.ts": [ + "../core/anothermodule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", + "./index.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1666 +} + + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +export class someClass { } +class someClass2 { } + + + +Output:: +/lib/tsc --b /src/tests +exitCode:: ExitStatus.Success +Program root files: ["/src/core/anotherModule.ts","/src/core/index.ts","/src/core/some_decl.d.ts"] +Program options: {"composite":true,"skipDefaultLibCheck":true,"persistResolutions":true,"configFilePath":"/src/core/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/core/anotherModule.ts +/src/core/index.ts +/src/core/some_decl.d.ts + +Semantic diagnostics in builder refreshed for:: +/src/core/index.ts + + +//// [/src/core/index.d.ts] file written with same contents +//// [/src/core/index.js] +"use strict"; +exports.__esModule = true; +exports.someClass = exports.multiply = exports.leftPad = exports.someString = void 0; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +exports.leftPad = leftPad; +function multiply(a, b) { return a * b; } +exports.multiply = multiply; +var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; +}()); +exports.someClass = someClass; +var someClass2 = /** @class */ (function () { + function someClass2() { + } + return someClass2; +}()); + + +//// [/src/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} + +//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./anothermodule.ts": { + "version": "-2676574883-export const World = \"hello\";\r\n", + "signature": "-2676574883-export const World = \"hello\";\r\n" + }, + "./index.ts": { + "version": "-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }", + "signature": "-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n" + }, + "./some_decl.d.ts": { + "version": "-9253692965-declare const dts: any;\r\n", + "signature": "-9253692965-declare const dts: any;\r\n", + "affectsGlobalScope": true + } + }, + "options": { + "composite": true, + "skipDefaultLibCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1401 +} + + + +Change:: Clean resolutions +Input:: + + +Output:: +/lib/tsc --b /src/tests --cleanResolutions +exitCode:: ExitStatus.Success + + +//// [/src/core/tsconfig.tsbuildinfo] file written with same contents +//// [/src/logic/tsconfig.tsbuildinfo] file written with same contents +//// [/src/tests/tsconfig.tsbuildinfo] file written with same contents + + +Change:: Modify core +Input:: +//// [/src/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +export class someClassNew { } +class someClass2 { } + + + +Output:: +/lib/tsc --b /src/tests +exitCode:: ExitStatus.Success +Program root files: ["/src/core/anotherModule.ts","/src/core/index.ts","/src/core/some_decl.d.ts"] +Program options: {"composite":true,"skipDefaultLibCheck":true,"persistResolutions":true,"configFilePath":"/src/core/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/core/anotherModule.ts +/src/core/index.ts +/src/core/some_decl.d.ts + +Semantic diagnostics in builder refreshed for:: +/src/core/index.ts + +Program root files: ["/src/logic/index.ts"] +Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"configFilePath":"/src/logic/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/core/index.d.ts +/src/core/anotherModule.d.ts +/src/logic/index.ts + +Semantic diagnostics in builder refreshed for:: +/src/core/index.d.ts +/src/logic/index.ts + +Program root files: ["/src/tests/index.ts"] +Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"configFilePath":"/src/tests/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/core/index.d.ts +/src/core/anotherModule.d.ts +/src/logic/index.d.ts +/src/tests/index.ts + +Semantic diagnostics in builder refreshed for:: +/src/core/index.d.ts +/src/tests/index.ts + + +//// [/src/core/index.d.ts] +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +export declare class someClassNew { +} + + +//// [/src/core/index.js] +"use strict"; +exports.__esModule = true; +exports.someClassNew = exports.multiply = exports.leftPad = exports.someString = void 0; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +exports.leftPad = leftPad; +function multiply(a, b) { return a * b; } +exports.multiply = multiply; +var someClassNew = /** @class */ (function () { + function someClassNew() { + } + return someClassNew; +}()); +exports.someClassNew = someClassNew; +var someClass2 = /** @class */ (function () { + function someClass2() { + } + return someClass2; +}()); + + +//// [/src/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-22243974128-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClassNew { }\nclass someClass2 { }","signature":"-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} + +//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./anothermodule.ts": { + "version": "-2676574883-export const World = \"hello\";\r\n", + "signature": "-2676574883-export const World = \"hello\";\r\n" + }, + "./index.ts": { + "version": "-22243974128-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClassNew { }\nclass someClass2 { }", + "signature": "-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n" + }, + "./some_decl.d.ts": { + "version": "-9253692965-declare const dts: any;\r\n", + "signature": "-9253692965-declare const dts: any;\r\n", + "affectsGlobalScope": true + } + }, + "options": { + "composite": true, + "skipDefaultLibCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1407 +} + +//// [/src/logic/index.d.ts] file written with same contents +//// [/src/logic/index.js] file written with same contents +//// [/src/logic/index.js.map] file written with same contents +//// [/src/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n","-8396256275-export declare const World = \"hello\";\r\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4]},"version":"FakeTSVersion"} + +//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "../core/index.d.ts", + "../core/anothermodule.d.ts", + "./index.ts" + ], + "fileNamesList": [ + [ + "../core/index.d.ts", + "../core/anothermodule.d.ts" + ], + [ + "../core/anothermodule.d.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../core/index.d.ts": { + "version": "-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n", + "signature": "-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n" + }, + "../core/anothermodule.d.ts": { + "version": "-8396256275-export declare const World = \"hello\";\r\n", + "signature": "-8396256275-export declare const World = \"hello\";\r\n" + }, + "./index.ts": { + "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "referencedMap": { + "./index.ts": [ + "../core/index.d.ts", + "../core/anothermodule.d.ts" + ] + }, + "exportedModulesMap": { + "./index.ts": [ + "../core/anothermodule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "./index.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1522 +} + +//// [/src/tests/index.d.ts] file written with same contents +//// [/src/tests/index.js] file written with same contents +//// [/src/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n","-8396256275-export declare const World = \"hello\";\r\n","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5]},"version":"FakeTSVersion"} + +//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "../core/index.d.ts", + "../core/anothermodule.d.ts", + "../logic/index.d.ts", + "./index.ts" + ], + "fileNamesList": [ + [ + "../core/anothermodule.d.ts" + ], + [ + "../core/index.d.ts", + "../core/anothermodule.d.ts", + "../logic/index.d.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../core/index.d.ts": { + "version": "-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n", + "signature": "-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n" + }, + "../core/anothermodule.d.ts": { + "version": "-8396256275-export declare const World = \"hello\";\r\n", + "signature": "-8396256275-export declare const World = \"hello\";\r\n" + }, + "../logic/index.d.ts": { + "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", + "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + }, + "./index.ts": { + "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": { + "../logic/index.d.ts": [ + "../core/anothermodule.d.ts" + ], + "./index.ts": [ + "../core/index.d.ts", + "../core/anothermodule.d.ts", + "../logic/index.d.ts" + ] + }, + "exportedModulesMap": { + "../logic/index.d.ts": [ + "../core/anothermodule.d.ts" + ], + "./index.ts": [ + "../core/anothermodule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", + "./index.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1669 +} + diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js new file mode 100644 index 0000000000000..7c4aaf59c75bc --- /dev/null +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -0,0 +1,406 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/filePresent.ts] +export function something() { return 10; } + +//// [/user/username/projects/myproject/tsconfig.json] +{"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} + +//// [/a/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + + +/a/lib/tsc.js --b . -w --extendedDiagnostics +Output:: +[12:00:25 AM] Starting compilation in watch mode... + +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:26 AM] Found 1 error. Watching for file changes. + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:29 AM] File change detected. Starting incremental compilation... + +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:30 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Add new module and update main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + +//// [/user/username/projects/myproject/src/newFile.ts] +export function foo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:35 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:36 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Write file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:00:39 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +[12:00:50 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 888, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 256, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 274 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-888) +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-256) +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js new file mode 100644 index 0000000000000..7c47f00f9461f --- /dev/null +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -0,0 +1,589 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/filePresent.ts] +export function something() { return 10; } + +//// [/user/username/projects/myproject/tsconfig.json] +{"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} + +//// [/a/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[2,1],[3,1]]},"version":"FakeTSVersion"} + + +/a/lib/tsc.js --b . -w --extendedDiagnostics +Output:: +[12:00:30 AM] Starting compilation in watch mode... + +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:31 AM] Found 1 error. Watching for file changes. + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:34 AM] File change detected. Starting incremental compilation... + +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:40 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[2,1],[3,1]]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ] + ] + }, + "version": "FakeTSVersion", + "size": 1180 +} + + +Change:: Add new module and update main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + +//// [/user/username/projects/myproject/src/newFile.ts] +export function foo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:45 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:52 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3],"affectedFilesPendingEmit":[[2,1],[4,1],[3,1]]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 102, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ] + ] + }, + "version": "FakeTSVersion", + "size": 1372 +} + + +Change:: Write file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:00:55 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/filePresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/filePresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/main.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/main.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:01:18 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,5,4]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/main.ts", + "./src/newfile.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1264 +} + +//// [/user/username/projects/myproject/src/filePresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); + + +//// [/user/username/projects/myproject/src/filePresent.d.ts] +export declare function something(): number; + + +//// [/user/username/projects/myproject/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/src/main.d.ts] +export {}; + + +//// [/user/username/projects/myproject/src/newFile.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); + + +//// [/user/username/projects/myproject/src/newFile.d.ts] +export declare function foo(): number; + + +//// [/user/username/projects/myproject/src/fileNotFound.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); + + +//// [/user/username/projects/myproject/src/fileNotFound.d.ts] +export declare function something2(): number; + + diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js new file mode 100644 index 0000000000000..7c4aaf59c75bc --- /dev/null +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -0,0 +1,406 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/filePresent.ts] +export function something() { return 10; } + +//// [/user/username/projects/myproject/tsconfig.json] +{"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} + +//// [/a/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + + +/a/lib/tsc.js --b . -w --extendedDiagnostics +Output:: +[12:00:25 AM] Starting compilation in watch mode... + +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:26 AM] Found 1 error. Watching for file changes. + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:29 AM] File change detected. Starting incremental compilation... + +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:30 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Add new module and update main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + +//// [/user/username/projects/myproject/src/newFile.ts] +export function foo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:35 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:36 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Write file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:00:39 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +[12:00:50 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 888, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 256, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 274 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-888) +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-256) +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js new file mode 100644 index 0000000000000..03961100d3939 --- /dev/null +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -0,0 +1,589 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/filePresent.ts] +export function something() { return 10; } + +//// [/user/username/projects/myproject/tsconfig.json] +{"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} + +//// [/a/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[2,1],[3,1]]},"version":"FakeTSVersion"} + + +/a/lib/tsc.js --b . -w --extendedDiagnostics +Output:: +[12:00:27 AM] Starting compilation in watch mode... + +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:28 AM] Found 1 error. Watching for file changes. + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:31 AM] File change detected. Starting incremental compilation... + +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:37 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[2,1],[3,1]]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ] + ] + }, + "version": "FakeTSVersion", + "size": 1180 +} + + +Change:: Add new module and update main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + +//// [/user/username/projects/myproject/src/newFile.ts] +export function foo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:42 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:49 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3],"affectedFilesPendingEmit":[[2,1],[4,1],[3,1]]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 102, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ] + ] + }, + "version": "FakeTSVersion", + "size": 1372 +} + + +Change:: Write file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:00:52 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/filePresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/filePresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/main.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/main.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:01:15 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,5,4]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/main.ts", + "./src/newfile.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1264 +} + +//// [/user/username/projects/myproject/src/filePresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); + + +//// [/user/username/projects/myproject/src/filePresent.d.ts] +export declare function something(): number; + + +//// [/user/username/projects/myproject/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/src/main.d.ts] +export {}; + + +//// [/user/username/projects/myproject/src/newFile.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); + + +//// [/user/username/projects/myproject/src/newFile.d.ts] +export declare function foo(): number; + + +//// [/user/username/projects/myproject/src/fileNotFound.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); + + +//// [/user/username/projects/myproject/src/fileNotFound.d.ts] +export declare function something2(): number; + + diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js new file mode 100644 index 0000000000000..7c4aaf59c75bc --- /dev/null +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -0,0 +1,406 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/filePresent.ts] +export function something() { return 10; } + +//// [/user/username/projects/myproject/tsconfig.json] +{"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} + +//// [/a/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + + +/a/lib/tsc.js --b . -w --extendedDiagnostics +Output:: +[12:00:25 AM] Starting compilation in watch mode... + +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:26 AM] Found 1 error. Watching for file changes. + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:29 AM] File change detected. Starting incremental compilation... + +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:30 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Add new module and update main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + +//// [/user/username/projects/myproject/src/newFile.ts] +export function foo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:35 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:36 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Write file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:00:39 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +[12:00:50 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 888, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 256, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 274 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-888) +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-256) +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js new file mode 100644 index 0000000000000..e7403742b88d1 --- /dev/null +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -0,0 +1,666 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/filePresent.ts] +export function something() { return 10; } + +//// [/user/username/projects/myproject/tsconfig.json] +{"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} + +//// [/a/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + + +/a/lib/tsc.js --b . -w --extendedDiagnostics +Output:: +[12:00:25 AM] Starting compilation in watch mode... + +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:30 AM] Found 1 error. Watching for file changes. + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[2,1],[3,1]]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ] + ] + }, + "version": "FakeTSVersion", + "size": 1122 +} + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:33 AM] File change detected. Starting incremental compilation... + +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:40 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[2,1],[3,1]]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ] + ] + }, + "version": "FakeTSVersion", + "size": 1180 +} + + +Change:: Add new module and update main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + +//// [/user/username/projects/myproject/src/newFile.ts] +export function foo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:45 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:52 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3],"affectedFilesPendingEmit":[[2,1],[4,1],[3,1]]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 102, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ] + ] + }, + "version": "FakeTSVersion", + "size": 1372 +} + + +Change:: Write file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:00:55 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/filePresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/filePresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/main.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/main.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:01:18 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,5,4]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/main.ts", + "./src/newfile.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1264 +} + +//// [/user/username/projects/myproject/src/filePresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); + + +//// [/user/username/projects/myproject/src/filePresent.d.ts] +export declare function something(): number; + + +//// [/user/username/projects/myproject/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/src/main.d.ts] +export {}; + + +//// [/user/username/projects/myproject/src/newFile.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); + + +//// [/user/username/projects/myproject/src/newFile.d.ts] +export declare function foo(): number; + + +//// [/user/username/projects/myproject/src/fileNotFound.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); + + +//// [/user/username/projects/myproject/src/fileNotFound.d.ts] +export declare function something2(): number; + + diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js new file mode 100644 index 0000000000000..dc79040a6cb17 --- /dev/null +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -0,0 +1,845 @@ +Input:: +//// [/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/src/project/src/filePresent.ts] +export function something() { return 10; } + +//// [/src/project/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/src/project/tsconfig.json] +{"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} + + + +Output:: +/lib/tsc --p src/project +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/main" { } + + +//// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":377,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":112,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-377) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-112) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/main" { } + +====================================================================== + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 377, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 112, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 231 +} + + + +Change:: no-change-run +Input:: + + +Output:: +/lib/tsc --p src/project +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] file written with same contents +//// [/src/project/outFile.js] file written with same contents +//// [/src/project/outFile.tsbuildinfo] file written with same contents +//// [/src/project/outFile.tsbuildinfo.baseline.txt] file written with same contents +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents + + +Change:: Modify main file +Input:: +//// [/src/project/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + + +Output:: +/lib/tsc --p src/project +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] file written with same contents +//// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":443,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":112,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-443) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-112) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/main" { } + +====================================================================== + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 443, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 112, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 231 +} + + + +Change:: Add new module and update main file +Input:: +//// [/src/project/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + +//// [/src/project/src/newFile.ts] +export function foo() { return 20; } + + + +Output:: +/lib/tsc --p src/project +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":662,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":183,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-662) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-183) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 662, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 183, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 250 +} + + + +Change:: Write file that could not be resolved +Input:: +//// [/src/project/src/fileNotFound.ts] +export function something2() { return 20; } + + + +Output:: +/lib/tsc --p src/project +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/fileNotFound.ts +/src/project/src/filePresent.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/src/project/outFile.js] +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":914,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":266,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-914) +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-266) +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 914, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 266, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 274 +} + + + +Change:: Clean resolutions +Input:: + + +Output:: +/lib/tsc --p src/project --cleanResolutions +exitCode:: ExitStatus.Success + + + + +Change:: no-change-run +Input:: + + +Output:: +/lib/tsc --p src/project +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/fileNotFound.ts +/src/project/src/filePresent.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] file written with same contents +//// [/src/project/outFile.js] file written with same contents +//// [/src/project/outFile.tsbuildinfo] file written with same contents +//// [/src/project/outFile.tsbuildinfo.baseline.txt] file written with same contents +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents + + +Change:: Modify main file +Input:: +//// [/src/project/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something();something(); + + + +Output:: +/lib/tsc --p src/project +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/fileNotFound.ts +/src/project/src/filePresent.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] file written with same contents +//// [/src/project/outFile.js] +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + + +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":946,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":266,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-946) +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-266) +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 946, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 266, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 274 +} + diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js new file mode 100644 index 0000000000000..7888fc8c588d0 --- /dev/null +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -0,0 +1,739 @@ +Input:: +//// [/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/src/project/src/filePresent.ts] +export function something() { return 10; } + +//// [/src/project/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/src/project/tsconfig.json] +{"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} + + + +Output:: +/lib/tsc --p src/project +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/main.ts + + +//// [/src/project/src/filePresent.d.ts] +export declare function something(): number; + + +//// [/src/project/src/filePresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); + + +//// [/src/project/src/main.d.ts] +export {}; + + +//// [/src/project/src/main.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ] + ] + }, + "version": "FakeTSVersion", + "size": 1153 +} + + + +Change:: no-change-run +Input:: + + +Output:: +/lib/tsc --p src/project +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: + + + + +Change:: Modify main file +Input:: +//// [/src/project/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + + +Output:: +/lib/tsc --p src/project +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/main.ts + + +//// [/src/project/src/main.d.ts] file written with same contents +//// [/src/project/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ] + ] + }, + "version": "FakeTSVersion", + "size": 1213 +} + + + +Change:: Add new module and update main file +Input:: +//// [/src/project/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + +//// [/src/project/src/newFile.ts] +export function foo() { return 20; } + + + +Output:: +/lib/tsc --p src/project +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/newFile.ts +/src/project/src/main.ts + + +//// [/src/project/src/main.d.ts] file written with same contents +//// [/src/project/src/main.js] file written with same contents +//// [/src/project/src/newFile.d.ts] +export declare function foo(): number; + + +//// [/src/project/src/newFile.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3]},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-3405156953-export declare function foo(): number;\r\n" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 102, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1401 +} + + + +Change:: Write file that could not be resolved +Input:: +//// [/src/project/src/fileNotFound.ts] +export function something2() { return 20; } + + + +Output:: +/lib/tsc --p src/project +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/fileNotFound.ts +/src/project/src/filePresent.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/fileNotFound.ts +/src/project/src/main.ts + + +//// [/src/project/src/fileNotFound.d.ts] +export declare function something2(): number; + + +//// [/src/project/src/fileNotFound.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); + + +//// [/src/project/src/main.d.ts] file written with same contents +//// [/src/project/src/main.js] file written with same contents +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,5,4]},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-13705775197-export declare function something2(): number;\r\n" + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-3405156953-export declare function foo(): number;\r\n" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/main.ts", + "./src/newfile.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1342 +} + + + +Change:: Clean resolutions +Input:: + + +Output:: +/lib/tsc --p src/project --cleanResolutions +exitCode:: ExitStatus.Success + + +//// [/src/project/tsconfig.tsbuildinfo] file written with same contents + + +Change:: no-change-run +Input:: + + +Output:: +/lib/tsc --p src/project +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/fileNotFound.ts +/src/project/src/filePresent.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: + + + + +Change:: Modify main file +Input:: +//// [/src/project/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something();something(); + + + +Output:: +/lib/tsc --p src/project +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/fileNotFound.ts +/src/project/src/filePresent.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/main.ts + + +//// [/src/project/src/main.d.ts] file written with same contents +//// [/src/project/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"992573078-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,5,4]},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-13705775197-export declare function something2(): number;\r\n" + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-3405156953-export declare function foo(): number;\r\n" + }, + "./src/main.ts": { + "version": "992573078-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/main.ts", + "./src/newfile.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1352 +} + diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js new file mode 100644 index 0000000000000..69691ed2f9c64 --- /dev/null +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -0,0 +1,710 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/filePresent.ts] +export function something() { return 10; } + +//// [/user/username/projects/myproject/tsconfig.json] +{"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} + +//// [/a/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":366,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"version":"FakeTSVersion"} + + +/a/lib/tsc.js --p . -w --extendedDiagnostics +Output:: +[12:00:31 AM] Starting compilation in watch mode... + +Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:41 AM] Found 1 error. Watching for file changes. + +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] file written with same contents +//// [/user/username/projects/myproject/outFile.d.ts] file written with same contents +//// [/user/username/projects/myproject/outFile.tsbuildinfo] file written with same contents +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 366, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 108, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 231 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-366) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-108) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +[12:00:48 AM] File change detected. Starting incremental compilation... + +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:58 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Completely +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] file written with same contents +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":431,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 431, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 108, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 231 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-431) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-108) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Add new module and update main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + +//// [/user/username/projects/myproject/src/newFile.ts] +export function foo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +[12:01:09 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:19 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":643,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":176,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 643, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 176, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 250 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-643) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-176) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Write file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +[12:01:28 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +[12:01:38 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 888, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 256, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 274 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-888) +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-256) +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js new file mode 100644 index 0000000000000..b441cac61d492 --- /dev/null +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -0,0 +1,599 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/filePresent.ts] +export function something() { return 10; } + +//// [/user/username/projects/myproject/tsconfig.json] +{"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} + +//// [/a/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +//// [/user/username/projects/myproject/src/filePresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); + + +//// [/user/username/projects/myproject/src/filePresent.d.ts] +export declare function something(): number; + + +//// [/user/username/projects/myproject/src/main.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/src/main.d.ts] +export {}; + + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} + + +/a/lib/tsc.js --p . -w --extendedDiagnostics +Output:: +[12:00:38 AM] Starting compilation in watch mode... + +Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:39 AM] Found 1 error. Watching for file changes. + +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +[12:00:42 AM] File change detected. Starting incremental compilation... + +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:52 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Completely +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ] + ] + }, + "version": "FakeTSVersion", + "size": 1139 +} + + +Change:: Add new module and update main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + +//// [/user/username/projects/myproject/src/newFile.ts] +export function foo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +[12:00:59 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:13 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 102, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1325 +} + +//// [/user/username/projects/myproject/src/newFile.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); + + +//// [/user/username/projects/myproject/src/newFile.d.ts] +export declare function foo(): number; + + + +Change:: Write file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +[12:01:19 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:01:33 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,5,4]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/main.ts", + "./src/newfile.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1264 +} + +//// [/user/username/projects/myproject/src/fileNotFound.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); + + +//// [/user/username/projects/myproject/src/fileNotFound.d.ts] +export declare function something2(): number; + + diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js new file mode 100644 index 0000000000000..69691ed2f9c64 --- /dev/null +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -0,0 +1,710 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/filePresent.ts] +export function something() { return 10; } + +//// [/user/username/projects/myproject/tsconfig.json] +{"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} + +//// [/a/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":366,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"version":"FakeTSVersion"} + + +/a/lib/tsc.js --p . -w --extendedDiagnostics +Output:: +[12:00:31 AM] Starting compilation in watch mode... + +Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:41 AM] Found 1 error. Watching for file changes. + +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] file written with same contents +//// [/user/username/projects/myproject/outFile.d.ts] file written with same contents +//// [/user/username/projects/myproject/outFile.tsbuildinfo] file written with same contents +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 366, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 108, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 231 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-366) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-108) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +[12:00:48 AM] File change detected. Starting incremental compilation... + +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:58 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Completely +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] file written with same contents +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":431,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 431, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 108, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 231 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-431) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-108) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Add new module and update main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + +//// [/user/username/projects/myproject/src/newFile.ts] +export function foo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +[12:01:09 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:19 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":643,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":176,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 643, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 176, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 250 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-643) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-176) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Write file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +[12:01:28 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +[12:01:38 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 888, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 256, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 274 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-888) +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-256) +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js new file mode 100644 index 0000000000000..92d4f7a948ff1 --- /dev/null +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -0,0 +1,599 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/filePresent.ts] +export function something() { return 10; } + +//// [/user/username/projects/myproject/tsconfig.json] +{"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} + +//// [/a/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +//// [/user/username/projects/myproject/src/filePresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); + + +//// [/user/username/projects/myproject/src/filePresent.d.ts] +export declare function something(): number; + + +//// [/user/username/projects/myproject/src/main.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/src/main.d.ts] +export {}; + + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} + + +/a/lib/tsc.js --p . -w --extendedDiagnostics +Output:: +[12:00:35 AM] Starting compilation in watch mode... + +Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:36 AM] Found 1 error. Watching for file changes. + +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +[12:00:39 AM] File change detected. Starting incremental compilation... + +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:49 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Completely +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ] + ] + }, + "version": "FakeTSVersion", + "size": 1139 +} + + +Change:: Add new module and update main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + +//// [/user/username/projects/myproject/src/newFile.ts] +export function foo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +[12:00:56 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:10 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 102, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1325 +} + +//// [/user/username/projects/myproject/src/newFile.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); + + +//// [/user/username/projects/myproject/src/newFile.d.ts] +export declare function foo(): number; + + + +Change:: Write file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +[12:01:16 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:01:30 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,5,4]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/main.ts", + "./src/newfile.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1264 +} + +//// [/user/username/projects/myproject/src/fileNotFound.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); + + +//// [/user/username/projects/myproject/src/fileNotFound.d.ts] +export declare function something2(): number; + + diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js new file mode 100644 index 0000000000000..283ab6c531ea3 --- /dev/null +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -0,0 +1,707 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/filePresent.ts] +export function something() { return 10; } + +//// [/user/username/projects/myproject/tsconfig.json] +{"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} + +//// [/a/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + + +/a/lib/tsc.js --p . -w --extendedDiagnostics +Output:: +[12:00:25 AM] Starting compilation in watch mode... + +Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:32 AM] Found 1 error. Watching for file changes. + +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":366,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 366, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 108, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 231 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-366) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-108) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +[12:00:39 AM] File change detected. Starting incremental compilation... + +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:49 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Completely +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] file written with same contents +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":431,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 431, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 108, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 231 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-431) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-108) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Add new module and update main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + +//// [/user/username/projects/myproject/src/newFile.ts] +export function foo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +[12:01:00 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:10 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":643,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":176,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 643, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 176, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 250 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-643) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-176) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Write file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +[12:01:19 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +[12:01:29 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 888, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 256, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 274 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-888) +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-256) +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js new file mode 100644 index 0000000000000..d81c3c0e5ef64 --- /dev/null +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -0,0 +1,674 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/filePresent.ts] +export function something() { return 10; } + +//// [/user/username/projects/myproject/tsconfig.json] +{"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} + +//// [/a/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + + +/a/lib/tsc.js --p . -w --extendedDiagnostics +Output:: +[12:00:25 AM] Starting compilation in watch mode... + +Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:36 AM] Found 1 error. Watching for file changes. + +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/filePresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); + + +//// [/user/username/projects/myproject/src/filePresent.d.ts] +export declare function something(): number; + + +//// [/user/username/projects/myproject/src/main.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/src/main.d.ts] +export {}; + + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ] + ] + }, + "version": "FakeTSVersion", + "size": 1081 +} + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +[12:00:41 AM] File change detected. Starting incremental compilation... + +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:51 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Completely +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ] + ] + }, + "version": "FakeTSVersion", + "size": 1139 +} + + +Change:: Add new module and update main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + +//// [/user/username/projects/myproject/src/newFile.ts] +export function foo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +[12:00:59 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:13 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 102, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1325 +} + +//// [/user/username/projects/myproject/src/newFile.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); + + +//// [/user/username/projects/myproject/src/newFile.d.ts] +export declare function foo(): number; + + + +Change:: Write file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +[12:01:19 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:01:33 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,5,4]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "module": 2 + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/main.ts", + "./src/newfile.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1264 +} + +//// [/user/username/projects/myproject/src/fileNotFound.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); + + +//// [/user/username/projects/myproject/src/fileNotFound.d.ts] +export declare function something2(): number; + + From 65c493011c03c3cf8da11b285eecd3ba7023792d Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 12 Oct 2020 17:30:14 -0700 Subject: [PATCH 16/48] Handle outFile --- src/compiler/builder.ts | 2 +- src/compiler/emitter.ts | 3 +- src/compiler/program.ts | 6 +- src/compiler/tsbuildPublic.ts | 2 +- src/compiler/utilities.ts | 4 + src/compiler/watchPublic.ts | 4 +- ...nd-uses-it-for-new-program-with-outFile.js | 263 +++++++++++++++- ...er-resolutions-are-cleaned-with-outFile.js | 247 ++++++++++++--- ...-saved-in-tsbuildinfo-file-with-outFile.js | 247 ++++++++++++--- ...nd-uses-it-for-new-program-with-outFile.js | 293 +++++++++++++++--- ...nd-uses-it-for-new-program-with-outFile.js | 226 +++++++++++++- ...er-resolutions-are-cleaned-with-outFile.js | 190 +++++++++++- ...-saved-in-tsbuildinfo-file-with-outFile.js | 174 ++++++++++- ...nd-uses-it-for-new-program-with-outFile.js | 174 ++++++++++- 14 files changed, 1650 insertions(+), 185 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index a6bcaa5ae54df..67b606a697d58 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -740,7 +740,7 @@ namespace ts { * Gets the program information to be emitted in buildInfo so that we can use it to create new program */ function getProgramBuildInfo(state: Readonly, getCanonicalFileName: GetCanonicalFileName): ProgramBuildInfo | undefined { - if (outFile(state.compilerOptions)) return undefined; + if (outFileWithoutPersistResolutions(state.compilerOptions)) return undefined; const currentDirectory = Debug.checkDefined(state.program).getCurrentDirectory(); const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions)!, currentDirectory)); const fileNames: string[] = []; diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 7bb3d8f75770f..b84e27a8341c4 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -28,7 +28,8 @@ namespace ts { const prepends = host.getPrependNodes(); if (sourceFiles.length || prepends.length) { const bundle = factory.createBundle(sourceFiles, prepends); - const result = action(getOutputPathsFor(bundle, host, forceDtsEmit), bundle); + const outputPaths = getOutputPathsFor(bundle, host, forceDtsEmit); + const result = action(!onlyBuildInfo ? outputPaths : { buildInfoPath: outputPaths.buildInfoPath }, bundle); if (result) { return result; } diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 354c22ef59285..0c97668b15b2d 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1742,7 +1742,7 @@ namespace ts { } function emitBuildInfo(writeFileCallback?: WriteFileCallback): EmitResult { - Debug.assert(!outFile(options)); + Debug.assert(!outFileWithoutPersistResolutions(options)); tracing?.push(tracing.Phase.Emit, "emitBuildInfo", {}, /*separateBeginAndEnd*/ true); performance.mark("beforeEmit"); const emitResult = emitFiles( @@ -3934,7 +3934,7 @@ namespace ts { if (options.noEmit) { // Cache the semantic diagnostics program.getSemanticDiagnostics(sourceFile, cancellationToken); - return sourceFile || outFile(options) ? + return sourceFile || outFileWithoutPersistResolutions(options) ? emitSkippedWithNoDiagnostics : program.emitBuildInfo(writeFile, cancellationToken); } @@ -3956,7 +3956,7 @@ namespace ts { if (!diagnostics.length) return undefined; let emittedFiles: string[] | undefined; - if (!sourceFile && !outFile(options)) { + if (!sourceFile && !outFileWithoutPersistResolutions(options)) { const emitResult = program.emitBuildInfo(writeFile, cancellationToken); if (emitResult.diagnostics) diagnostics = [...diagnostics, ...emitResult.diagnostics]; emittedFiles = emitResult.emittedFiles; diff --git a/src/compiler/tsbuildPublic.ts b/src/compiler/tsbuildPublic.ts index 02b2d2a71519d..d9fa980d2f824 100644 --- a/src/compiler/tsbuildPublic.ts +++ b/src/compiler/tsbuildPublic.ts @@ -1307,7 +1307,7 @@ namespace ts { buildResult: BuildResultFlags, errorType: string, ) { - const canEmitBuildInfo = !(buildResult & BuildResultFlags.SyntaxErrors) && program && !outFile(program.getCompilerOptions()); + const canEmitBuildInfo = !(buildResult & BuildResultFlags.SyntaxErrors) && program && !outFileWithoutPersistResolutions(program.getCompilerOptions()); reportAndStoreErrors(state, resolvedPath, diagnostics); state.projectStatus.set(resolvedPath, { type: UpToDateStatusType.Unbuildable, reason: `${errorType} errors` }); diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 9660c7e346b46..658f56240285a 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -4208,6 +4208,10 @@ namespace ts { return options.outFile || options.out; } + export function outFileWithoutPersistResolutions(options: CompilerOptions) { + return !!outFile(options) && !options.persistResolutions; + } + /** Returns 'undefined' if and only if 'options.paths' is undefined. */ export function getPathsBasePath(options: CompilerOptions, host: { getCurrentDirectory?(): string }) { if (!options.paths) return undefined; diff --git a/src/compiler/watchPublic.ts b/src/compiler/watchPublic.ts index 8d73e78e25dba..cf18866584cce 100644 --- a/src/compiler/watchPublic.ts +++ b/src/compiler/watchPublic.ts @@ -5,7 +5,7 @@ namespace ts { readFile(fileName: string): string | undefined; } export function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost) { - if (outFile(compilerOptions)) return undefined; + if (outFileWithoutPersistResolutions(compilerOptions)) return undefined; const buildInfoPath = getTsBuildInfoEmitOutputFilePath(compilerOptions); if (!buildInfoPath) return undefined; const content = host.readFile(buildInfoPath); @@ -21,7 +21,7 @@ namespace ts { writeFile: WriteFileCallback; } export function cleanResolutionsOfTsBuildInfo(compilerOptions: CompilerOptions, host: CleanResolutionsOfTsBuildInfoHost): EmitResult { - if (outFile(compilerOptions)) return emitSkippedWithNoDiagnostics; + if (outFileWithoutPersistResolutions(compilerOptions)) return emitSkippedWithNoDiagnostics; const buildInfoPath = getTsBuildInfoEmitOutputFilePath(compilerOptions); if (!buildInfoPath) return emitSkippedWithNoDiagnostics; const content = host.readFile(buildInfoPath); diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 2959a2fe96892..f2eb6f374c613 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -60,6 +60,57 @@ Program files:: No cached semantic diagnostics in the builder:: +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"]},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/main.ts" + ] + }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {} + }, + "version": "FakeTSVersion", + "size": 1077 +} + Change:: no-change-run @@ -144,6 +195,57 @@ Program files:: No cached semantic diagnostics in the builder:: +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"]},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/main.ts" + ] + }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {} + }, + "version": "FakeTSVersion", + "size": 1089 +} + Change:: Add new module and update main file @@ -196,6 +298,64 @@ Program files:: No cached semantic diagnostics in the builder:: +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"]},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ] + }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {} + }, + "version": "FakeTSVersion", + "size": 1242 +} + Change:: Write file that could not be resolved @@ -276,7 +436,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":914,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":266,"kind":"text"}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":914,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":266,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -357,8 +517,55 @@ declare module "src/main" { } ] } }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {} + }, "version": "FakeTSVersion", - "size": 274 + "size": 1488 } @@ -372,6 +579,7 @@ Output:: exitCode:: ExitStatus.Success +//// [/src/project/outFile.tsbuildinfo] file written with same contents Change:: no-change-run @@ -453,7 +661,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":946,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":266,"kind":"text"}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":946,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":266,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"992573078-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -535,7 +743,54 @@ declare module "src/main" { } ] } }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "992573078-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {} + }, "version": "FakeTSVersion", - "size": 274 + "size": 1498 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index 7c4aaf59c75bc..4f0375a677d54 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -22,10 +22,13 @@ interface RegExp {} interface String { charAt: any; } interface Array { length: number; [n: number]: T; } +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"]},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} + /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:25 AM] Starting compilation in watch mode... +[12:00:30 AM] Starting compilation in watch mode... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -44,7 +47,7 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:26 AM] Found 1 error. Watching for file changes. +[12:00:31 AM] Found 1 error. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json @@ -91,7 +94,7 @@ import { something2 } from "./fileNotFound";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:29 AM] File change detected. Starting incremental compilation... +[12:00:34 AM] File change detected. Starting incremental compilation... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -110,7 +113,7 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. 2 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:30 AM] Found 1 error. Watching for file changes. +[12:00:40 AM] Found 1 error. Watching for file changes. @@ -140,6 +143,57 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"]},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/main.ts" + ] + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {} + }, + "version": "FakeTSVersion", + "size": 1017 +} + Change:: Add new module and update main file @@ -157,7 +211,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:35 AM] File change detected. Starting incremental compilation... +[12:00:45 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== @@ -181,7 +235,7 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. 2 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:36 AM] Found 1 error. Watching for file changes. +[12:00:52 AM] Found 1 error. Watching for file changes. @@ -214,6 +268,64 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"]},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ] + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {} + }, + "version": "FakeTSVersion", + "size": 1170 +} + Change:: Write file that could not be resolved @@ -225,7 +337,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:00:39 AM] File change detected. Starting incremental compilation... +[12:00:55 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== @@ -240,7 +352,7 @@ File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -[12:00:50 AM] Found 0 errors. Watching for file changes. +[12:01:08 AM] Found 0 errors. Watching for file changes. @@ -276,6 +388,89 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 888, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 256, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {} + }, + "version": "FakeTSVersion", + "size": 1416 +} + //// [/user/username/projects/myproject/outFile.js] define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; @@ -318,42 +513,6 @@ declare module "src/newFile" { declare module "src/main" { } -//// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/fileNotFound.ts", - "./src/filePresent.ts", - "./src/newFile.ts", - "./src/main.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 888, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 256, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 274 -} - //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 7c4aaf59c75bc..846821b344df1 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -22,10 +22,13 @@ interface RegExp {} interface String { charAt: any; } interface Array { length: number; [n: number]: T; } +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"]},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} + /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:25 AM] Starting compilation in watch mode... +[12:00:27 AM] Starting compilation in watch mode... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -44,7 +47,7 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:26 AM] Found 1 error. Watching for file changes. +[12:00:28 AM] Found 1 error. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json @@ -91,7 +94,7 @@ import { something2 } from "./fileNotFound";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:29 AM] File change detected. Starting incremental compilation... +[12:00:31 AM] File change detected. Starting incremental compilation... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -110,7 +113,7 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. 2 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:30 AM] Found 1 error. Watching for file changes. +[12:00:37 AM] Found 1 error. Watching for file changes. @@ -140,6 +143,57 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"]},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/main.ts" + ] + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {} + }, + "version": "FakeTSVersion", + "size": 1017 +} + Change:: Add new module and update main file @@ -157,7 +211,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:35 AM] File change detected. Starting incremental compilation... +[12:00:42 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== @@ -181,7 +235,7 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. 2 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:36 AM] Found 1 error. Watching for file changes. +[12:00:49 AM] Found 1 error. Watching for file changes. @@ -214,6 +268,64 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"]},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ] + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {} + }, + "version": "FakeTSVersion", + "size": 1170 +} + Change:: Write file that could not be resolved @@ -225,7 +337,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:00:39 AM] File change detected. Starting incremental compilation... +[12:00:52 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== @@ -240,7 +352,7 @@ File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -[12:00:50 AM] Found 0 errors. Watching for file changes. +[12:01:05 AM] Found 0 errors. Watching for file changes. @@ -276,6 +388,89 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 888, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 256, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {} + }, + "version": "FakeTSVersion", + "size": 1416 +} + //// [/user/username/projects/myproject/outFile.js] define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; @@ -318,42 +513,6 @@ declare module "src/newFile" { declare module "src/main" { } -//// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/fileNotFound.ts", - "./src/filePresent.ts", - "./src/newFile.ts", - "./src/main.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 888, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 256, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 274 -} - //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 7c4aaf59c75bc..394d0f056d1ec 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -44,7 +44,7 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:26 AM] Found 1 error. Watching for file changes. +[12:00:30 AM] Found 1 error. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json @@ -79,6 +79,57 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"]},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/main.ts" + ] + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {} + }, + "version": "FakeTSVersion", + "size": 1005 +} + Change:: Modify main file @@ -91,7 +142,7 @@ import { something2 } from "./fileNotFound";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:29 AM] File change detected. Starting incremental compilation... +[12:00:33 AM] File change detected. Starting incremental compilation... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -110,7 +161,7 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. 2 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:30 AM] Found 1 error. Watching for file changes. +[12:00:40 AM] Found 1 error. Watching for file changes. @@ -140,6 +191,57 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"]},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/main.ts" + ] + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {} + }, + "version": "FakeTSVersion", + "size": 1017 +} + Change:: Add new module and update main file @@ -157,7 +259,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:35 AM] File change detected. Starting incremental compilation... +[12:00:45 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== @@ -181,7 +283,7 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. 2 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:36 AM] Found 1 error. Watching for file changes. +[12:00:52 AM] Found 1 error. Watching for file changes. @@ -214,6 +316,64 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"]},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ] + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {} + }, + "version": "FakeTSVersion", + "size": 1170 +} + Change:: Write file that could not be resolved @@ -225,7 +385,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:00:39 AM] File change detected. Starting incremental compilation... +[12:00:55 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== @@ -240,7 +400,7 @@ File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -[12:00:50 AM] Found 0 errors. Watching for file changes. +[12:01:08 AM] Found 0 errors. Watching for file changes. @@ -276,6 +436,89 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 888, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 256, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {} + }, + "version": "FakeTSVersion", + "size": 1416 +} + //// [/user/username/projects/myproject/outFile.js] define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; @@ -318,42 +561,6 @@ declare module "src/newFile" { declare module "src/main" { } -//// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/fileNotFound.ts", - "./src/filePresent.ts", - "./src/newFile.ts", - "./src/main.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 888, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 256, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 274 -} - //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index dc79040a6cb17..20f71c0d8a9de 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -82,7 +82,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":377,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":112,"kind":"text"}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":377,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":112,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -140,8 +140,43 @@ declare module "src/main" { } ] } }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {} + }, "version": "FakeTSVersion", - "size": 231 + "size": 1186 } @@ -250,7 +285,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":443,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":112,"kind":"text"}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":443,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":112,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -309,8 +344,43 @@ declare module "src/main" { } ] } }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {} + }, "version": "FakeTSVersion", - "size": 231 + "size": 1198 } @@ -398,7 +468,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":662,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":183,"kind":"text"}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":662,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":183,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -468,8 +538,49 @@ declare module "src/main" { } ] } }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {} + }, "version": "FakeTSVersion", - "size": 250 + "size": 1351 } @@ -552,7 +663,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":914,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":266,"kind":"text"}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":914,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":266,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -633,8 +744,55 @@ declare module "src/main" { } ] } }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {} + }, "version": "FakeTSVersion", - "size": 274 + "size": 1488 } @@ -648,6 +806,7 @@ Output:: exitCode:: ExitStatus.Success +//// [/src/project/outFile.tsbuildinfo] file written with same contents Change:: no-change-run @@ -757,7 +916,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":946,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":266,"kind":"text"}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":946,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":266,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"992573078-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -839,7 +998,54 @@ declare module "src/main" { } ] } }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "992573078-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {} + }, "version": "FakeTSVersion", - "size": 274 + "size": 1498 } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index 69691ed2f9c64..45352bb8df1e8 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -44,12 +44,12 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":366,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":366,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:31 AM] Starting compilation in watch mode... +[12:00:34 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file @@ -81,7 +81,7 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:41 AM] Found 1 error. Watching for file changes. +[12:00:44 AM] Found 1 error. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -148,8 +148,43 @@ exitCode:: ExitStatus.undefined ] } }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {} + }, "version": "FakeTSVersion", - "size": 231 + "size": 1114 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -194,7 +229,7 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:48 AM] File change detected. Starting incremental compilation... +[12:00:51 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: @@ -207,7 +242,7 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 2 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:58 AM] Found 1 error. Watching for file changes. +[12:01:01 AM] Found 1 error. Watching for file changes. @@ -259,7 +294,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":431,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":431,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -288,8 +323,43 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ] } }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {} + }, "version": "FakeTSVersion", - "size": 231 + "size": 1126 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -344,7 +414,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:01:09 AM] File change detected. Starting incremental compilation... +[12:01:12 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -363,7 +433,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.t 2 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:19 AM] Found 1 error. Watching for file changes. +[12:01:22 AM] Found 1 error. Watching for file changes. @@ -434,7 +504,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":643,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":176,"kind":"text"}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":643,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":176,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -464,8 +534,49 @@ declare module "src/main" { } ] } }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {} + }, "version": "FakeTSVersion", - "size": 250 + "size": 1279 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -524,7 +635,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotF Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update -[12:01:28 AM] File change detected. Starting incremental compilation... +[12:01:31 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -540,7 +651,7 @@ File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:01:38 AM] Found 0 errors. Watching for file changes. +[12:01:41 AM] Found 0 errors. Watching for file changes. @@ -623,7 +734,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -654,8 +765,55 @@ declare module "src/main" { } ] } }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {} + }, "version": "FakeTSVersion", - "size": 274 + "size": 1416 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 69691ed2f9c64..d982491a79ab2 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -44,7 +44,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":366,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":366,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -148,8 +148,43 @@ exitCode:: ExitStatus.undefined ] } }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {} + }, "version": "FakeTSVersion", - "size": 231 + "size": 1114 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -259,7 +294,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":431,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":431,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -288,8 +323,43 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ] } }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {} + }, "version": "FakeTSVersion", - "size": 231 + "size": 1126 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -434,7 +504,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":643,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":176,"kind":"text"}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":643,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":176,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -464,8 +534,49 @@ declare module "src/main" { } ] } }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {} + }, "version": "FakeTSVersion", - "size": 250 + "size": 1279 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -623,7 +734,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -654,8 +765,55 @@ declare module "src/main" { } ] } }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {} + }, "version": "FakeTSVersion", - "size": 274 + "size": 1416 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 283ab6c531ea3..fb2f560fd7dcc 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -116,7 +116,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":366,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":366,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -145,8 +145,43 @@ declare module "src/main" { } ] } }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {} + }, "version": "FakeTSVersion", - "size": 231 + "size": 1114 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -256,7 +291,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":431,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":431,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -285,8 +320,43 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ] } }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/main.ts": { + "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {} + }, "version": "FakeTSVersion", - "size": 231 + "size": 1126 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -431,7 +501,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":643,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":176,"kind":"text"}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":643,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":176,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -461,8 +531,49 @@ declare module "src/main" { } ] } }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {} + }, "version": "FakeTSVersion", - "size": 250 + "size": 1279 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -620,7 +731,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -651,8 +762,55 @@ declare module "src/main" { } ] } }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "module": 2, + "outFile": "./outFile.js" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {} + }, "version": "FakeTSVersion", - "size": 274 + "size": 1416 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] From 58b95b99e7d181a1865d314809fc01da7f25e814 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 19 Mar 2021 13:08:50 -0700 Subject: [PATCH 17/48] Emit bundle only if there are sections for bundle --- src/compiler/emitter.ts | 2 +- ...nd-uses-it-for-new-program-with-outFile.js | 34 ++++--------------- ...er-resolutions-are-cleaned-with-outFile.js | 25 +++----------- ...-saved-in-tsbuildinfo-file-with-outFile.js | 25 +++----------- ...nd-uses-it-for-new-program-with-outFile.js | 34 ++++--------------- 5 files changed, 23 insertions(+), 97 deletions(-) diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index b84e27a8341c4..73553d261deb7 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -386,7 +386,7 @@ namespace ts { return; } const version = ts.version; // Extracted into a const so the form is stable between namespace and module - writeFile(host, emitterDiagnostics, buildInfoPath, getBuildInfoText({ bundle, program, version }), /*writeByteOrderMark*/ false); + writeFile(host, emitterDiagnostics, buildInfoPath, getBuildInfoText({ bundle: bundle && (bundle.js || bundle.dts) ? bundle : undefined, program, version }), /*writeByteOrderMark*/ false); } function emitJsFileOrBundle( diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index f2eb6f374c613..e8d20e7a22858 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -61,17 +61,10 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"]},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/filePresent.ts", - "./src/main.ts" - ] - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -108,7 +101,7 @@ No cached semantic diagnostics in the builder:: "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1077 + "size": 982 } @@ -196,17 +189,10 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"]},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/filePresent.ts", - "./src/main.ts" - ] - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -243,7 +229,7 @@ No cached semantic diagnostics in the builder:: "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1089 + "size": 994 } @@ -299,18 +285,10 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"]},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/filePresent.ts", - "./src/newFile.ts", - "./src/main.ts" - ] - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -353,7 +331,7 @@ No cached semantic diagnostics in the builder:: "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1242 + "size": 1128 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index 4f0375a677d54..a607ee8b7a6b7 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -23,7 +23,7 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"]},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics @@ -144,17 +144,10 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"]},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/filePresent.ts", - "./src/main.ts" - ] - }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", @@ -191,7 +184,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1017 + "size": 922 } @@ -269,18 +262,10 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"]},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/filePresent.ts", - "./src/newFile.ts", - "./src/main.ts" - ] - }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", @@ -323,7 +308,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1170 + "size": 1056 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 846821b344df1..772da9a0b5b61 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -23,7 +23,7 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"]},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics @@ -144,17 +144,10 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"]},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/filePresent.ts", - "./src/main.ts" - ] - }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", @@ -191,7 +184,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1017 + "size": 922 } @@ -269,18 +262,10 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"]},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/filePresent.ts", - "./src/newFile.ts", - "./src/main.ts" - ] - }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", @@ -323,7 +308,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1170 + "size": 1056 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 394d0f056d1ec..97b54bda5a3ad 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -80,17 +80,10 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"]},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/filePresent.ts", - "./src/main.ts" - ] - }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", @@ -127,7 +120,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1005 + "size": 910 } @@ -192,17 +185,10 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"]},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/filePresent.ts", - "./src/main.ts" - ] - }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", @@ -239,7 +225,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1017 + "size": 922 } @@ -317,18 +303,10 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"]},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/filePresent.ts", - "./src/newFile.ts", - "./src/main.ts" - ] - }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", @@ -371,7 +349,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1170 + "size": 1056 } From 070b84627b55a243225b554160084ba60263362c Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 12 Oct 2020 18:09:15 -0700 Subject: [PATCH 18/48] Persist resolutions, persists resolutions in program and not watches them --- src/compiler/program.ts | 40 +++++++-- src/compiler/resolutionCache.ts | 7 +- ...er-resolutions-are-cleaned-with-outFile.js | 56 +++++------- ...can-build-after-resolutions-are-cleaned.js | 77 ++++++++--------- ...-saved-in-tsbuildinfo-file-with-outFile.js | 56 +++++------- ...ons-have-been-saved-in-tsbuildinfo-file.js | 77 ++++++++--------- ...nd-uses-it-for-new-program-with-outFile.js | 56 +++++------- ...-resolution-and-uses-it-for-new-program.js | 85 ++++++++----------- 8 files changed, 206 insertions(+), 248 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 0c97668b15b2d..ed92148681da4 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1323,8 +1323,30 @@ namespace ts { let result: (ResolvedModuleWithFailedLookupLocations | typeof predictedToResolveToAmbientModuleMarker)[] | undefined; for (let i = 0; i < moduleNames.length; i++) { const moduleName = moduleNames[i]; + if (options.persistResolutions) { + const oldResolvedModule = oldSourceFile?.resolvedModules?.get(moduleName); + if (oldResolvedModule) { + if (isTraceEnabled(options, host)) { + trace( + host, + oldResolvedModule.resolvedModule?.resolvedFileName ? + oldResolvedModule.resolvedModule.packageId ? + Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : + Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : + Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved, + moduleName, + getNormalizedAbsolutePath(file.originalFileName, currentDirectory), + oldResolvedModule?.resolvedModule?.resolvedFileName, + oldResolvedModule?.resolvedModule?.packageId && packageIdToString(oldResolvedModule.resolvedModule.packageId) + ); + } + (result || (result = new Array(moduleNames.length)))[i] = oldResolvedModule; + (reusedNames || (reusedNames = [])).push(moduleName); + continue; + } + } // If the source file is unchanged and doesnt have invalidated resolution, reuse the module resolutions - if (oldSourceFile && file.version === oldSourceFile.version && !hasInvalidatedResolution(oldSourceFile.path)) { + else if (oldSourceFile && file.version === oldSourceFile.version && !hasInvalidatedResolution(oldSourceFile.path)) { const oldResolvedModule = oldSourceFile.resolvedModules?.get(moduleName); if (oldResolvedModule?.resolvedModule) { if (isTraceEnabled(options, host)) { @@ -1457,11 +1479,19 @@ namespace ts { // check properties that can affect structure of the program or module resolution strategy // if any of these properties has changed - structure cannot be reused - const oldOptions = oldProgram.getCompilerOptions(); - if (changesAffectModuleResolution(oldOptions, options)) { + if (changesAffectModuleResolution(oldProgram.getCompilerOptions(), options)) { return StructureIsReused.Not; } + // With persistResolutions its always to reuse strcture for safe module resolutions + const result = tryReuseStructureFromOldProgramWithOptionsReusingModuleResolution(oldProgram); + return options.persistResolutions && result === StructureIsReused.Not ? + StructureIsReused.SafeModules : + result; + + } + + function tryReuseStructureFromOldProgramWithOptionsReusingModuleResolution(oldProgram: Program | ProgramFromBuildInfo): StructureIsReused { // there is an old program, check if we can reuse its structure const oldRootNames = oldProgram.getRootFileNames(); if (!arrayIsEqualTo(oldRootNames, rootNames)) { @@ -1649,7 +1679,7 @@ namespace ts { return structureIsReused; } - if (changesAffectingProgramStructure(oldOptions, options) || host.hasChangedAutomaticTypeDirectiveNames?.()) { + if (changesAffectingProgramStructure(oldProgram.getCompilerOptions(), options) || host.hasChangedAutomaticTypeDirectiveNames?.()) { return StructureIsReused.SafeModules; } @@ -1685,7 +1715,7 @@ namespace ts { const oldPath = !isString(oldFile) ? oldFile.path : oldFile; if (oldPath === path) { // Set the file as found during node modules search if it was found that way in old progra, - if (oldProgram!.isSourceFileFromExternalLibraryPath(oldPath)) { + if (oldProgram.isSourceFileFromExternalLibraryPath(oldPath)) { sourceFilesFoundSearchingNodeModules.set(oldPath, true); } return; diff --git a/src/compiler/resolutionCache.ts b/src/compiler/resolutionCache.ts index 1d561ce31adce..a77a42d175cd6 100644 --- a/src/compiler/resolutionCache.ts +++ b/src/compiler/resolutionCache.ts @@ -363,6 +363,12 @@ namespace ts { loader, getResolutionWithResolvedFileName, shouldRetryResolution, reusedNames, logChanges }: ResolveNamesWithLocalCacheInput): T[] { + const compilerOptions = resolutionHost.getCompilationSettings(); + // If resolutions are persisted, we just need to direct to loader and program will do job of storing resolutions, + // We also shouldnt be watching locations since those resolutions are always persisted till user opts not to + if (compilerOptions.persistResolutions) { + return names.map(name => loader(name, containingFile, compilerOptions, resolutionHost.getCompilerHost?.() || resolutionHost, redirectedReference)); + } const path = resolutionHost.toPath(containingFile); const resolutionsInFile = cache.get(path) || cache.set(path, new Map()).get(path)!; const dirPath = getDirectoryPath(path); @@ -373,7 +379,6 @@ namespace ts { perDirectoryCache.set(dirPath, perDirectoryResolution); } const resolvedModules: T[] = []; - const compilerOptions = resolutionHost.getCompilationSettings(); const hasInvalidatedNonRelativeUnresolvedImport = logChanges && isFileWithInvalidatedNonRelativeUnresolvedImports(path); // All the resolutions in this file are invalidated if this file wasn't resolved using same redirect diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index 45352bb8df1e8..1fd2e720fa141 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -71,8 +71,6 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots @@ -110,11 +108,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -269,11 +266,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -405,9 +401,6 @@ export function foo() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -421,12 +414,12 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -439,7 +432,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.t Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -463,11 +456,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -628,13 +620,9 @@ export function something2() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Scheduling update [12:01:31 AM] File change detected. Starting incremental compilation... Reloading new file names and options @@ -645,19 +633,19 @@ CreatingProgramWith:: FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:01:41 AM] Found 0 errors. Watching for file changes. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:41 AM] Found 1 error. Watching for file changes. Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/fileNotFound.ts @@ -684,10 +672,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -734,7 +722,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -775,7 +763,6 @@ declare module "src/main" { } ], "fileNamesList": [ [ - "./src/filenotfound.ts", "./src/filepresent.ts", "./src/newfile.ts" ] @@ -805,7 +792,6 @@ declare module "src/main" { } }, "referencedMap": { "./src/main.ts": [ - "./src/filenotfound.ts", "./src/filepresent.ts", "./src/newfile.ts" ] @@ -813,7 +799,7 @@ declare module "src/main" { } "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1416 + "size": 1414 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js index b441cac61d492..b928ee2412bf5 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -75,8 +75,6 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots @@ -114,11 +112,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -176,11 +173,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -269,9 +265,6 @@ export function foo() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -285,20 +278,16 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -313,7 +302,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -339,11 +328,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -443,13 +431,9 @@ export function something2() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Scheduling update [12:01:19 AM] File change detected. Starting incremental compilation... Reloading new file names and options @@ -460,25 +444,25 @@ CreatingProgramWith:: FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:33 AM] Found 0 errors. Watching for file changes. +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:27 AM] Found 1 error. Watching for file changes. Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/fileNotFound.ts @@ -488,7 +472,6 @@ Program files:: Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts -/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -507,17 +490,15 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/src/main.js] file written with same contents -//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,5,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,[5,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -531,7 +512,6 @@ exitCode:: ExitStatus.undefined ], "fileNamesList": [ [ - "./src/filenotfound.ts", "./src/filepresent.ts", "./src/newfile.ts" ] @@ -565,7 +545,6 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/main.ts": [ - "./src/filenotfound.ts", "./src/filepresent.ts", "./src/newfile.ts" ] @@ -575,12 +554,24 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filenotfound.ts", "./src/filepresent.ts", - "./src/main.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 102, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/newfile.ts" ] }, "version": "FakeTSVersion", - "size": 1264 + "size": 1495 } //// [/user/username/projects/myproject/src/fileNotFound.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index d982491a79ab2..3598aa08610e0 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -71,8 +71,6 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots @@ -110,11 +108,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -269,11 +266,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -405,9 +401,6 @@ export function foo() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -421,12 +414,12 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -439,7 +432,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.t Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -463,11 +456,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -628,13 +620,9 @@ export function something2() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Scheduling update [12:01:28 AM] File change detected. Starting incremental compilation... Reloading new file names and options @@ -645,19 +633,19 @@ CreatingProgramWith:: FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:01:38 AM] Found 0 errors. Watching for file changes. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:38 AM] Found 1 error. Watching for file changes. Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/fileNotFound.ts @@ -684,10 +672,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -734,7 +722,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -775,7 +763,6 @@ declare module "src/main" { } ], "fileNamesList": [ [ - "./src/filenotfound.ts", "./src/filepresent.ts", "./src/newfile.ts" ] @@ -805,7 +792,6 @@ declare module "src/main" { } }, "referencedMap": { "./src/main.ts": [ - "./src/filenotfound.ts", "./src/filepresent.ts", "./src/newfile.ts" ] @@ -813,7 +799,7 @@ declare module "src/main" { } "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1416 + "size": 1414 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index 92d4f7a948ff1..9404acd3c4ab8 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -75,8 +75,6 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots @@ -114,11 +112,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -176,11 +173,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -269,9 +265,6 @@ export function foo() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -285,20 +278,16 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -313,7 +302,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -339,11 +328,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -443,13 +431,9 @@ export function something2() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Scheduling update [12:01:16 AM] File change detected. Starting incremental compilation... Reloading new file names and options @@ -460,25 +444,25 @@ CreatingProgramWith:: FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:30 AM] Found 0 errors. Watching for file changes. +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:24 AM] Found 1 error. Watching for file changes. Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/fileNotFound.ts @@ -488,7 +472,6 @@ Program files:: Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts -/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -507,17 +490,15 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/src/main.js] file written with same contents -//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,5,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,[5,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -531,7 +512,6 @@ exitCode:: ExitStatus.undefined ], "fileNamesList": [ [ - "./src/filenotfound.ts", "./src/filepresent.ts", "./src/newfile.ts" ] @@ -565,7 +545,6 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/main.ts": [ - "./src/filenotfound.ts", "./src/filepresent.ts", "./src/newfile.ts" ] @@ -575,12 +554,24 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filenotfound.ts", "./src/filepresent.ts", - "./src/main.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 102, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/newfile.ts" ] }, "version": "FakeTSVersion", - "size": 1264 + "size": 1495 } //// [/user/username/projects/myproject/src/fileNotFound.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index fb2f560fd7dcc..2cd2aed203bc2 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -47,8 +47,6 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots @@ -86,11 +84,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -266,11 +263,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -402,9 +398,6 @@ export function foo() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -418,12 +411,12 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -436,7 +429,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.t Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -460,11 +453,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -625,13 +617,9 @@ export function something2() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Scheduling update [12:01:19 AM] File change detected. Starting incremental compilation... Reloading new file names and options @@ -642,19 +630,19 @@ CreatingProgramWith:: FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:01:29 AM] Found 0 errors. Watching for file changes. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:29 AM] Found 1 error. Watching for file changes. Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/fileNotFound.ts @@ -681,10 +669,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -731,7 +719,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -772,7 +760,6 @@ declare module "src/main" { } ], "fileNamesList": [ [ - "./src/filenotfound.ts", "./src/filepresent.ts", "./src/newfile.ts" ] @@ -802,7 +789,6 @@ declare module "src/main" { } }, "referencedMap": { "./src/main.ts": [ - "./src/filenotfound.ts", "./src/filepresent.ts", "./src/newfile.ts" ] @@ -810,7 +796,7 @@ declare module "src/main" { } "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1416 + "size": 1414 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index d81c3c0e5ef64..e832c7ac58b4e 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -47,19 +47,9 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -97,11 +87,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -251,11 +240,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -344,9 +332,6 @@ export function foo() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -360,20 +345,16 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -388,7 +369,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -414,11 +395,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -518,13 +498,9 @@ export function something2() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Scheduling update [12:01:19 AM] File change detected. Starting incremental compilation... Reloading new file names and options @@ -535,25 +511,25 @@ CreatingProgramWith:: FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:33 AM] Found 0 errors. Watching for file changes. +src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:27 AM] Found 1 error. Watching for file changes. Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/fileNotFound.ts @@ -563,7 +539,6 @@ Program files:: Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts -/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -582,17 +557,15 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/src/main.js] file written with same contents -//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,5,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,[5,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -606,7 +579,6 @@ exitCode:: ExitStatus.undefined ], "fileNamesList": [ [ - "./src/filenotfound.ts", "./src/filepresent.ts", "./src/newfile.ts" ] @@ -640,7 +612,6 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/main.ts": [ - "./src/filenotfound.ts", "./src/filepresent.ts", "./src/newfile.ts" ] @@ -650,12 +621,24 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filenotfound.ts", "./src/filepresent.ts", - "./src/main.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 102, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/newfile.ts" ] }, "version": "FakeTSVersion", - "size": 1264 + "size": 1495 } //// [/user/username/projects/myproject/src/fileNotFound.js] From cf12c5e902db2bd95b1f65c9002a20a61052bc8a Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 14 Oct 2020 18:08:28 -0700 Subject: [PATCH 19/48] renames to cleanPersistedProgram --- src/compiler/commandLineParser.ts | 4 +- src/compiler/diagnosticMessages.json | 2 +- src/compiler/tsbuildPublic.ts | 14 +-- src/compiler/types.ts | 2 +- src/compiler/watch.ts | 8 +- src/compiler/watchPublic.ts | 4 +- src/executeCommandLine/executeCommandLine.ts | 16 +-- .../unittests/tsbuild/persistResolutions.ts | 68 +++++++++-- src/testRunner/unittests/tsbuild/sample.ts | 2 +- .../tsbuildWatch/persistResolutions.ts | 8 +- .../unittests/tsc/persistResolutions.ts | 112 +++++++++++++++++- .../unittests/tscWatch/persistResolutions.ts | 4 +- .../reference/api/tsserverlibrary.d.ts | 10 +- tests/baselines/reference/api/typescript.d.ts | 10 +- .../cleanPersistedProgram/tsconfig.json | 5 + .../cleanResolutions/tsconfig.json | 5 - ...nd-uses-it-for-new-program-with-outFile.js | 2 +- ...-resolution-and-uses-it-for-new-program.js | 2 +- .../initial-build/persistResolutions.js | 2 +- ...nd-uses-it-for-new-program-with-outFile.js | 2 +- ...-resolution-and-uses-it-for-new-program.js | 2 +- 21 files changed, 221 insertions(+), 63 deletions(-) create mode 100644 tests/baselines/reference/showConfig/Shows tsconfig for single option/cleanPersistedProgram/tsconfig.json delete mode 100644 tests/baselines/reference/showConfig/Shows tsconfig for single option/cleanResolutions/tsconfig.json diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 86efb8b24f649..3f08f8eb20429 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -279,11 +279,11 @@ namespace ts { description: Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us }, { - name: "cleanResolutions", + name: "cleanPersistedProgram", type: "boolean", isCommandLineOnly: true, category: Diagnostics.Advanced_Options, - description: Diagnostics.Save_module_and_type_reference_directive_resolution_information_in_tsbuildinfo_file, + description: Diagnostics.Clean_persisted_program_information_in_tsbuildinfo_file, }, ]; diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 9b92facab9b8e..bcafaf498c79e 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -4885,7 +4885,7 @@ "category": "Message", "code": 6244 }, - "Clean module and type reference directive resolution information in '.tsbuildinfo' file.": { + "Clean persisted program information in '.tsbuildinfo' file.": { "category": "Message", "code": 6245 }, diff --git a/src/compiler/tsbuildPublic.ts b/src/compiler/tsbuildPublic.ts index d9fa980d2f824..d371e02fb5e1f 100644 --- a/src/compiler/tsbuildPublic.ts +++ b/src/compiler/tsbuildPublic.ts @@ -18,7 +18,7 @@ namespace ts { /*@internal*/ pretty?: boolean; incremental?: boolean; assumeChangesOnlyAffectDirectDependencies?: boolean; - /*@internal*/ cleanResolutions?: boolean; + /*@internal*/ cleanPersistedProgram?: boolean; traceResolution?: boolean; /* @internal */ diagnostics?: boolean; @@ -134,10 +134,10 @@ namespace ts { export interface SolutionBuilder { build(project?: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers): ExitStatus; clean(project?: string): ExitStatus; - cleanResolutions(project?: string): ExitStatus; + cleanPersistedProgram(project?: string): ExitStatus; buildReferences(project: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers): ExitStatus; cleanReferences(project?: string): ExitStatus; - cleanResolutionsOfReferences(project?: string): ExitStatus; + cleanPersistedProgramOfReferences(project?: string): ExitStatus; getNextInvalidatedProject(cancellationToken?: CancellationToken): InvalidatedProject | undefined; // Currently used for testing but can be made public if needed: @@ -1727,7 +1727,7 @@ namespace ts { return ExitStatus.Success; } - function cleanResolutions(state: SolutionBuilderState, project?: string, onlyReferences?: boolean) { + function cleanPersistedProgram(state: SolutionBuilderState, project?: string, onlyReferences?: boolean) { const buildOrder = getBuildOrderFor(state, project, onlyReferences); if (!buildOrder) return ExitStatus.InvalidProject_OutputsSkipped; @@ -1742,7 +1742,7 @@ namespace ts { const resolvedPath = toResolvedConfigFilePath(state, proj); const parsed = parseConfigFile(state, proj, resolvedPath); if (parsed) { - diagnostics += cleanResolutionsOfTsBuildInfoAndReportError( + diagnostics += cleanPersistedProgramOfTsBuildInfoAndReportError( parsed.options, state.compilerHost, err => state.host.reportDiagnostic(err), @@ -1933,10 +1933,10 @@ namespace ts { return { build: (project, cancellationToken, writeFile, getCustomTransformers) => build(state, project, cancellationToken, writeFile, getCustomTransformers), clean: project => clean(state, project), - cleanResolutions: project => cleanResolutions(state, project), + cleanPersistedProgram: project => cleanPersistedProgram(state, project), buildReferences: (project, cancellationToken, writeFile, getCustomTransformers) => build(state, project, cancellationToken, writeFile, getCustomTransformers, /*onlyReferences*/ true), cleanReferences: project => clean(state, project, /*onlyReferences*/ true), - cleanResolutionsOfReferences: project => cleanResolutions(state, project, /*onlyReferences*/ true), + cleanPersistedProgramOfReferences: project => cleanPersistedProgram(state, project, /*onlyReferences*/ true), getNextInvalidatedProject: cancellationToken => { setupInitialBuild(state, cancellationToken); return getNextInvalidatedProject(state, getBuildOrder(state), /*reportQueue*/ false); diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 90067e0d91d39..3b5298a31417d 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -6105,7 +6105,7 @@ namespace ts { incremental?: boolean; tsBuildInfoFile?: string; persistResolutions?: string; - cleanResolutions?: boolean; + cleanPersistedProgram?: boolean; removeComments?: boolean; rootDir?: string; rootDirs?: string[]; diff --git a/src/compiler/watch.ts b/src/compiler/watch.ts index 2c1d5b9b12acf..0c3dee026a69e 100644 --- a/src/compiler/watch.ts +++ b/src/compiler/watch.ts @@ -392,17 +392,17 @@ namespace ts { return ExitStatus.Success; } - export interface CleanResolutionsOfTsBuildInfoAndReportErrorHost extends CleanResolutionsOfTsBuildInfoHost { + export interface CleanPersistedProgramOfTsBuildInfoAndReportErrorHost extends CleanPersistedProgramOfTsBuildInfoHost { getCurrentDirectory(): string; } - export function cleanResolutionsOfTsBuildInfoAndReportError( + export function cleanPersistedProgramOfTsBuildInfoAndReportError( options: CompilerOptions, - host: CleanResolutionsOfTsBuildInfoAndReportErrorHost, + host: CleanPersistedProgramOfTsBuildInfoAndReportErrorHost, reportDiagnostic: DiagnosticReporter, write?: (s: string) => void, reportSummary?: ReportEmitErrorSummary, ): number { - const { emittedFiles, diagnostics } = cleanResolutionsOfTsBuildInfo(options, host); + const { emittedFiles, diagnostics } = cleanPersistedProgramOfTsBuildInfo(options, host); diagnostics.forEach(reportDiagnostic); if (write) { const currentDir = host.getCurrentDirectory(); diff --git a/src/compiler/watchPublic.ts b/src/compiler/watchPublic.ts index cf18866584cce..0f15b473e4922 100644 --- a/src/compiler/watchPublic.ts +++ b/src/compiler/watchPublic.ts @@ -16,11 +16,11 @@ namespace ts { return createBuildProgramUsingProgramBuildInfo(buildInfo.program, buildInfoPath, host); } - export interface CleanResolutionsOfTsBuildInfoHost { + export interface CleanPersistedProgramOfTsBuildInfoHost { readFile(fileName: string): string | undefined; writeFile: WriteFileCallback; } - export function cleanResolutionsOfTsBuildInfo(compilerOptions: CompilerOptions, host: CleanResolutionsOfTsBuildInfoHost): EmitResult { + export function cleanPersistedProgramOfTsBuildInfo(compilerOptions: CompilerOptions, host: CleanPersistedProgramOfTsBuildInfoHost): EmitResult { if (outFileWithoutPersistResolutions(compilerOptions)) return emitSkippedWithNoDiagnostics; const buildInfoPath = getTsBuildInfoEmitOutputFilePath(compilerOptions); if (!buildInfoPath) return emitSkippedWithNoDiagnostics; diff --git a/src/executeCommandLine/executeCommandLine.ts b/src/executeCommandLine/executeCommandLine.ts index d597acd56518c..3f0a647524738 100644 --- a/src/executeCommandLine/executeCommandLine.ts +++ b/src/executeCommandLine/executeCommandLine.ts @@ -307,9 +307,9 @@ namespace ts { reportDiagnostic, configParseResult.options ); - if (commandLineOptions.cleanResolutions) { + if (commandLineOptions.cleanPersistedProgram) { configParseResult.errors.forEach(reportDiagnostic); - return cleanResolutions(sys, configParseResult.options, reportDiagnostic); + return cleanPersistedProgram(sys, configParseResult.options, reportDiagnostic); } if (isWatchSet(configParseResult.options)) { if (reportWatchModeWithoutSysSupport(sys, reportDiagnostic)) return; @@ -351,8 +351,8 @@ namespace ts { reportDiagnostic, commandLineOptions ); - if (commandLineOptions.cleanResolutions) { - return cleanResolutions(sys, commandLineOptions, reportDiagnostic); + if (commandLineOptions.cleanPersistedProgram) { + return cleanPersistedProgram(sys, commandLineOptions, reportDiagnostic); } if (isWatchSet(commandLineOptions)) { if (reportWatchModeWithoutSysSupport(sys, reportDiagnostic)) return; @@ -485,7 +485,7 @@ namespace ts { return sys.exit(ExitStatus.DiagnosticsPresent_OutputsSkipped); } - if (buildOptions.cleanResolutions) { + if (buildOptions.cleanPersistedProgram) { const buildHost = createSolutionBuilderHost( sys, /*createProgram*/ undefined, @@ -495,7 +495,7 @@ namespace ts { ); updateSolutionBuilderHost(sys, cb, buildHost); const builder = createSolutionBuilder(buildHost, projects, buildOptions); - return sys.exit(builder.cleanResolutions()); + return sys.exit(builder.cleanPersistedProgram()); } if (buildOptions.watch) { @@ -533,8 +533,8 @@ namespace ts { undefined; } - function cleanResolutions(sys: System, options: CompilerOptions, reportDiagnostic: DiagnosticReporter) { - const diagnostics = cleanResolutionsOfTsBuildInfoAndReportError( + function cleanPersistedProgram(sys: System, options: CompilerOptions, reportDiagnostic: DiagnosticReporter) { + const diagnostics = cleanPersistedProgramOfTsBuildInfoAndReportError( options, sys, reportDiagnostic, diff --git a/src/testRunner/unittests/tsbuild/persistResolutions.ts b/src/testRunner/unittests/tsbuild/persistResolutions.ts index 1b7778031c3fd..db6dc4fbffcd0 100644 --- a/src/testRunner/unittests/tsbuild/persistResolutions.ts +++ b/src/testRunner/unittests/tsbuild/persistResolutions.ts @@ -1,8 +1,8 @@ namespace ts { - export function verifyTscPersistsResolutions(input: "--p" | "--b", outFile?: string) { + describe("unittests:: tsbuild:: persistResolutions::", () => { verifyTscSerializedIncrementalEdits({ scenario: "persistResolutions", - subScenario: `saves resolution and uses it for new program${outFile ? " with outFile" : ""}`, + subScenario: `saves resolution and uses it for new program`, fs: () => loadProjectFromFiles({ "/src/project/src/main.ts": Utils.dedent` import { something } from "./filePresent"; @@ -14,12 +14,11 @@ namespace ts { composite: true, persistResolutions: true, traceResolution: true, - outFile }, include: ["src/**/*.ts"] }), }), - commandLineArgs: [input, "src/project"], + commandLineArgs: ["--b", "src/project"], incrementalScenarios: [ noChangeRun, { @@ -44,7 +43,7 @@ namespace ts { subScenario: "Clean resolutions", buildKind: BuildKind.IncrementalDtsChange, modifyFs: noop, - commandLineArgs: [input, "src/project", "--cleanResolutions"] + commandLineArgs: ["--b", "src/project", "--cleanPersistedProgram"] }, noChangeRun, { @@ -55,10 +54,61 @@ namespace ts { ], baselinePrograms: true, }); - } - describe("unittests:: tsbuild:: persistResolutions::", () => { - verifyTscPersistsResolutions("--b"); - verifyTscPersistsResolutions("--b", "outFile.js"); + verifyTscSerializedIncrementalEdits({ + scenario: "persistResolutions", + subScenario: `saves resolution and uses it for new program with outFile`, + fs: () => loadProjectFromFiles({ + "/src/project/src/main.ts": Utils.dedent` + import { something } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + "/src/project/src/filePresent.ts": `export function something() { return 10; }`, + "/src/project/tsconfig.json": JSON.stringify({ + compilerOptions: { + module: "amd", + composite: true, + persistResolutions: true, + traceResolution: true, + outFile: "outFile.js" + }, + include: ["src/**/*.ts"] + }), + }), + commandLineArgs: ["--b", "src/project"], + incrementalScenarios: [ + noChangeRun, + { + subScenario: "Modify main file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), + }, + { + subScenario: "Add new module and update main file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => { + fs.writeFileSync(`/src/project/src/newFile.ts`, "export function foo() { return 20; }"); + prependText(fs, `/src/project/src/main.ts`, `import { foo } from "./newFile";`); + }, + }, + { + subScenario: "Write file that could not be resolved", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.writeFileSync(`/src/project/src/fileNotFound.ts`, "export function something2() { return 20; }"), + }, + { + subScenario: "Clean resolutions", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: noop, + commandLineArgs: ["--b", "src/project", "--cleanPersistedProgram"] + }, + noChangeRun, + { + subScenario: "Modify main file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), + }, + ], + baselinePrograms: true, + }); }); } \ No newline at end of file diff --git a/src/testRunner/unittests/tsbuild/sample.ts b/src/testRunner/unittests/tsbuild/sample.ts index f9801e8e690dc..a3151b5e2de1e 100644 --- a/src/testRunner/unittests/tsbuild/sample.ts +++ b/src/testRunner/unittests/tsbuild/sample.ts @@ -530,7 +530,7 @@ class someClass2 { }`), subScenario: "Clean resolutions", buildKind: BuildKind.IncrementalDtsChange, modifyFs: noop, - commandLineArgs: ["--b", "/src/tests", "--cleanResolutions"], + commandLineArgs: ["--b", "/src/tests", "--cleanPersistedProgram"], }, { subScenario: "Modify core", diff --git a/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts b/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts index 1fbb7bb95b0da..83b2c4c69104e 100644 --- a/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts +++ b/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts @@ -88,7 +88,7 @@ namespace ts.tscWatch { sys.exit = exit; sys.clearOutput(); return sys; - }, + }, commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], changes: [ { @@ -147,7 +147,7 @@ namespace ts.tscWatch { sys.exit = noop; fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => { executeCommandLine(sys, noop, ["--b", "."]); - executeCommandLine(sys, noop, ["--b", ".", "--cleanResolutions"]); + executeCommandLine(sys, noop, ["--b", ".", "--cleanPersistedProgram"]); }); sys.exit = exit; sys.clearOutput(); @@ -329,7 +329,7 @@ namespace ts.tscWatch { sys.exit = noop; fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => { executeCommandLine(sys, noop, ["--b", "."]); - executeCommandLine(sys, noop, ["--b", ".", "--cleanResolutions"]); + executeCommandLine(sys, noop, ["--b", ".", "--cleanPersistedProgram"]); }); sys.exit = exit; sys.clearOutput(); @@ -361,4 +361,4 @@ namespace ts.tscWatch { ] }); }); -} +} \ No newline at end of file diff --git a/src/testRunner/unittests/tsc/persistResolutions.ts b/src/testRunner/unittests/tsc/persistResolutions.ts index f5e388be0157b..a0a592428be55 100644 --- a/src/testRunner/unittests/tsc/persistResolutions.ts +++ b/src/testRunner/unittests/tsc/persistResolutions.ts @@ -1,6 +1,114 @@ namespace ts { describe("unittests:: tsc:: persistResolutions::", () => { - verifyTscPersistsResolutions("--p"); - verifyTscPersistsResolutions("--p", "outFile.js"); + verifyTscSerializedIncrementalEdits({ + scenario: "persistResolutions", + subScenario: `saves resolution and uses it for new program`, + fs: () => loadProjectFromFiles({ + "/src/project/src/main.ts": Utils.dedent` + import { something } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + "/src/project/src/filePresent.ts": `export function something() { return 10; }`, + "/src/project/tsconfig.json": JSON.stringify({ + compilerOptions: { + module: "amd", + composite: true, + persistResolutions: true, + traceResolution: true, + }, + include: ["src/**/*.ts"] + }), + }), + commandLineArgs: ["--p", "src/project"], + incrementalScenarios: [ + noChangeRun, + { + subScenario: "Modify main file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), + }, + { + subScenario: "Add new module and update main file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => { + fs.writeFileSync(`/src/project/src/newFile.ts`, "export function foo() { return 20; }"); + prependText(fs, `/src/project/src/main.ts`, `import { foo } from "./newFile";`); + }, + }, + { + subScenario: "Write file that could not be resolved", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.writeFileSync(`/src/project/src/fileNotFound.ts`, "export function something2() { return 20; }"), + }, + { + subScenario: "Clean resolutions", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: noop, + commandLineArgs: ["--p", "src/project", "--cleanPersistedProgram"] + }, + noChangeRun, + { + subScenario: "Modify main file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), + }, + ], + baselinePrograms: true, + }); + + verifyTscSerializedIncrementalEdits({ + scenario: "persistResolutions", + subScenario: `saves resolution and uses it for new program with outFile`, + fs: () => loadProjectFromFiles({ + "/src/project/src/main.ts": Utils.dedent` + import { something } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + "/src/project/src/filePresent.ts": `export function something() { return 10; }`, + "/src/project/tsconfig.json": JSON.stringify({ + compilerOptions: { + module: "amd", + composite: true, + persistResolutions: true, + traceResolution: true, + outFile: "outFile.js" + }, + include: ["src/**/*.ts"] + }), + }), + commandLineArgs: ["--p", "src/project"], + incrementalScenarios: [ + noChangeRun, + { + subScenario: "Modify main file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), + }, + { + subScenario: "Add new module and update main file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => { + fs.writeFileSync(`/src/project/src/newFile.ts`, "export function foo() { return 20; }"); + prependText(fs, `/src/project/src/main.ts`, `import { foo } from "./newFile";`); + }, + }, + { + subScenario: "Write file that could not be resolved", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.writeFileSync(`/src/project/src/fileNotFound.ts`, "export function something2() { return 20; }"), + }, + { + subScenario: "Clean resolutions", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: noop, + commandLineArgs: ["--p", "src/project", "--cleanPersistedProgram"] + }, + noChangeRun, + { + subScenario: "Modify main file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), + }, + ], + baselinePrograms: true, + }); }); } \ No newline at end of file diff --git a/src/testRunner/unittests/tscWatch/persistResolutions.ts b/src/testRunner/unittests/tscWatch/persistResolutions.ts index 1658caa8bb6c1..ba14369cc16b0 100644 --- a/src/testRunner/unittests/tscWatch/persistResolutions.ts +++ b/src/testRunner/unittests/tscWatch/persistResolutions.ts @@ -147,7 +147,7 @@ namespace ts.tscWatch { sys.exit = noop; fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => { executeCommandLine(sys, noop, ["--p", "."]); - executeCommandLine(sys, noop, ["--p", ".", "--cleanResolutions"]); + executeCommandLine(sys, noop, ["--p", ".", "--cleanPersistedProgram"]); }); sys.exit = exit; sys.clearOutput(); @@ -329,7 +329,7 @@ namespace ts.tscWatch { sys.exit = noop; fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => { executeCommandLine(sys, noop, ["--p", "."]); - executeCommandLine(sys, noop, ["--p", ".", "--cleanResolutions"]); + executeCommandLine(sys, noop, ["--p", ".", "--cleanPersistedProgram"]); }); sys.exit = exit; sys.clearOutput(); diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 025ec6e904910..a2aa59547a6e0 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -2902,7 +2902,7 @@ declare namespace ts { incremental?: boolean; tsBuildInfoFile?: string; persistResolutions?: string; - cleanResolutions?: boolean; + cleanPersistedProgram?: boolean; removeComments?: boolean; rootDir?: string; rootDirs?: string[]; @@ -5091,11 +5091,11 @@ declare namespace ts { readFile(fileName: string): string | undefined; } function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost): EmitAndSemanticDiagnosticsBuilderProgram | undefined; - interface CleanResolutionsOfTsBuildInfoHost { + interface CleanPersistedProgramOfTsBuildInfoHost { readFile(fileName: string): string | undefined; writeFile: WriteFileCallback; } - function cleanResolutionsOfTsBuildInfo(compilerOptions: CompilerOptions, host: CleanResolutionsOfTsBuildInfoHost): EmitResult; + function cleanPersistedProgramOfTsBuildInfo(compilerOptions: CompilerOptions, host: CleanPersistedProgramOfTsBuildInfoHost): EmitResult; function createIncrementalCompilerHost(options: CompilerOptions, system?: System): CompilerHost; interface IncrementalProgramOptions { rootNames: readonly string[]; @@ -5262,10 +5262,10 @@ declare namespace ts { interface SolutionBuilder { build(project?: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers): ExitStatus; clean(project?: string): ExitStatus; - cleanResolutions(project?: string): ExitStatus; + cleanPersistedProgram(project?: string): ExitStatus; buildReferences(project: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers): ExitStatus; cleanReferences(project?: string): ExitStatus; - cleanResolutionsOfReferences(project?: string): ExitStatus; + cleanPersistedProgramOfReferences(project?: string): ExitStatus; getNextInvalidatedProject(cancellationToken?: CancellationToken): InvalidatedProject | undefined; } /** diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 859999f2f50d8..be12ae5cd4439 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -2902,7 +2902,7 @@ declare namespace ts { incremental?: boolean; tsBuildInfoFile?: string; persistResolutions?: string; - cleanResolutions?: boolean; + cleanPersistedProgram?: boolean; removeComments?: boolean; rootDir?: string; rootDirs?: string[]; @@ -5091,11 +5091,11 @@ declare namespace ts { readFile(fileName: string): string | undefined; } function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost): EmitAndSemanticDiagnosticsBuilderProgram | undefined; - interface CleanResolutionsOfTsBuildInfoHost { + interface CleanPersistedProgramOfTsBuildInfoHost { readFile(fileName: string): string | undefined; writeFile: WriteFileCallback; } - function cleanResolutionsOfTsBuildInfo(compilerOptions: CompilerOptions, host: CleanResolutionsOfTsBuildInfoHost): EmitResult; + function cleanPersistedProgramOfTsBuildInfo(compilerOptions: CompilerOptions, host: CleanPersistedProgramOfTsBuildInfoHost): EmitResult; function createIncrementalCompilerHost(options: CompilerOptions, system?: System): CompilerHost; interface IncrementalProgramOptions { rootNames: readonly string[]; @@ -5262,10 +5262,10 @@ declare namespace ts { interface SolutionBuilder { build(project?: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers): ExitStatus; clean(project?: string): ExitStatus; - cleanResolutions(project?: string): ExitStatus; + cleanPersistedProgram(project?: string): ExitStatus; buildReferences(project: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers): ExitStatus; cleanReferences(project?: string): ExitStatus; - cleanResolutionsOfReferences(project?: string): ExitStatus; + cleanPersistedProgramOfReferences(project?: string): ExitStatus; getNextInvalidatedProject(cancellationToken?: CancellationToken): InvalidatedProject | undefined; } /** diff --git a/tests/baselines/reference/showConfig/Shows tsconfig for single option/cleanPersistedProgram/tsconfig.json b/tests/baselines/reference/showConfig/Shows tsconfig for single option/cleanPersistedProgram/tsconfig.json new file mode 100644 index 0000000000000..0dcda5561a51b --- /dev/null +++ b/tests/baselines/reference/showConfig/Shows tsconfig for single option/cleanPersistedProgram/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "cleanPersistedProgram": true + } +} diff --git a/tests/baselines/reference/showConfig/Shows tsconfig for single option/cleanResolutions/tsconfig.json b/tests/baselines/reference/showConfig/Shows tsconfig for single option/cleanResolutions/tsconfig.json deleted file mode 100644 index 010b324604740..0000000000000 --- a/tests/baselines/reference/showConfig/Shows tsconfig for single option/cleanResolutions/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "compilerOptions": { - "cleanResolutions": true - } -} diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index e8d20e7a22858..7532d0b78b628 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -553,7 +553,7 @@ Input:: Output:: -/lib/tsc --b src/project --cleanResolutions +/lib/tsc --b src/project --cleanPersistedProgram exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index d732cf546415f..63f8e641231fe 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -604,7 +604,7 @@ Input:: Output:: -/lib/tsc --b src/project --cleanResolutions +/lib/tsc --b src/project --cleanPersistedProgram exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js index 0d54bcf3a9e2a..4f4a316e3952c 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js @@ -798,7 +798,7 @@ Input:: Output:: -/lib/tsc --b /src/tests --cleanResolutions +/lib/tsc --b /src/tests --cleanPersistedProgram exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 20f71c0d8a9de..e76c3acff87ed 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -802,7 +802,7 @@ Input:: Output:: -/lib/tsc --p src/project --cleanResolutions +/lib/tsc --p src/project --cleanPersistedProgram exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 7888fc8c588d0..42d4d0fbe886d 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -582,7 +582,7 @@ Input:: Output:: -/lib/tsc --p src/project --cleanResolutions +/lib/tsc --p src/project --cleanPersistedProgram exitCode:: ExitStatus.Success From cfc5f935e38ef9eac25a57e9c06db8b7b9dd1942 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 21 Oct 2020 12:29:02 -0700 Subject: [PATCH 20/48] Add tests where resolutions are reused which is much more common scenario --- .../unittests/tsbuild/persistResolutions.ts | 39 +- .../tsbuildWatch/persistResolutions.ts | 218 ++-------- .../unittests/tsc/persistResolutions.ts | 39 +- .../unittests/tscWatch/persistResolutions.ts | 216 ++------- ...nd-uses-it-for-new-program-with-outFile.js | 335 +++++++++----- ...-resolution-and-uses-it-for-new-program.js | 340 ++++++++++++--- ...er-resolutions-are-cleaned-with-outFile.js | 231 +++++++--- ...can-build-after-resolutions-are-cleaned.js | 256 ++++++++--- ...-saved-in-tsbuildinfo-file-with-outFile.js | 231 +++++++--- ...ons-have-been-saved-in-tsbuildinfo-file.js | 256 ++++++++--- ...nd-uses-it-for-new-program-with-outFile.js | 242 ++++++++--- ...-resolution-and-uses-it-for-new-program.js | 291 ++++++++++--- ...nd-uses-it-for-new-program-with-outFile.js | 410 +++++++++++++----- ...-resolution-and-uses-it-for-new-program.js | 349 +++++++++++---- ...er-resolutions-are-cleaned-with-outFile.js | 295 +++++++++---- ...can-build-after-resolutions-are-cleaned.js | 246 ++++++++--- ...-saved-in-tsbuildinfo-file-with-outFile.js | 295 +++++++++---- ...ons-have-been-saved-in-tsbuildinfo-file.js | 246 ++++++++--- ...nd-uses-it-for-new-program-with-outFile.js | 295 +++++++++---- ...-resolution-and-uses-it-for-new-program.js | 277 +++++++++--- 20 files changed, 3606 insertions(+), 1501 deletions(-) diff --git a/src/testRunner/unittests/tsbuild/persistResolutions.ts b/src/testRunner/unittests/tsbuild/persistResolutions.ts index db6dc4fbffcd0..7b609f8065d74 100644 --- a/src/testRunner/unittests/tsbuild/persistResolutions.ts +++ b/src/testRunner/unittests/tsbuild/persistResolutions.ts @@ -1,12 +1,14 @@ namespace ts { describe("unittests:: tsbuild:: persistResolutions::", () => { - verifyTscSerializedIncrementalEdits({ - scenario: "persistResolutions", - subScenario: `saves resolution and uses it for new program`, - fs: () => loadProjectFromFiles({ + function getFs(outFile?: string) { + return loadProjectFromFiles({ "/src/project/src/main.ts": Utils.dedent` - import { something } from "./filePresent"; - import { something2 } from "./fileNotFound";`, + import { something } from "./filePresent"; + import { something as something1 } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + "/src/project/src/anotherFileReusingResolution.ts": Utils.dedent` + import { something } from "./filePresent"; + import { something2 } from "./fileNotFound";`, "/src/project/src/filePresent.ts": `export function something() { return 10; }`, "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { @@ -14,10 +16,16 @@ namespace ts { composite: true, persistResolutions: true, traceResolution: true, + outFile }, include: ["src/**/*.ts"] }), - }), + }); + } + verifyTscSerializedIncrementalEdits({ + scenario: "persistResolutions", + subScenario: `saves resolution and uses it for new program`, + fs: getFs, commandLineArgs: ["--b", "src/project"], incrementalScenarios: [ noChangeRun, @@ -58,22 +66,7 @@ namespace ts { verifyTscSerializedIncrementalEdits({ scenario: "persistResolutions", subScenario: `saves resolution and uses it for new program with outFile`, - fs: () => loadProjectFromFiles({ - "/src/project/src/main.ts": Utils.dedent` - import { something } from "./filePresent"; - import { something2 } from "./fileNotFound";`, - "/src/project/src/filePresent.ts": `export function something() { return 10; }`, - "/src/project/tsconfig.json": JSON.stringify({ - compilerOptions: { - module: "amd", - composite: true, - persistResolutions: true, - traceResolution: true, - outFile: "outFile.js" - }, - include: ["src/**/*.ts"] - }), - }), + fs: () => getFs("outFile.js"), commandLineArgs: ["--b", "src/project"], incrementalScenarios: [ noChangeRun, diff --git a/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts b/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts index 83b2c4c69104e..10a0b1182bb5b 100644 --- a/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts +++ b/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts @@ -1,11 +1,16 @@ namespace ts.tscWatch { - describe("unittests:: tsbuildWatch:: watchMode:: persistentResolutions", () => { - verifyTscWatch({ - scenario: "persistResolutions", - subScenario: "saves resolution and uses it for new program", - sys: () => createWatchedSystem([ + describe("unittests:: tsbuildWatch:: watchMode:: persistResolutions", () => { + function getSys(outFile?: string) { + return createWatchedSystem([ { path: `${projectRoot}/src/main.ts`, + content: Utils.dedent` + import { something } from "./filePresent"; + import { something as something1 } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + }, + { + path: `${projectRoot}/src/anotherFileReusingResolution.ts`, content: Utils.dedent` import { something } from "./filePresent"; import { something2 } from "./fileNotFound";`, @@ -22,12 +27,42 @@ namespace ts.tscWatch { composite: true, persistResolutions: true, traceResolution: true, + outFile }, include: ["src/**/*.ts"] }), }, libFile - ], { currentDirectory: projectRoot }), + ], { currentDirectory: projectRoot }); + } + + function getSysWithSavedResolutions(outFile?: string) { + const sys = getSys(outFile); + const exit = sys.exit; + sys.exit = noop; + fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => executeCommandLine(sys, noop, ["--b", "."])); + sys.exit = exit; + sys.clearOutput(); + return sys; + } + + function getSysWithClearedResolutions(outFile?: string) { + const sys = getSys(outFile); + const exit = sys.exit; + sys.exit = noop; + fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => { + executeCommandLine(sys, noop, ["--b", "."]); + executeCommandLine(sys, noop, ["--b", ".", "--cleanPersistedProgram"]); + }); + sys.exit = exit; + sys.clearOutput(); + return sys; + } + + verifyTscWatch({ + scenario: "persistResolutions", + subScenario: "saves resolution and uses it for new program", + sys: getSys, commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], changes: [ { @@ -56,39 +91,7 @@ namespace ts.tscWatch { verifyTscWatch({ scenario: "persistResolutions", subScenario: "can build after resolutions have been saved in tsbuildinfo file", - sys: () => { - const sys = createWatchedSystem([ - { - path: `${projectRoot}/src/main.ts`, - content: Utils.dedent` - import { something } from "./filePresent"; - import { something2 } from "./fileNotFound";`, - }, - { - path: `${projectRoot}/src/filePresent.ts`, - content: `export function something() { return 10; }`, - }, - { - path: `${projectRoot}/tsconfig.json`, - content: JSON.stringify({ - compilerOptions: { - module: "amd", - composite: true, - persistResolutions: true, - traceResolution: true, - }, - include: ["src/**/*.ts"] - }), - }, - libFile - ], { currentDirectory: projectRoot }); - const exit = sys.exit; - sys.exit = noop; - fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => executeCommandLine(sys, noop, ["--b", "."])); - sys.exit = exit; - sys.clearOutput(); - return sys; - }, + sys: getSysWithSavedResolutions, commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], changes: [ { @@ -117,42 +120,7 @@ namespace ts.tscWatch { verifyTscWatch({ scenario: "persistResolutions", subScenario: "can build after resolutions are cleaned", - sys: () => { - const sys = createWatchedSystem([ - { - path: `${projectRoot}/src/main.ts`, - content: Utils.dedent` - import { something } from "./filePresent"; - import { something2 } from "./fileNotFound";`, - }, - { - path: `${projectRoot}/src/filePresent.ts`, - content: `export function something() { return 10; }`, - }, - { - path: `${projectRoot}/tsconfig.json`, - content: JSON.stringify({ - compilerOptions: { - module: "amd", - composite: true, - persistResolutions: true, - traceResolution: true, - }, - include: ["src/**/*.ts"] - }), - }, - libFile - ], { currentDirectory: projectRoot }); - const exit = sys.exit; - sys.exit = noop; - fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => { - executeCommandLine(sys, noop, ["--b", "."]); - executeCommandLine(sys, noop, ["--b", ".", "--cleanPersistedProgram"]); - }); - sys.exit = exit; - sys.clearOutput(); - return sys; - }, + sys: getSysWithClearedResolutions, commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], changes: [ { @@ -182,32 +150,7 @@ namespace ts.tscWatch { verifyTscWatch({ scenario: "persistResolutions", subScenario: "saves resolution and uses it for new program with outFile", - sys: () => createWatchedSystem([ - { - path: `${projectRoot}/src/main.ts`, - content: Utils.dedent` - import { something } from "./filePresent"; - import { something2 } from "./fileNotFound";`, - }, - { - path: `${projectRoot}/src/filePresent.ts`, - content: `export function something() { return 10; }`, - }, - { - path: `${projectRoot}/tsconfig.json`, - content: JSON.stringify({ - compilerOptions: { - module: "amd", - composite: true, - persistResolutions: true, - traceResolution: true, - outFile: "outFile.js" - }, - include: ["src/**/*.ts"] - }), - }, - libFile - ], { currentDirectory: projectRoot }), + sys: () => getSys("outFile.js"), commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], changes: [ { @@ -236,40 +179,7 @@ namespace ts.tscWatch { verifyTscWatch({ scenario: "persistResolutions", subScenario: "can build after resolutions have been saved in tsbuildinfo file with outFile", - sys: () => { - const sys = createWatchedSystem([ - { - path: `${projectRoot}/src/main.ts`, - content: Utils.dedent` - import { something } from "./filePresent"; - import { something2 } from "./fileNotFound";`, - }, - { - path: `${projectRoot}/src/filePresent.ts`, - content: `export function something() { return 10; }`, - }, - { - path: `${projectRoot}/tsconfig.json`, - content: JSON.stringify({ - compilerOptions: { - module: "amd", - composite: true, - persistResolutions: true, - traceResolution: true, - outFile: "outFile.js" - }, - include: ["src/**/*.ts"] - }), - }, - libFile - ], { currentDirectory: projectRoot }); - const exit = sys.exit; - sys.exit = noop; - fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => executeCommandLine(sys, noop, ["--b", "."])); - sys.exit = exit; - sys.clearOutput(); - return sys; - }, + sys: () => getSysWithSavedResolutions("outFile.js"), commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], changes: [ { @@ -298,43 +208,7 @@ namespace ts.tscWatch { verifyTscWatch({ scenario: "persistResolutions", subScenario: "can build after resolutions are cleaned with outFile", - sys: () => { - const sys = createWatchedSystem([ - { - path: `${projectRoot}/src/main.ts`, - content: Utils.dedent` - import { something } from "./filePresent"; - import { something2 } from "./fileNotFound";`, - }, - { - path: `${projectRoot}/src/filePresent.ts`, - content: `export function something() { return 10; }`, - }, - { - path: `${projectRoot}/tsconfig.json`, - content: JSON.stringify({ - compilerOptions: { - module: "amd", - composite: true, - persistResolutions: true, - traceResolution: true, - outFile: "outFile.js" - }, - include: ["src/**/*.ts"] - }), - }, - libFile - ], { currentDirectory: projectRoot }); - const exit = sys.exit; - sys.exit = noop; - fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => { - executeCommandLine(sys, noop, ["--b", "."]); - executeCommandLine(sys, noop, ["--b", ".", "--cleanPersistedProgram"]); - }); - sys.exit = exit; - sys.clearOutput(); - return sys; - }, + sys: () => getSysWithClearedResolutions("outFile.js"), commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], changes: [ { diff --git a/src/testRunner/unittests/tsc/persistResolutions.ts b/src/testRunner/unittests/tsc/persistResolutions.ts index a0a592428be55..621e9e3ebcd2c 100644 --- a/src/testRunner/unittests/tsc/persistResolutions.ts +++ b/src/testRunner/unittests/tsc/persistResolutions.ts @@ -1,12 +1,14 @@ namespace ts { describe("unittests:: tsc:: persistResolutions::", () => { - verifyTscSerializedIncrementalEdits({ - scenario: "persistResolutions", - subScenario: `saves resolution and uses it for new program`, - fs: () => loadProjectFromFiles({ + function getFs(outFile?: string) { + return loadProjectFromFiles({ "/src/project/src/main.ts": Utils.dedent` - import { something } from "./filePresent"; - import { something2 } from "./fileNotFound";`, + import { something } from "./filePresent"; + import { something as something1 } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + "/src/project/src/anotherFileReusingResolution.ts": Utils.dedent` + import { something } from "./filePresent"; + import { something2 } from "./fileNotFound";`, "/src/project/src/filePresent.ts": `export function something() { return 10; }`, "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { @@ -14,10 +16,16 @@ namespace ts { composite: true, persistResolutions: true, traceResolution: true, + outFile }, include: ["src/**/*.ts"] }), - }), + }); + } + verifyTscSerializedIncrementalEdits({ + scenario: "persistResolutions", + subScenario: `saves resolution and uses it for new program`, + fs: getFs, commandLineArgs: ["--p", "src/project"], incrementalScenarios: [ noChangeRun, @@ -58,22 +66,7 @@ namespace ts { verifyTscSerializedIncrementalEdits({ scenario: "persistResolutions", subScenario: `saves resolution and uses it for new program with outFile`, - fs: () => loadProjectFromFiles({ - "/src/project/src/main.ts": Utils.dedent` - import { something } from "./filePresent"; - import { something2 } from "./fileNotFound";`, - "/src/project/src/filePresent.ts": `export function something() { return 10; }`, - "/src/project/tsconfig.json": JSON.stringify({ - compilerOptions: { - module: "amd", - composite: true, - persistResolutions: true, - traceResolution: true, - outFile: "outFile.js" - }, - include: ["src/**/*.ts"] - }), - }), + fs: () => getFs("outFile.js"), commandLineArgs: ["--p", "src/project"], incrementalScenarios: [ noChangeRun, diff --git a/src/testRunner/unittests/tscWatch/persistResolutions.ts b/src/testRunner/unittests/tscWatch/persistResolutions.ts index ba14369cc16b0..843bb67cb9dde 100644 --- a/src/testRunner/unittests/tscWatch/persistResolutions.ts +++ b/src/testRunner/unittests/tscWatch/persistResolutions.ts @@ -1,11 +1,16 @@ namespace ts.tscWatch { describe("unittests:: tsc-watch:: persistResolutions", () => { - verifyTscWatch({ - scenario: "persistResolutions", - subScenario: "saves resolution and uses it for new program", - sys: () => createWatchedSystem([ + function getSys(outFile?: string) { + return createWatchedSystem([ { path: `${projectRoot}/src/main.ts`, + content: Utils.dedent` + import { something } from "./filePresent"; + import { something as something1 } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + }, + { + path: `${projectRoot}/src/anotherFileReusingResolution.ts`, content: Utils.dedent` import { something } from "./filePresent"; import { something2 } from "./fileNotFound";`, @@ -22,12 +27,42 @@ namespace ts.tscWatch { composite: true, persistResolutions: true, traceResolution: true, + outFile }, include: ["src/**/*.ts"] }), }, libFile - ], { currentDirectory: projectRoot }), + ], { currentDirectory: projectRoot }); + } + + function getSysWithSavedResolutions(outFile?: string) { + const sys = getSys(outFile); + const exit = sys.exit; + sys.exit = noop; + fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => executeCommandLine(sys, noop, ["--p", "."])); + sys.exit = exit; + sys.clearOutput(); + return sys; + } + + function getSysWithClearedResolutions(outFile?: string) { + const sys = getSys(outFile); + const exit = sys.exit; + sys.exit = noop; + fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => { + executeCommandLine(sys, noop, ["--p", "."]); + executeCommandLine(sys, noop, ["--p", ".", "--cleanPersistedProgram"]); + }); + sys.exit = exit; + sys.clearOutput(); + return sys; + } + + verifyTscWatch({ + scenario: "persistResolutions", + subScenario: "saves resolution and uses it for new program", + sys: getSys, commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], changes: [ { @@ -56,39 +91,7 @@ namespace ts.tscWatch { verifyTscWatch({ scenario: "persistResolutions", subScenario: "can build after resolutions have been saved in tsbuildinfo file", - sys: () => { - const sys = createWatchedSystem([ - { - path: `${projectRoot}/src/main.ts`, - content: Utils.dedent` - import { something } from "./filePresent"; - import { something2 } from "./fileNotFound";`, - }, - { - path: `${projectRoot}/src/filePresent.ts`, - content: `export function something() { return 10; }`, - }, - { - path: `${projectRoot}/tsconfig.json`, - content: JSON.stringify({ - compilerOptions: { - module: "amd", - composite: true, - persistResolutions: true, - traceResolution: true, - }, - include: ["src/**/*.ts"] - }), - }, - libFile - ], { currentDirectory: projectRoot }); - const exit = sys.exit; - sys.exit = noop; - fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => executeCommandLine(sys, noop, ["--p", "."])); - sys.exit = exit; - sys.clearOutput(); - return sys; - }, + sys: getSysWithSavedResolutions, commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], changes: [ { @@ -117,42 +120,7 @@ namespace ts.tscWatch { verifyTscWatch({ scenario: "persistResolutions", subScenario: "can build after resolutions are cleaned", - sys: () => { - const sys = createWatchedSystem([ - { - path: `${projectRoot}/src/main.ts`, - content: Utils.dedent` - import { something } from "./filePresent"; - import { something2 } from "./fileNotFound";`, - }, - { - path: `${projectRoot}/src/filePresent.ts`, - content: `export function something() { return 10; }`, - }, - { - path: `${projectRoot}/tsconfig.json`, - content: JSON.stringify({ - compilerOptions: { - module: "amd", - composite: true, - persistResolutions: true, - traceResolution: true, - }, - include: ["src/**/*.ts"] - }), - }, - libFile - ], { currentDirectory: projectRoot }); - const exit = sys.exit; - sys.exit = noop; - fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => { - executeCommandLine(sys, noop, ["--p", "."]); - executeCommandLine(sys, noop, ["--p", ".", "--cleanPersistedProgram"]); - }); - sys.exit = exit; - sys.clearOutput(); - return sys; - }, + sys: getSysWithClearedResolutions, commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], changes: [ { @@ -182,32 +150,7 @@ namespace ts.tscWatch { verifyTscWatch({ scenario: "persistResolutions", subScenario: "saves resolution and uses it for new program with outFile", - sys: () => createWatchedSystem([ - { - path: `${projectRoot}/src/main.ts`, - content: Utils.dedent` - import { something } from "./filePresent"; - import { something2 } from "./fileNotFound";`, - }, - { - path: `${projectRoot}/src/filePresent.ts`, - content: `export function something() { return 10; }`, - }, - { - path: `${projectRoot}/tsconfig.json`, - content: JSON.stringify({ - compilerOptions: { - module: "amd", - composite: true, - persistResolutions: true, - traceResolution: true, - outFile: "outFile.js" - }, - include: ["src/**/*.ts"] - }), - }, - libFile - ], { currentDirectory: projectRoot }), + sys: () => getSys("outFile.js"), commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], changes: [ { @@ -236,40 +179,7 @@ namespace ts.tscWatch { verifyTscWatch({ scenario: "persistResolutions", subScenario: "can build after resolutions have been saved in tsbuildinfo file with outFile", - sys: () => { - const sys = createWatchedSystem([ - { - path: `${projectRoot}/src/main.ts`, - content: Utils.dedent` - import { something } from "./filePresent"; - import { something2 } from "./fileNotFound";`, - }, - { - path: `${projectRoot}/src/filePresent.ts`, - content: `export function something() { return 10; }`, - }, - { - path: `${projectRoot}/tsconfig.json`, - content: JSON.stringify({ - compilerOptions: { - module: "amd", - composite: true, - persistResolutions: true, - traceResolution: true, - outFile: "outFile.js" - }, - include: ["src/**/*.ts"] - }), - }, - libFile - ], { currentDirectory: projectRoot }); - const exit = sys.exit; - sys.exit = noop; - fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => executeCommandLine(sys, noop, ["--p", "."])); - sys.exit = exit; - sys.clearOutput(); - return sys; - }, + sys: () => getSysWithSavedResolutions("outFile.js"), commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], changes: [ { @@ -298,43 +208,7 @@ namespace ts.tscWatch { verifyTscWatch({ scenario: "persistResolutions", subScenario: "can build after resolutions are cleaned with outFile", - sys: () => { - const sys = createWatchedSystem([ - { - path: `${projectRoot}/src/main.ts`, - content: Utils.dedent` - import { something } from "./filePresent"; - import { something2 } from "./fileNotFound";`, - }, - { - path: `${projectRoot}/src/filePresent.ts`, - content: `export function something() { return 10; }`, - }, - { - path: `${projectRoot}/tsconfig.json`, - content: JSON.stringify({ - compilerOptions: { - module: "amd", - composite: true, - persistResolutions: true, - traceResolution: true, - outFile: "outFile.js" - }, - include: ["src/**/*.ts"] - }), - }, - libFile - ], { currentDirectory: projectRoot }); - const exit = sys.exit; - sys.exit = noop; - fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => { - executeCommandLine(sys, noop, ["--p", "."]); - executeCommandLine(sys, noop, ["--p", ".", "--cleanPersistedProgram"]); - }); - sys.exit = exit; - sys.clearOutput(); - return sys; - }, + sys: () => getSysWithClearedResolutions("outFile.js"), commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], changes: [ { diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 7532d0b78b628..e92db2d934a63 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -14,11 +14,16 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; +//// [/src/project/src/anotherFileReusingResolution.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + //// [/src/project/src/filePresent.ts] export function something() { return 10; } //// [/src/project/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; //// [/src/project/tsconfig.json] @@ -28,11 +33,11 @@ import { something2 } from "./fileNotFound"; Output:: /lib/tsc --b src/project -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. File '/src/project/src/fileNotFound.tsx' does not exist. @@ -40,28 +45,40 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + -Found 1 error. +Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/main.ts No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -69,6 +86,7 @@ No cached semantic diagnostics in the builder:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -84,8 +102,11 @@ No cached semantic diagnostics in the builder:: "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/main.ts": { + "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } }, "options": { @@ -94,6 +115,9 @@ No cached semantic diagnostics in the builder:: "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -101,7 +125,7 @@ No cached semantic diagnostics in the builder:: "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 982 + "size": 1225 } @@ -112,11 +136,11 @@ Input:: Output:: /lib/tsc --b src/project -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. File '/src/project/src/fileNotFound.tsx' does not exist. @@ -124,21 +148,33 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + -Found 1 error. +Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/main.ts No cached semantic diagnostics in the builder:: @@ -150,17 +186,18 @@ Change:: Modify main file Input:: //// [/src/project/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); Output:: /lib/tsc --b src/project -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. File '/src/project/src/fileNotFound.tsx' does not exist. @@ -168,28 +205,40 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -Found 1 error. +Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/main.ts No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -197,6 +246,7 @@ No cached semantic diagnostics in the builder:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -212,8 +262,11 @@ No cached semantic diagnostics in the builder:: "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/main.ts": { - "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -222,6 +275,9 @@ No cached semantic diagnostics in the builder:: "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -229,7 +285,7 @@ No cached semantic diagnostics in the builder:: "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 994 + "size": 1238 } @@ -238,6 +294,7 @@ Change:: Add new module and update main file Input:: //// [/src/project/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); //// [/src/project/src/newFile.ts] @@ -247,15 +304,11 @@ export function foo() { return 20; } Output:: /lib/tsc --b src/project -======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. File '/src/project/src/fileNotFound.tsx' does not exist. @@ -263,21 +316,37 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -Found 1 error. +Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -285,7 +354,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -293,10 +362,14 @@ No cached semantic diagnostics in the builder:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -310,11 +383,14 @@ No cached semantic diagnostics in the builder:: "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -323,6 +399,9 @@ No cached semantic diagnostics in the builder:: "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -331,7 +410,7 @@ No cached semantic diagnostics in the builder:: "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1128 + "size": 1376 } @@ -345,26 +424,33 @@ export function something2() { return 20; } Output:: /lib/tsc --b src/project +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== ======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +Resolution for module './filePresent' was found in cache from location '/src/project/src'. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts -/src/project/src/fileNotFound.ts /src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -372,12 +458,13 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.d.ts] -declare module "src/fileNotFound" { - export function something2(): number; -} declare module "src/filePresent" { export function something(): number; } +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } @@ -385,6 +472,13 @@ declare module "src/main" { } //// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -392,12 +486,9 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); -define("src/filePresent", ["require", "exports"], function (require, exports) { +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; }); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; @@ -414,13 +505,20 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":914,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":266,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-914) +text: (0-1068) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -428,12 +526,9 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); -define("src/filePresent", ["require", "exports"], function (require, exports) { +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; }); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; @@ -452,13 +547,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-266) -declare module "src/fileNotFound" { - export function something2(): number; -} +text: (0-321) declare module "src/filePresent" { export function something(): number; } +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } @@ -471,8 +567,9 @@ declare module "src/main" { } "bundle": { "commonSourceDirectory": "./", "sourceFiles": [ - "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -480,7 +577,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 914, + "end": 1068, "kind": "text" } ] @@ -489,7 +586,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 266, + "end": 321, "kind": "text" } ] @@ -498,15 +595,20 @@ declare module "src/main" { } "program": { "fileNames": [ "../../lib/lib.d.ts", - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -515,17 +617,20 @@ declare module "src/main" { } "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }" + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -534,16 +639,20 @@ declare module "src/main" { } "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts" + ], "./src/main.ts": [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1488 + "size": 1779 } @@ -575,32 +684,40 @@ Change:: Modify main file Input:: //// [/src/project/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something();something(); Output:: /lib/tsc --b src/project +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== ======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +Resolution for module './filePresent' was found in cache from location '/src/project/src'. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts -/src/project/src/fileNotFound.ts /src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -609,6 +726,13 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.d.ts] file written with same contents //// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -616,12 +740,9 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); -define("src/filePresent", ["require", "exports"], function (require, exports) { +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; }); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; @@ -639,13 +760,20 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":946,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":266,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"992573078-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1100,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-946) +text: (0-1100) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -653,12 +781,9 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); -define("src/filePresent", ["require", "exports"], function (require, exports) { +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; }); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; @@ -678,13 +803,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-266) -declare module "src/fileNotFound" { - export function something2(): number; -} +text: (0-321) declare module "src/filePresent" { export function something(): number; } +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } @@ -697,8 +823,9 @@ declare module "src/main" { } "bundle": { "commonSourceDirectory": "./", "sourceFiles": [ - "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -706,7 +833,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 946, + "end": 1100, "kind": "text" } ] @@ -715,7 +842,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 266, + "end": 321, "kind": "text" } ] @@ -724,15 +851,20 @@ declare module "src/main" { } "program": { "fileNames": [ "../../lib/lib.d.ts", - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -741,17 +873,20 @@ declare module "src/main" { } "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }" + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "992573078-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();" + "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();" } }, "options": { @@ -760,15 +895,19 @@ declare module "src/main" { } "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts" + ], "./src/main.ts": [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1498 + "size": 1791 } diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 63f8e641231fe..f651956cc348e 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -14,11 +14,16 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; +//// [/src/project/src/anotherFileReusingResolution.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + //// [/src/project/src/filePresent.ts] export function something() { return 10; } //// [/src/project/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; //// [/src/project/tsconfig.json] @@ -28,11 +33,11 @@ import { something2 } from "./fileNotFound"; Output:: /lib/tsc --b src/project -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. File '/src/project/src/fileNotFound.tsx' does not exist. @@ -40,31 +45,44 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + -Found 1 error. +Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/main.ts //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[2,1],[3,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -72,6 +90,7 @@ Semantic diagnostics in builder refreshed for:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -89,9 +108,13 @@ Semantic diagnostics in builder refreshed for:: "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, - "./src/main.ts": { + "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } }, "options": { @@ -99,24 +122,43 @@ Semantic diagnostics in builder refreshed for:: "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filepresent.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 70, + "start": 127, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -126,6 +168,10 @@ Semantic diagnostics in builder refreshed for:: ] ], "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -137,7 +183,7 @@ Semantic diagnostics in builder refreshed for:: ] }, "version": "FakeTSVersion", - "size": 1194 + "size": 1678 } @@ -148,11 +194,11 @@ Input:: Output:: /lib/tsc --b src/project -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. File '/src/project/src/fileNotFound.tsx' does not exist. @@ -160,21 +206,33 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + -Found 1 error. +Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -186,17 +244,18 @@ Change:: Modify main file Input:: //// [/src/project/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); Output:: /lib/tsc --b src/project -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. File '/src/project/src/fileNotFound.tsx' does not exist. @@ -204,21 +263,33 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -Found 1 error. +Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -226,7 +297,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[2,1],[3,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -234,6 +305,7 @@ Semantic diagnostics in builder refreshed for:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -251,8 +323,12 @@ Semantic diagnostics in builder refreshed for:: "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/main.ts": { - "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-4882119183-export {};\r\n" } }, @@ -261,20 +337,40 @@ Semantic diagnostics in builder refreshed for:: "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filepresent.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 70, + "start": 127, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -284,6 +380,10 @@ Semantic diagnostics in builder refreshed for:: ] ], "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -295,7 +395,7 @@ Semantic diagnostics in builder refreshed for:: ] }, "version": "FakeTSVersion", - "size": 1254 + "size": 1738 } @@ -304,6 +404,7 @@ Change:: Add new module and update main file Input:: //// [/src/project/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); //// [/src/project/src/newFile.ts] @@ -313,15 +414,11 @@ export function foo() { return 20; } Output:: /lib/tsc --b src/project -======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. File '/src/project/src/fileNotFound.tsx' does not exist. @@ -329,21 +426,37 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -Found 1 error. +Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -353,7 +466,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3],"affectedFilesPendingEmit":[[2,1],[4,1],[3,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -361,10 +474,14 @@ Semantic diagnostics in builder refreshed for:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -380,12 +497,16 @@ Semantic diagnostics in builder refreshed for:: "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-3405156953-export declare function foo(): number;\r\n" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-4882119183-export {};\r\n" } }, @@ -394,21 +515,41 @@ Semantic diagnostics in builder refreshed for:: "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filepresent.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 102, + "start": 159, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -419,6 +560,10 @@ Semantic diagnostics in builder refreshed for:: "./src/newfile.ts" ], "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -434,7 +579,7 @@ Semantic diagnostics in builder refreshed for:: ] }, "version": "FakeTSVersion", - "size": 1448 + "size": 1935 } @@ -448,34 +593,53 @@ export function something2() { return 20; } Output:: /lib/tsc --b src/project +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== ======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +Resolution for module './filePresent' was found in cache from location '/src/project/src'. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts -/src/project/src/fileNotFound.ts /src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/newFile.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: /src/project/src/fileNotFound.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/main.ts +//// [/src/project/src/anotherFileReusingResolution.d.ts] +export {}; + + +//// [/src/project/src/anotherFileReusingResolution.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + //// [/src/project/src/fileNotFound.d.ts] export declare function something2(): number; @@ -531,22 +695,27 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,5,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../lib/lib.d.ts", - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -556,20 +725,24 @@ define(["require", "exports"], function (require, exports) { "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", "signature": "-13705775197-export declare function something2(): number;\r\n" }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-3405156953-export declare function foo(): number;\r\n" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-4882119183-export {};\r\n" } }, @@ -578,15 +751,20 @@ define(["require", "exports"], function (require, exports) { "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts" + ], "./src/main.ts": [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/main.ts", @@ -594,7 +772,7 @@ define(["require", "exports"], function (require, exports) { ] }, "version": "FakeTSVersion", - "size": 1342 + "size": 1617 } @@ -626,32 +804,40 @@ Change:: Modify main file Input:: //// [/src/project/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something();something(); Output:: /lib/tsc --b src/project +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== ======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +Resolution for module './filePresent' was found in cache from location '/src/project/src'. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts -/src/project/src/fileNotFound.ts /src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -670,22 +856,27 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"992573078-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,5,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../lib/lib.d.ts", - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -695,20 +886,24 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", "signature": "-13705775197-export declare function something2(): number;\r\n" }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-3405156953-export declare function foo(): number;\r\n" }, "./src/main.ts": { - "version": "992573078-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", + "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", "signature": "-4882119183-export {};\r\n" } }, @@ -717,15 +912,20 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts" + ], "./src/main.ts": [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/main.ts", @@ -733,6 +933,6 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ] }, "version": "FakeTSVersion", - "size": 1352 + "size": 1629 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index a607ee8b7a6b7..3f8299bed86f5 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -1,6 +1,11 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] +import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] @@ -23,18 +28,18 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:30 AM] Starting compilation in watch mode... +[12:00:32 AM] Starting compilation in watch mode... -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -42,26 +47,39 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:31 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:33 AM] Found 2 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -69,6 +87,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -88,19 +108,20 @@ Change:: Modify main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:34 AM] File change detected. Starting incremental compilation... +[12:00:36 AM] File change detected. Starting incremental compilation... -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -108,21 +129,33 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:40 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:42 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -130,6 +163,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -144,7 +179,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -152,6 +187,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -167,8 +203,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/main.ts": { - "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -177,6 +216,9 @@ exitCode:: ExitStatus.undefined "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -184,7 +226,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 922 + "size": 1166 } @@ -193,6 +235,7 @@ Change:: Add new module and update main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); //// [/user/username/projects/myproject/src/newFile.ts] @@ -204,18 +247,14 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:45 AM] File change detected. Starting incremental compilation... +[12:00:47 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -223,21 +262,37 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:52 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:54 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -246,6 +301,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -262,7 +319,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -270,10 +327,14 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -287,11 +348,14 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -300,6 +364,9 @@ exitCode:: ExitStatus.undefined "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -308,7 +375,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1056 + "size": 1304 } @@ -322,32 +389,39 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:00:55 AM] File change detected. Starting incremental compilation... +[12:00:57 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -[12:01:08 AM] Found 0 errors. Watching for file changes. +[12:01:10 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -356,6 +430,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -374,15 +450,16 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { "bundle": { "commonSourceDirectory": "./", "sourceFiles": [ - "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -390,7 +467,7 @@ exitCode:: ExitStatus.undefined "sections": [ { "pos": 0, - "end": 888, + "end": 1038, "kind": "text" } ] @@ -399,7 +476,7 @@ exitCode:: ExitStatus.undefined "sections": [ { "pos": 0, - "end": 256, + "end": 310, "kind": "text" } ] @@ -408,15 +485,20 @@ exitCode:: ExitStatus.undefined "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -425,17 +507,20 @@ exitCode:: ExitStatus.undefined "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }" + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -444,19 +529,30 @@ exitCode:: ExitStatus.undefined "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts" + ], "./src/main.ts": [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1416 + "size": 1707 } //// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -464,12 +560,9 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); -define("src/filePresent", ["require", "exports"], function (require, exports) { +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; }); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; @@ -486,12 +579,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] -declare module "src/fileNotFound" { - export function something2(): number; -} declare module "src/filePresent" { export function something(): number; } +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } @@ -502,7 +596,14 @@ declare module "src/main" { } ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-888) +text: (0-1038) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -510,12 +611,9 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); -define("src/filePresent", ["require", "exports"], function (require, exports) { +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; }); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; @@ -534,13 +632,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-256) -declare module "src/fileNotFound" { - export function something2(): number; -} +text: (0-310) declare module "src/filePresent" { export function something(): number; } +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js index 7c47f00f9461f..577310d2ac147 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -1,6 +1,11 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] +import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] @@ -23,18 +28,18 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[2,1],[3,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]]},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:30 AM] Starting compilation in watch mode... +[12:00:32 AM] Starting compilation in watch mode... -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -42,26 +47,39 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:31 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:33 AM] Found 2 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -69,6 +87,8 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -88,19 +108,20 @@ Change:: Modify main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:34 AM] File change detected. Starting incremental compilation... +[12:00:36 AM] File change detected. Starting incremental compilation... -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -108,21 +129,33 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:40 AM] Found 1 error. Watching for file changes. +[12:00:42 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -131,6 +164,8 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -145,7 +180,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[2,1],[3,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -153,6 +188,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -170,8 +206,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/main.ts": { - "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" } }, @@ -180,20 +220,40 @@ exitCode:: ExitStatus.undefined "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filepresent.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 70, + "start": 127, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -203,6 +263,10 @@ exitCode:: ExitStatus.undefined ] ], "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -214,7 +278,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1180 + "size": 1664 } @@ -223,6 +287,7 @@ Change:: Add new module and update main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); //// [/user/username/projects/myproject/src/newFile.ts] @@ -234,18 +299,14 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:45 AM] File change detected. Starting incremental compilation... +[12:00:47 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -253,21 +314,37 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:52 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:54 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -278,6 +355,8 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -294,7 +373,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3],"affectedFilesPendingEmit":[[2,1],[4,1],[3,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -302,10 +381,14 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -321,12 +404,16 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" } }, @@ -335,21 +422,41 @@ exitCode:: ExitStatus.undefined "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filepresent.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 102, + "start": 159, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -360,6 +467,10 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts" ], "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -375,7 +486,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1372 + "size": 1859 } @@ -389,21 +500,33 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:00:55 AM] File change detected. Starting incremental compilation... +[12:00:57 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/anotherFileReusingResolution.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/filePresent.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json @@ -428,27 +551,31 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:18 AM] Found 0 errors. Watching for file changes. +[12:01:24 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -467,22 +594,27 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,5,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -492,20 +624,24 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" } }, @@ -514,15 +650,20 @@ exitCode:: ExitStatus.undefined "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts" + ], "./src/main.ts": [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/main.ts", @@ -530,9 +671,20 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1264 + "size": 1537 } +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] +export {}; + + //// [/user/username/projects/myproject/src/filePresent.js] define(["require", "exports"], function (require, exports) { "use strict"; diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 772da9a0b5b61..ceeb450826c1e 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -1,6 +1,11 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] +import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] @@ -23,18 +28,18 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:27 AM] Starting compilation in watch mode... +[12:00:29 AM] Starting compilation in watch mode... -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -42,26 +47,39 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:28 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:30 AM] Found 2 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -69,6 +87,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -88,19 +108,20 @@ Change:: Modify main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:31 AM] File change detected. Starting incremental compilation... +[12:00:33 AM] File change detected. Starting incremental compilation... -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -108,21 +129,33 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:37 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:39 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -130,6 +163,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -144,7 +179,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -152,6 +187,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -167,8 +203,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/main.ts": { - "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -177,6 +216,9 @@ exitCode:: ExitStatus.undefined "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -184,7 +226,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 922 + "size": 1166 } @@ -193,6 +235,7 @@ Change:: Add new module and update main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); //// [/user/username/projects/myproject/src/newFile.ts] @@ -204,18 +247,14 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:42 AM] File change detected. Starting incremental compilation... +[12:00:44 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -223,21 +262,37 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:49 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:51 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -246,6 +301,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -262,7 +319,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -270,10 +327,14 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -287,11 +348,14 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -300,6 +364,9 @@ exitCode:: ExitStatus.undefined "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -308,7 +375,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1056 + "size": 1304 } @@ -322,32 +389,39 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:00:52 AM] File change detected. Starting incremental compilation... +[12:00:54 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -[12:01:05 AM] Found 0 errors. Watching for file changes. +[12:01:07 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -356,6 +430,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -374,15 +450,16 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { "bundle": { "commonSourceDirectory": "./", "sourceFiles": [ - "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -390,7 +467,7 @@ exitCode:: ExitStatus.undefined "sections": [ { "pos": 0, - "end": 888, + "end": 1038, "kind": "text" } ] @@ -399,7 +476,7 @@ exitCode:: ExitStatus.undefined "sections": [ { "pos": 0, - "end": 256, + "end": 310, "kind": "text" } ] @@ -408,15 +485,20 @@ exitCode:: ExitStatus.undefined "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -425,17 +507,20 @@ exitCode:: ExitStatus.undefined "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }" + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -444,19 +529,30 @@ exitCode:: ExitStatus.undefined "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts" + ], "./src/main.ts": [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1416 + "size": 1707 } //// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -464,12 +560,9 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); -define("src/filePresent", ["require", "exports"], function (require, exports) { +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; }); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; @@ -486,12 +579,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] -declare module "src/fileNotFound" { - export function something2(): number; -} declare module "src/filePresent" { export function something(): number; } +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } @@ -502,7 +596,14 @@ declare module "src/main" { } ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-888) +text: (0-1038) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -510,12 +611,9 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); -define("src/filePresent", ["require", "exports"], function (require, exports) { +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; }); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; @@ -534,13 +632,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-256) -declare module "src/fileNotFound" { - export function something2(): number; -} +text: (0-310) declare module "src/filePresent" { export function something(): number; } +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index 03961100d3939..7a026acc52956 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -1,6 +1,11 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] +import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] @@ -23,18 +28,18 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[2,1],[3,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]]},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:27 AM] Starting compilation in watch mode... +[12:00:29 AM] Starting compilation in watch mode... -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -42,26 +47,39 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:28 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:30 AM] Found 2 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -69,6 +87,8 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -88,19 +108,20 @@ Change:: Modify main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:31 AM] File change detected. Starting incremental compilation... +[12:00:33 AM] File change detected. Starting incremental compilation... -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -108,21 +129,33 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:37 AM] Found 1 error. Watching for file changes. +[12:00:39 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -131,6 +164,8 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -145,7 +180,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[2,1],[3,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -153,6 +188,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -170,8 +206,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/main.ts": { - "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" } }, @@ -180,20 +220,40 @@ exitCode:: ExitStatus.undefined "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filepresent.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 70, + "start": 127, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -203,6 +263,10 @@ exitCode:: ExitStatus.undefined ] ], "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -214,7 +278,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1180 + "size": 1664 } @@ -223,6 +287,7 @@ Change:: Add new module and update main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); //// [/user/username/projects/myproject/src/newFile.ts] @@ -234,18 +299,14 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:42 AM] File change detected. Starting incremental compilation... +[12:00:44 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -253,21 +314,37 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:49 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:51 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -278,6 +355,8 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -294,7 +373,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3],"affectedFilesPendingEmit":[[2,1],[4,1],[3,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -302,10 +381,14 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -321,12 +404,16 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" } }, @@ -335,21 +422,41 @@ exitCode:: ExitStatus.undefined "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filepresent.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 102, + "start": 159, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -360,6 +467,10 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts" ], "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -375,7 +486,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1372 + "size": 1859 } @@ -389,21 +500,33 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:00:52 AM] File change detected. Starting incremental compilation... +[12:00:54 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/anotherFileReusingResolution.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/filePresent.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json @@ -428,27 +551,31 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:15 AM] Found 0 errors. Watching for file changes. +[12:01:21 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -467,22 +594,27 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,5,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -492,20 +624,24 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" } }, @@ -514,15 +650,20 @@ exitCode:: ExitStatus.undefined "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts" + ], "./src/main.ts": [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/main.ts", @@ -530,9 +671,20 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1264 + "size": 1537 } +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] +export {}; + + //// [/user/username/projects/myproject/src/filePresent.js] define(["require", "exports"], function (require, exports) { "use strict"; diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 97b54bda5a3ad..7b4fb48f670f9 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -1,6 +1,11 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] +import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] @@ -25,13 +30,13 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:25 AM] Starting compilation in watch mode... +[12:00:27 AM] Starting compilation in watch mode... -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -39,26 +44,39 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:30 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:32 AM] Found 2 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -66,6 +84,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -80,7 +100,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -88,6 +108,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -103,8 +124,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/main.ts": { + "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } }, "options": { @@ -113,6 +137,9 @@ exitCode:: ExitStatus.undefined "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -120,7 +147,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 910 + "size": 1153 } @@ -129,19 +156,20 @@ Change:: Modify main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:33 AM] File change detected. Starting incremental compilation... +[12:00:35 AM] File change detected. Starting incremental compilation... -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -149,21 +177,33 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:40 AM] Found 1 error. Watching for file changes. +[12:00:42 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -171,6 +211,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -185,7 +227,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -193,6 +235,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -208,8 +251,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/main.ts": { - "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -218,6 +264,9 @@ exitCode:: ExitStatus.undefined "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -225,7 +274,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 922 + "size": 1166 } @@ -234,6 +283,7 @@ Change:: Add new module and update main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); //// [/user/username/projects/myproject/src/newFile.ts] @@ -245,18 +295,14 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:45 AM] File change detected. Starting incremental compilation... +[12:00:47 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -264,21 +310,37 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:52 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:54 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -287,6 +349,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -303,7 +367,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -311,10 +375,14 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -328,11 +396,14 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -341,6 +412,9 @@ exitCode:: ExitStatus.undefined "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -349,7 +423,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1056 + "size": 1304 } @@ -363,32 +437,39 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:00:55 AM] File change detected. Starting incremental compilation... +[12:00:57 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -[12:01:08 AM] Found 0 errors. Watching for file changes. +[12:01:10 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -397,6 +478,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -415,15 +498,16 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { "bundle": { "commonSourceDirectory": "./", "sourceFiles": [ - "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -431,7 +515,7 @@ exitCode:: ExitStatus.undefined "sections": [ { "pos": 0, - "end": 888, + "end": 1038, "kind": "text" } ] @@ -440,7 +524,7 @@ exitCode:: ExitStatus.undefined "sections": [ { "pos": 0, - "end": 256, + "end": 310, "kind": "text" } ] @@ -449,15 +533,20 @@ exitCode:: ExitStatus.undefined "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -466,17 +555,20 @@ exitCode:: ExitStatus.undefined "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }" + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -485,19 +577,30 @@ exitCode:: ExitStatus.undefined "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts" + ], "./src/main.ts": [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1416 + "size": 1707 } //// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -505,12 +608,9 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); -define("src/filePresent", ["require", "exports"], function (require, exports) { +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; }); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; @@ -527,12 +627,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] -declare module "src/fileNotFound" { - export function something2(): number; -} declare module "src/filePresent" { export function something(): number; } +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } @@ -543,7 +644,14 @@ declare module "src/main" { } ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-888) +text: (0-1038) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -551,12 +659,9 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); -define("src/filePresent", ["require", "exports"], function (require, exports) { +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; }); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; @@ -575,13 +680,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-256) -declare module "src/fileNotFound" { - export function something2(): number; -} +text: (0-310) declare module "src/filePresent" { export function something(): number; } +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index e7403742b88d1..0c5a35879305f 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -1,6 +1,11 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] +import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] @@ -25,13 +30,13 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:25 AM] Starting compilation in watch mode... +[12:00:27 AM] Starting compilation in watch mode... -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -39,36 +44,52 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:30 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:32 AM] Found 2 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -83,7 +104,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[2,1],[3,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -91,6 +112,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -108,9 +130,13 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, - "./src/main.ts": { + "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } }, "options": { @@ -118,24 +144,43 @@ exitCode:: ExitStatus.undefined "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filepresent.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 70, + "start": 127, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -145,6 +190,10 @@ exitCode:: ExitStatus.undefined ] ], "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -156,7 +205,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1122 + "size": 1606 } @@ -165,19 +214,20 @@ Change:: Modify main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:33 AM] File change detected. Starting incremental compilation... +[12:00:35 AM] File change detected. Starting incremental compilation... -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -185,21 +235,33 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:40 AM] Found 1 error. Watching for file changes. +[12:00:42 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -208,6 +270,8 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -222,7 +286,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[2,1],[3,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -230,6 +294,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -247,8 +312,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/main.ts": { - "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" } }, @@ -257,20 +326,40 @@ exitCode:: ExitStatus.undefined "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filepresent.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 70, + "start": 127, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -280,6 +369,10 @@ exitCode:: ExitStatus.undefined ] ], "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -291,7 +384,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1180 + "size": 1664 } @@ -300,6 +393,7 @@ Change:: Add new module and update main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); //// [/user/username/projects/myproject/src/newFile.ts] @@ -311,18 +405,14 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:45 AM] File change detected. Starting incremental compilation... +[12:00:47 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -330,21 +420,37 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:52 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:54 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -355,6 +461,8 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -371,7 +479,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3],"affectedFilesPendingEmit":[[2,1],[4,1],[3,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -379,10 +487,14 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -398,12 +510,16 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" } }, @@ -412,21 +528,41 @@ exitCode:: ExitStatus.undefined "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filepresent.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 102, + "start": 159, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -437,6 +573,10 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts" ], "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -452,7 +592,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1372 + "size": 1859 } @@ -466,20 +606,26 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:00:55 AM] File change detected. Starting incremental compilation... +[12:00:57 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/filePresent.js @@ -487,6 +633,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/filePresent.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/anotherFileReusingResolution.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/main.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json @@ -505,27 +657,31 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:18 AM] Found 0 errors. Watching for file changes. +[12:01:24 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -544,22 +700,27 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,5,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -569,20 +730,24 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" } }, @@ -591,15 +756,20 @@ exitCode:: ExitStatus.undefined "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts" + ], "./src/main.ts": [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/main.ts", @@ -607,7 +777,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1264 + "size": 1537 } //// [/user/username/projects/myproject/src/filePresent.js] @@ -624,6 +794,17 @@ define(["require", "exports"], function (require, exports) { export declare function something(): number; +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] +export {}; + + //// [/user/username/projects/myproject/src/main.js] define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { "use strict"; diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index e76c3acff87ed..4d75026977523 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -14,11 +14,16 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; +//// [/src/project/src/anotherFileReusingResolution.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + //// [/src/project/src/filePresent.ts] export function something() { return 10; } //// [/src/project/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; //// [/src/project/tsconfig.json] @@ -28,11 +33,11 @@ import { something2 } from "./fileNotFound"; Output:: /lib/tsc --p src/project -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. File '/src/project/src/fileNotFound.tsx' does not exist. @@ -40,21 +45,33 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ -Found 1 error. + +Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/main.ts No cached semantic diagnostics in the builder:: @@ -64,6 +81,7 @@ No cached semantic diagnostics in the builder:: declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/main" { } @@ -75,6 +93,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -82,13 +104,13 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":377,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":112,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":531,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":167,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-377) +text: (0-531) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -96,6 +118,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -105,10 +131,11 @@ define("src/main", ["require", "exports"], function (require, exports) { ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-112) +text: (0-167) declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/main" { } ====================================================================== @@ -119,13 +146,14 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 377, + "end": 531, "kind": "text" } ] @@ -134,7 +162,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 112, + "end": 167, "kind": "text" } ] @@ -144,6 +172,7 @@ declare module "src/main" { } "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -159,8 +188,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/main.ts": { + "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } }, "options": { @@ -169,6 +201,9 @@ declare module "src/main" { } "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -176,7 +211,7 @@ declare module "src/main" { } "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1186 + "size": 1469 } @@ -187,11 +222,11 @@ Input:: Output:: /lib/tsc --p src/project -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. File '/src/project/src/fileNotFound.tsx' does not exist. @@ -199,21 +234,33 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + -Found 1 error. +Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/main.ts No cached semantic diagnostics in the builder:: @@ -230,17 +277,18 @@ Change:: Modify main file Input:: //// [/src/project/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); Output:: /lib/tsc --p src/project -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. File '/src/project/src/fileNotFound.tsx' does not exist. @@ -248,21 +296,33 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ -2 import { something2 } from "./fileNotFound";something(); +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -Found 1 error. +Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/main.ts No cached semantic diagnostics in the builder:: @@ -277,6 +337,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -285,13 +349,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":443,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":112,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":597,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":167,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-443) +text: (0-597) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -299,6 +363,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -309,10 +377,11 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-112) +text: (0-167) declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/main" { } ====================================================================== @@ -323,13 +392,14 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 443, + "end": 597, "kind": "text" } ] @@ -338,7 +408,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 112, + "end": 167, "kind": "text" } ] @@ -348,6 +418,7 @@ declare module "src/main" { } "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -363,8 +434,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/main.ts": { - "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -373,6 +447,9 @@ declare module "src/main" { } "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -380,7 +457,7 @@ declare module "src/main" { } "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1198 + "size": 1482 } @@ -389,6 +466,7 @@ Change:: Add new module and update main file Input:: //// [/src/project/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); //// [/src/project/src/newFile.ts] @@ -398,15 +476,11 @@ export function foo() { return 20; } Output:: /lib/tsc --p src/project -======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. File '/src/project/src/fileNotFound.tsx' does not exist. @@ -414,21 +488,37 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ -Found 1 error. + +Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -439,6 +529,7 @@ No cached semantic diagnostics in the builder:: declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } @@ -453,6 +544,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -468,13 +563,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":662,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":183,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":816,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":238,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-662) +text: (0-816) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -482,6 +577,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -499,10 +598,11 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-183) +text: (0-238) declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } @@ -516,6 +616,7 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -523,7 +624,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 662, + "end": 816, "kind": "text" } ] @@ -532,7 +633,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 183, + "end": 238, "kind": "text" } ] @@ -542,10 +643,14 @@ declare module "src/main" { } "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -559,11 +664,14 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -572,6 +680,9 @@ declare module "src/main" { } "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -580,7 +691,7 @@ declare module "src/main" { } "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1351 + "size": 1639 } @@ -594,26 +705,33 @@ export function something2() { return 20; } Output:: /lib/tsc --p src/project +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== ======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +Resolution for module './filePresent' was found in cache from location '/src/project/src'. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts -/src/project/src/fileNotFound.ts /src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -621,12 +739,13 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.d.ts] -declare module "src/fileNotFound" { - export function something2(): number; -} declare module "src/filePresent" { export function something(): number; } +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } @@ -634,6 +753,13 @@ declare module "src/main" { } //// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -641,12 +767,9 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); -define("src/filePresent", ["require", "exports"], function (require, exports) { +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; }); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; @@ -663,13 +786,20 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":914,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":266,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-914) +text: (0-1068) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -677,12 +807,9 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); -define("src/filePresent", ["require", "exports"], function (require, exports) { +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; }); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; @@ -701,13 +828,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-266) -declare module "src/fileNotFound" { - export function something2(): number; -} +text: (0-321) declare module "src/filePresent" { export function something(): number; } +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } @@ -720,8 +848,9 @@ declare module "src/main" { } "bundle": { "commonSourceDirectory": "./", "sourceFiles": [ - "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -729,7 +858,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 914, + "end": 1068, "kind": "text" } ] @@ -738,7 +867,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 266, + "end": 321, "kind": "text" } ] @@ -747,15 +876,20 @@ declare module "src/main" { } "program": { "fileNames": [ "../../lib/lib.d.ts", - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -764,17 +898,20 @@ declare module "src/main" { } "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }" + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -783,16 +920,20 @@ declare module "src/main" { } "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts" + ], "./src/main.ts": [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1488 + "size": 1779 } @@ -815,26 +956,33 @@ Input:: Output:: /lib/tsc --p src/project +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== ======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +Resolution for module './filePresent' was found in cache from location '/src/project/src'. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts -/src/project/src/fileNotFound.ts /src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -852,32 +1000,40 @@ Change:: Modify main file Input:: //// [/src/project/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something();something(); Output:: /lib/tsc --p src/project +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== ======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +Resolution for module './filePresent' was found in cache from location '/src/project/src'. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts -/src/project/src/fileNotFound.ts /src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -886,6 +1042,13 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.d.ts] file written with same contents //// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -893,12 +1056,9 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); -define("src/filePresent", ["require", "exports"], function (require, exports) { +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; }); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; @@ -916,13 +1076,20 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":946,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":266,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"992573078-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1100,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-946) +text: (0-1100) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -930,12 +1097,9 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); -define("src/filePresent", ["require", "exports"], function (require, exports) { +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; }); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; @@ -955,13 +1119,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-266) -declare module "src/fileNotFound" { - export function something2(): number; -} +text: (0-321) declare module "src/filePresent" { export function something(): number; } +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } @@ -974,8 +1139,9 @@ declare module "src/main" { } "bundle": { "commonSourceDirectory": "./", "sourceFiles": [ - "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -983,7 +1149,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 946, + "end": 1100, "kind": "text" } ] @@ -992,7 +1158,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 266, + "end": 321, "kind": "text" } ] @@ -1001,15 +1167,20 @@ declare module "src/main" { } "program": { "fileNames": [ "../../lib/lib.d.ts", - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -1018,17 +1189,20 @@ declare module "src/main" { } "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }" + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "992573078-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();" + "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();" } }, "options": { @@ -1037,15 +1211,19 @@ declare module "src/main" { } "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts" + ], "./src/main.ts": [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1498 + "size": 1791 } diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 42d4d0fbe886d..90d5cb8d31b15 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -14,11 +14,16 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; +//// [/src/project/src/anotherFileReusingResolution.ts] +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + //// [/src/project/src/filePresent.ts] export function something() { return 10; } //// [/src/project/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; //// [/src/project/tsconfig.json] @@ -28,11 +33,11 @@ import { something2 } from "./fileNotFound"; Output:: /lib/tsc --p src/project -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. File '/src/project/src/fileNotFound.tsx' does not exist. @@ -40,29 +45,53 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + -Found 1 error. +Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/main.ts +//// [/src/project/src/anotherFileReusingResolution.d.ts] +export {}; + + +//// [/src/project/src/anotherFileReusingResolution.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + //// [/src/project/src/filePresent.d.ts] export declare function something(): number; @@ -89,7 +118,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -97,6 +126,7 @@ define(["require", "exports"], function (require, exports) { "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -114,9 +144,13 @@ define(["require", "exports"], function (require, exports) { "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, - "./src/main.ts": { + "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } }, "options": { @@ -124,24 +158,43 @@ define(["require", "exports"], function (require, exports) { "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filepresent.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 70, + "start": 127, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -152,7 +205,7 @@ define(["require", "exports"], function (require, exports) { ] }, "version": "FakeTSVersion", - "size": 1153 + "size": 1631 } @@ -163,11 +216,11 @@ Input:: Output:: /lib/tsc --p src/project -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. File '/src/project/src/fileNotFound.tsx' does not exist. @@ -175,21 +228,33 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + -Found 1 error. +Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -201,17 +266,18 @@ Change:: Modify main file Input:: //// [/src/project/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); Output:: /lib/tsc --p src/project -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. File '/src/project/src/fileNotFound.tsx' does not exist. @@ -219,21 +285,33 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 1 error. +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -250,7 +328,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -258,6 +336,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -275,8 +354,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/main.ts": { - "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-4882119183-export {};\r\n" } }, @@ -285,20 +368,40 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filepresent.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 70, + "start": 127, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -309,7 +412,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ] }, "version": "FakeTSVersion", - "size": 1213 + "size": 1691 } @@ -318,6 +421,7 @@ Change:: Add new module and update main file Input:: //// [/src/project/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); //// [/src/project/src/newFile.ts] @@ -327,15 +431,11 @@ export function foo() { return 20; } Output:: /lib/tsc --p src/project -======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. File '/src/project/src/fileNotFound.tsx' does not exist. @@ -343,21 +443,37 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -src/project/src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -Found 1 error. +Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -383,7 +499,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -391,10 +507,14 @@ define(["require", "exports"], function (require, exports) { "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -410,12 +530,16 @@ define(["require", "exports"], function (require, exports) { "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-3405156953-export declare function foo(): number;\r\n" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-4882119183-export {};\r\n" } }, @@ -424,21 +548,41 @@ define(["require", "exports"], function (require, exports) { "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filepresent.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 102, + "start": 159, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -450,7 +594,7 @@ define(["require", "exports"], function (require, exports) { ] }, "version": "FakeTSVersion", - "size": 1401 + "size": 1882 } @@ -464,34 +608,44 @@ export function something2() { return 20; } Output:: /lib/tsc --p src/project +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== ======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +Resolution for module './filePresent' was found in cache from location '/src/project/src'. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts -/src/project/src/fileNotFound.ts /src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/newFile.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: /src/project/src/fileNotFound.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/main.ts +//// [/src/project/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/src/project/src/anotherFileReusingResolution.js] file written with same contents //// [/src/project/src/fileNotFound.d.ts] export declare function something2(): number; @@ -509,22 +663,27 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/src/main.d.ts] file written with same contents //// [/src/project/src/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,5,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../lib/lib.d.ts", - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -534,20 +693,24 @@ define(["require", "exports"], function (require, exports) { "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", "signature": "-13705775197-export declare function something2(): number;\r\n" }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-3405156953-export declare function foo(): number;\r\n" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-4882119183-export {};\r\n" } }, @@ -556,15 +719,20 @@ define(["require", "exports"], function (require, exports) { "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts" + ], "./src/main.ts": [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/main.ts", @@ -572,7 +740,7 @@ define(["require", "exports"], function (require, exports) { ] }, "version": "FakeTSVersion", - "size": 1342 + "size": 1617 } @@ -595,26 +763,33 @@ Input:: Output:: /lib/tsc --p src/project +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== ======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +Resolution for module './filePresent' was found in cache from location '/src/project/src'. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts -/src/project/src/fileNotFound.ts /src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -627,32 +802,40 @@ Change:: Modify main file Input:: //// [/src/project/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something();something(); Output:: /lib/tsc --p src/project +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== ======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +Resolution for module './filePresent' was found in cache from location '/src/project/src'. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts -/src/project/src/fileNotFound.ts /src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -671,22 +854,27 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"992573078-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,5,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5]},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../lib/lib.d.ts", - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -696,20 +884,24 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", "signature": "-13705775197-export declare function something2(): number;\r\n" }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-3405156953-export declare function foo(): number;\r\n" }, "./src/main.ts": { - "version": "992573078-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", + "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", "signature": "-4882119183-export {};\r\n" } }, @@ -718,15 +910,20 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts" + ], "./src/main.ts": [ - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/main.ts", @@ -734,6 +931,6 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ] }, "version": "FakeTSVersion", - "size": 1352 + "size": 1629 } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index 1fd2e720fa141..1876b86788787 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -1,6 +1,11 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] +import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] @@ -30,6 +35,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -40,30 +49,30 @@ define("src/main", ["require", "exports"], function (require, exports) { declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":366,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:34 AM] Starting compilation in watch mode... +[12:00:36 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -71,26 +80,43 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:44 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:46 AM] Found 2 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -98,6 +124,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -124,13 +152,14 @@ exitCode:: ExitStatus.undefined "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 366, + "end": 516, "kind": "text" } ] @@ -139,7 +168,7 @@ exitCode:: ExitStatus.undefined "sections": [ { "pos": 0, - "end": 108, + "end": 162, "kind": "text" } ] @@ -149,6 +178,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -164,8 +194,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/main.ts": { + "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } }, "options": { @@ -174,6 +207,9 @@ exitCode:: ExitStatus.undefined "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -181,14 +217,14 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1114 + "size": 1397 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-366) +text: (0-516) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -196,6 +232,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -205,10 +245,11 @@ define("src/main", ["require", "exports"], function (require, exports) { ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-108) +text: (0-162) declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/main" { } ====================================================================== @@ -219,6 +260,7 @@ Change:: Modify main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); @@ -226,29 +268,36 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:51 AM] File change detected. Starting incremental compilation... +[12:00:53 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:01 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:03 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -256,6 +305,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -281,6 +332,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -290,7 +345,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":431,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -298,13 +353,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 431, + "end": 581, "kind": "text" } ] @@ -313,7 +369,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "sections": [ { "pos": 0, - "end": 108, + "end": 162, "kind": "text" } ] @@ -323,6 +379,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -338,8 +395,11 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/main.ts": { - "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -348,6 +408,9 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -355,14 +418,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1126 + "size": 1410 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-431) +text: (0-581) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -370,6 +433,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -380,10 +447,11 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-108) +text: (0-162) declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/main" { } ====================================================================== @@ -394,6 +462,7 @@ Change:: Add new module and update main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); //// [/user/username/projects/myproject/src/newFile.ts] @@ -407,13 +476,16 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:01:12 AM] File change detected. Starting incremental compilation... +[12:01:14 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== @@ -421,21 +493,27 @@ Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ -2 import { something2 } from "./fileNotFound";something(); +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:22 AM] Found 1 error. Watching for file changes. +[12:01:24 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -444,6 +522,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -471,6 +551,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -489,6 +573,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } @@ -496,7 +581,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":643,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":176,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -504,6 +589,7 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -511,7 +597,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 643, + "end": 793, "kind": "text" } ] @@ -520,7 +606,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 176, + "end": 230, "kind": "text" } ] @@ -530,10 +616,14 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -547,11 +637,14 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -560,6 +653,9 @@ declare module "src/main" { } "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -568,14 +664,14 @@ declare module "src/main" { } "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1279 + "size": 1567 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-643) +text: (0-793) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -583,6 +679,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -600,10 +700,11 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-176) +text: (0-230) declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } @@ -623,33 +724,42 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:31 AM] File change detected. Starting incremental compilation... +[12:01:33 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:41 AM] Found 1 error. Watching for file changes. +[12:01:43 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -658,6 +768,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -680,13 +792,6 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -694,6 +799,17 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -709,12 +825,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] -declare module "src/fileNotFound" { - export function something2(): number; -} declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } +declare module "src/fileNotFound" { + export function something2(): number; +} declare module "src/newFile" { export function foo(): number; } @@ -722,15 +839,16 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { "bundle": { "commonSourceDirectory": "./", "sourceFiles": [ - "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -738,7 +856,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 888, + "end": 1038, "kind": "text" } ] @@ -747,7 +865,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 256, + "end": 310, "kind": "text" } ] @@ -756,12 +874,16 @@ declare module "src/main" { } "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -772,17 +894,20 @@ declare module "src/main" { } "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true }, - "./src/filenotfound.ts": { - "version": "-497034637-export function something2() { return 20; }" - }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -791,6 +916,9 @@ declare module "src/main" { } "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -799,21 +927,14 @@ declare module "src/main" { } "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1414 + "size": 1703 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-888) -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); +text: (0-1038) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -821,6 +942,17 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -838,13 +970,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-256) -declare module "src/fileNotFound" { - export function something2(): number; -} +text: (0-310) declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } +declare module "src/fileNotFound" { + export function something2(): number; +} declare module "src/newFile" { export function foo(): number; } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js index b928ee2412bf5..ed93874d098e1 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -1,6 +1,11 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] +import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] @@ -36,6 +41,17 @@ define(["require", "exports"], function (require, exports) { export declare function something(): number; +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] +export {}; + + //// [/user/username/projects/myproject/src/main.js] define(["require", "exports"], function (require, exports) { "use strict"; @@ -48,26 +64,25 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:38 AM] Starting compilation in watch mode... +[12:00:44 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -75,26 +90,43 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:39 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:45 AM] Found 2 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -102,6 +134,8 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -125,6 +159,7 @@ Change:: Modify main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); @@ -132,29 +167,36 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:42 AM] File change detected. Starting incremental compilation... +[12:00:48 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:52 AM] Found 1 error. Watching for file changes. +[12:00:58 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -163,6 +205,8 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -190,7 +234,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -198,6 +242,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -215,8 +260,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/main.ts": { - "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" } }, @@ -225,20 +274,40 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filepresent.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 70, + "start": 127, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -249,7 +318,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ] }, "version": "FakeTSVersion", - "size": 1139 + "size": 1617 } @@ -258,6 +327,7 @@ Change:: Add new module and update main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); //// [/user/username/projects/myproject/src/newFile.ts] @@ -271,13 +341,16 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:59 AM] File change detected. Starting incremental compilation... +[12:01:05 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== @@ -291,21 +364,27 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:13 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:19 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -316,6 +395,8 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -338,7 +419,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -346,10 +427,14 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -365,12 +450,16 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" } }, @@ -379,21 +468,41 @@ exitCode:: ExitStatus.undefined "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filepresent.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 102, + "start": 159, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -405,7 +514,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1325 + "size": 1806 } //// [/user/username/projects/myproject/src/newFile.js] @@ -434,16 +543,19 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:19 AM] File change detected. Starting incremental compilation... +[12:01:25 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js @@ -451,22 +563,28 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ -2 import { something2 } from "./fileNotFound";something(); +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:27 AM] Found 1 error. Watching for file changes. +[12:01:33 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -476,6 +594,8 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -498,19 +618,23 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,[5,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -522,20 +646,24 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true }, - "./src/filenotfound.ts": { - "version": "-497034637-export function something2() { return 20; }", - "signature": "-14992185226-export declare function something2(): number;\n" - }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" } }, @@ -544,14 +672,34 @@ exitCode:: ExitStatus.undefined "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filenotfound.ts", "./src/filepresent.ts", [ @@ -559,7 +707,7 @@ exitCode:: ExitStatus.undefined [ { "file": "./src/main.ts", - "start": 102, + "start": 159, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -571,7 +719,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1495 + "size": 1976 } //// [/user/username/projects/myproject/src/fileNotFound.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 3598aa08610e0..a13b04ccc3997 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -1,6 +1,11 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] +import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] @@ -30,6 +35,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -40,30 +49,30 @@ define("src/main", ["require", "exports"], function (require, exports) { declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":366,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:31 AM] Starting compilation in watch mode... +[12:00:33 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -71,26 +80,43 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:41 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:43 AM] Found 2 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -98,6 +124,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -124,13 +152,14 @@ exitCode:: ExitStatus.undefined "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 366, + "end": 516, "kind": "text" } ] @@ -139,7 +168,7 @@ exitCode:: ExitStatus.undefined "sections": [ { "pos": 0, - "end": 108, + "end": 162, "kind": "text" } ] @@ -149,6 +178,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -164,8 +194,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/main.ts": { + "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } }, "options": { @@ -174,6 +207,9 @@ exitCode:: ExitStatus.undefined "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -181,14 +217,14 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1114 + "size": 1397 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-366) +text: (0-516) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -196,6 +232,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -205,10 +245,11 @@ define("src/main", ["require", "exports"], function (require, exports) { ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-108) +text: (0-162) declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/main" { } ====================================================================== @@ -219,6 +260,7 @@ Change:: Modify main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); @@ -226,29 +268,36 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:48 AM] File change detected. Starting incremental compilation... +[12:00:50 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:58 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:00 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -256,6 +305,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -281,6 +332,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -290,7 +345,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":431,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -298,13 +353,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 431, + "end": 581, "kind": "text" } ] @@ -313,7 +369,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "sections": [ { "pos": 0, - "end": 108, + "end": 162, "kind": "text" } ] @@ -323,6 +379,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -338,8 +395,11 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/main.ts": { - "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -348,6 +408,9 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -355,14 +418,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1126 + "size": 1410 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-431) +text: (0-581) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -370,6 +433,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -380,10 +447,11 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-108) +text: (0-162) declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/main" { } ====================================================================== @@ -394,6 +462,7 @@ Change:: Add new module and update main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); //// [/user/username/projects/myproject/src/newFile.ts] @@ -407,13 +476,16 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:01:09 AM] File change detected. Starting incremental compilation... +[12:01:11 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== @@ -421,21 +493,27 @@ Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ -2 import { something2 } from "./fileNotFound";something(); +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:19 AM] Found 1 error. Watching for file changes. +[12:01:21 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -444,6 +522,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -471,6 +551,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -489,6 +573,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } @@ -496,7 +581,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":643,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":176,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -504,6 +589,7 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -511,7 +597,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 643, + "end": 793, "kind": "text" } ] @@ -520,7 +606,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 176, + "end": 230, "kind": "text" } ] @@ -530,10 +616,14 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -547,11 +637,14 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -560,6 +653,9 @@ declare module "src/main" { } "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -568,14 +664,14 @@ declare module "src/main" { } "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1279 + "size": 1567 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-643) +text: (0-793) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -583,6 +679,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -600,10 +700,11 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-176) +text: (0-230) declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } @@ -623,33 +724,42 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:28 AM] File change detected. Starting incremental compilation... +[12:01:30 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:38 AM] Found 1 error. Watching for file changes. +[12:01:40 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -658,6 +768,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -680,13 +792,6 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -694,6 +799,17 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -709,12 +825,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] -declare module "src/fileNotFound" { - export function something2(): number; -} declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } +declare module "src/fileNotFound" { + export function something2(): number; +} declare module "src/newFile" { export function foo(): number; } @@ -722,15 +839,16 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { "bundle": { "commonSourceDirectory": "./", "sourceFiles": [ - "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -738,7 +856,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 888, + "end": 1038, "kind": "text" } ] @@ -747,7 +865,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 256, + "end": 310, "kind": "text" } ] @@ -756,12 +874,16 @@ declare module "src/main" { } "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -772,17 +894,20 @@ declare module "src/main" { } "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true }, - "./src/filenotfound.ts": { - "version": "-497034637-export function something2() { return 20; }" - }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -791,6 +916,9 @@ declare module "src/main" { } "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -799,21 +927,14 @@ declare module "src/main" { } "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1414 + "size": 1703 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-888) -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); +text: (0-1038) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -821,6 +942,17 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -838,13 +970,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-256) -declare module "src/fileNotFound" { - export function something2(): number; -} +text: (0-310) declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } +declare module "src/fileNotFound" { + export function something2(): number; +} declare module "src/newFile" { export function foo(): number; } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index 9404acd3c4ab8..c8286fb42ddbf 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -1,6 +1,11 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] +import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] @@ -36,6 +41,17 @@ define(["require", "exports"], function (require, exports) { export declare function something(): number; +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] +export {}; + + //// [/user/username/projects/myproject/src/main.js] define(["require", "exports"], function (require, exports) { "use strict"; @@ -48,26 +64,25 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:35 AM] Starting compilation in watch mode... +[12:00:41 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -75,26 +90,43 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:36 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:42 AM] Found 2 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -102,6 +134,8 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -125,6 +159,7 @@ Change:: Modify main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); @@ -132,29 +167,36 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:39 AM] File change detected. Starting incremental compilation... +[12:00:45 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:49 AM] Found 1 error. Watching for file changes. +[12:00:55 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -163,6 +205,8 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -190,7 +234,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -198,6 +242,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -215,8 +260,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/main.ts": { - "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" } }, @@ -225,20 +274,40 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filepresent.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 70, + "start": 127, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -249,7 +318,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ] }, "version": "FakeTSVersion", - "size": 1139 + "size": 1617 } @@ -258,6 +327,7 @@ Change:: Add new module and update main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); //// [/user/username/projects/myproject/src/newFile.ts] @@ -271,13 +341,16 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:56 AM] File change detected. Starting incremental compilation... +[12:01:02 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== @@ -291,21 +364,27 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:10 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:16 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -316,6 +395,8 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -338,7 +419,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -346,10 +427,14 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -365,12 +450,16 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" } }, @@ -379,21 +468,41 @@ exitCode:: ExitStatus.undefined "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filepresent.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 102, + "start": 159, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -405,7 +514,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1325 + "size": 1806 } //// [/user/username/projects/myproject/src/newFile.js] @@ -434,16 +543,19 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:16 AM] File change detected. Starting incremental compilation... +[12:01:22 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js @@ -451,22 +563,28 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ -2 import { something2 } from "./fileNotFound";something(); +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:24 AM] Found 1 error. Watching for file changes. +[12:01:30 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -476,6 +594,8 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -498,19 +618,23 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,[5,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -522,20 +646,24 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true }, - "./src/filenotfound.ts": { - "version": "-497034637-export function something2() { return 20; }", - "signature": "-14992185226-export declare function something2(): number;\n" - }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" } }, @@ -544,14 +672,34 @@ exitCode:: ExitStatus.undefined "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filenotfound.ts", "./src/filepresent.ts", [ @@ -559,7 +707,7 @@ exitCode:: ExitStatus.undefined [ { "file": "./src/main.ts", - "start": 102, + "start": 159, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -571,7 +719,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1495 + "size": 1976 } //// [/user/username/projects/myproject/src/fileNotFound.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 2cd2aed203bc2..66469c3a50d5c 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -1,6 +1,11 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] +import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] @@ -25,21 +30,20 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:25 AM] Starting compilation in watch mode... +[12:00:27 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -47,26 +51,43 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:32 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:34 AM] Found 2 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -74,6 +95,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -99,6 +122,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -109,11 +136,12 @@ define("src/main", ["require", "exports"], function (require, exports) { declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":366,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -121,13 +149,14 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 366, + "end": 516, "kind": "text" } ] @@ -136,7 +165,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 108, + "end": 162, "kind": "text" } ] @@ -146,6 +175,7 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -161,8 +191,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/main.ts": { + "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } }, "options": { @@ -171,6 +204,9 @@ declare module "src/main" { } "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -178,14 +214,14 @@ declare module "src/main" { } "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1114 + "size": 1397 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-366) +text: (0-516) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -193,6 +229,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -202,10 +242,11 @@ define("src/main", ["require", "exports"], function (require, exports) { ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-108) +text: (0-162) declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/main" { } ====================================================================== @@ -216,6 +257,7 @@ Change:: Modify main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); @@ -223,29 +265,36 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:39 AM] File change detected. Starting incremental compilation... +[12:00:41 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:49 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:51 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -253,6 +302,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -278,6 +329,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -287,7 +342,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":431,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":108,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -295,13 +350,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 431, + "end": 581, "kind": "text" } ] @@ -310,7 +366,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "sections": [ { "pos": 0, - "end": 108, + "end": 162, "kind": "text" } ] @@ -320,6 +376,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -335,8 +392,11 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/main.ts": { - "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -345,6 +405,9 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -352,14 +415,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1126 + "size": 1410 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-431) +text: (0-581) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -367,6 +430,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -377,10 +444,11 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-108) +text: (0-162) declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/main" { } ====================================================================== @@ -391,6 +459,7 @@ Change:: Add new module and update main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); //// [/user/username/projects/myproject/src/newFile.ts] @@ -404,13 +473,16 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:01:00 AM] File change detected. Starting incremental compilation... +[12:01:02 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== @@ -418,21 +490,27 @@ Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ -2 import { something2 } from "./fileNotFound";something(); +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:10 AM] Found 1 error. Watching for file changes. +[12:01:12 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -441,6 +519,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -468,6 +548,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -486,6 +570,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } @@ -493,7 +578,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":643,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":176,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -501,6 +586,7 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -508,7 +594,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 643, + "end": 793, "kind": "text" } ] @@ -517,7 +603,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 176, + "end": 230, "kind": "text" } ] @@ -527,10 +613,14 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -544,11 +634,14 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -557,6 +650,9 @@ declare module "src/main" { } "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -565,14 +661,14 @@ declare module "src/main" { } "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1279 + "size": 1567 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-643) +text: (0-793) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -580,6 +676,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -597,10 +697,11 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-176) +text: (0-230) declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } @@ -620,33 +721,42 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:19 AM] File change detected. Starting incremental compilation... +[12:01:21 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:29 AM] Found 1 error. Watching for file changes. +[12:01:31 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -655,6 +765,8 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -677,13 +789,6 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -691,6 +796,17 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -706,12 +822,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] -declare module "src/fileNotFound" { - export function something2(): number; -} declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } +declare module "src/fileNotFound" { + export function something2(): number; +} declare module "src/newFile" { export function foo(): number; } @@ -719,15 +836,16 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/fileNotFound.ts","./src/filePresent.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":888,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":256,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { "bundle": { "commonSourceDirectory": "./", "sourceFiles": [ - "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -735,7 +853,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 888, + "end": 1038, "kind": "text" } ] @@ -744,7 +862,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 256, + "end": 310, "kind": "text" } ] @@ -753,12 +871,16 @@ declare module "src/main" { } "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -769,17 +891,20 @@ declare module "src/main" { } "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true }, - "./src/filenotfound.ts": { - "version": "-497034637-export function something2() { return 20; }" - }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } }, "options": { @@ -788,6 +913,9 @@ declare module "src/main" { } "outFile": "./outFile.js" }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -796,21 +924,14 @@ declare module "src/main" { } "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1414 + "size": 1703 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-888) -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); +text: (0-1038) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -818,6 +939,17 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -835,13 +967,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-256) -declare module "src/fileNotFound" { - export function something2(): number; -} +text: (0-310) declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } +declare module "src/fileNotFound" { + export function something2(): number; +} declare module "src/newFile" { export function foo(): number; } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index e832c7ac58b4e..e6e53dc20fe40 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -1,6 +1,11 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] +import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] @@ -25,21 +30,20 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:25 AM] Starting compilation in watch mode... +[12:00:27 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. @@ -47,36 +51,56 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:36 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:00:42 AM] Found 2 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -108,6 +132,17 @@ define(["require", "exports"], function (require, exports) { export declare function something(): number; +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] +export {}; + + //// [/user/username/projects/myproject/src/main.js] define(["require", "exports"], function (require, exports) { "use strict"; @@ -120,7 +155,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -128,6 +163,7 @@ export {}; "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -145,9 +181,13 @@ export {}; "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, - "./src/main.ts": { + "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } }, "options": { @@ -155,24 +195,43 @@ export {}; "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filepresent.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 70, + "start": 127, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -183,7 +242,7 @@ export {}; ] }, "version": "FakeTSVersion", - "size": 1081 + "size": 1559 } @@ -192,6 +251,7 @@ Change:: Modify main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); @@ -199,29 +259,36 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:41 AM] File change detected. Starting incremental compilation... +[12:00:47 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:51 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:00:57 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -230,6 +297,8 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -257,7 +326,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./src/main.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -265,6 +334,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/main.ts" ], "fileNamesList": [ @@ -282,8 +352,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/main.ts": { - "version": "-22084070133-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" } }, @@ -292,20 +366,40 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filepresent.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 70, + "start": 127, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -316,7 +410,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ] }, "version": "FakeTSVersion", - "size": 1139 + "size": 1617 } @@ -325,6 +419,7 @@ Change:: Add new module and update main file Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound";something(); //// [/user/username/projects/myproject/src/newFile.ts] @@ -338,13 +433,16 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:59 AM] File change detected. Starting incremental compilation... +[12:01:05 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== @@ -358,21 +456,27 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:13 AM] Found 1 error. Watching for file changes. +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:19 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -383,6 +487,8 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -405,7 +511,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[4,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -413,10 +519,14 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -432,12 +542,16 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" } }, @@ -446,21 +560,41 @@ exitCode:: ExitStatus.undefined "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filepresent.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 102, + "start": 159, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -472,7 +606,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1325 + "size": 1806 } //// [/user/username/projects/myproject/src/newFile.js] @@ -501,16 +635,19 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:19 AM] File change detected. Starting incremental compilation... +[12:01:25 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js @@ -518,22 +655,28 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -src/main.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:27 AM] Found 1 error. Watching for file changes. +[12:01:33 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -543,6 +686,8 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: @@ -565,19 +710,23 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filenotfound.ts","./src/filepresent.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"11598859296-export function something() { return 10; }",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,[5,[{"file":"./src/main.ts","start":102,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ + [ + "./src/filepresent.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -589,20 +738,24 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true }, - "./src/filenotfound.ts": { - "version": "-497034637-export function something2() { return 20; }", - "signature": "-14992185226-export declare function something2(): number;\n" - }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "-1814339108-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" } }, @@ -611,14 +764,34 @@ exitCode:: ExitStatus.undefined "module": 2 }, "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filenotfound.ts", "./src/filepresent.ts", [ @@ -626,7 +799,7 @@ exitCode:: ExitStatus.undefined [ { "file": "./src/main.ts", - "start": 102, + "start": 159, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -638,7 +811,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1495 + "size": 1976 } //// [/user/username/projects/myproject/src/fileNotFound.js] From d073cd4e9861fb31f4f64b20616a289f1981bc34 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 21 Oct 2020 12:32:33 -0700 Subject: [PATCH 21/48] Store program to persist in buildinfo and clean it as part of cleanResolutions --- src/compiler/builder.ts | 546 +++++- src/compiler/program.ts | 15 +- src/compiler/resolutionCache.ts | 2 +- src/compiler/types.ts | 24 +- src/compiler/watchPublic.ts | 8 +- src/services/services.ts | 2 +- src/testRunner/unittests/tsbuild/helpers.ts | 2 + .../unittests/tsbuild/persistResolutions.ts | 36 + src/testRunner/unittests/tsbuild/sample.ts | 18 +- .../unittests/tsc/persistResolutions.ts | 23 + ...nd-uses-it-for-new-program-with-outFile.js | 1261 +++++++++++-- ...-resolution-and-uses-it-for-new-program.js | 1326 ++++++++++++-- .../initial-build/persistResolutions.js | 1560 ++++++++++++++++- ...er-resolutions-are-cleaned-with-outFile.js | 936 +++++++--- ...can-build-after-resolutions-are-cleaned.js | 1015 +++++++++-- ...-saved-in-tsbuildinfo-file-with-outFile.js | 759 +++++--- ...ons-have-been-saved-in-tsbuildinfo-file.js | 784 ++++++--- ...nd-uses-it-for-new-program-with-outFile.js | 879 +++++++--- ...-resolution-and-uses-it-for-new-program.js | 904 ++++++++-- ...nd-uses-it-for-new-program-with-outFile.js | 1412 +++++++++++++-- ...-resolution-and-uses-it-for-new-program.js | 1316 ++++++++++++-- ...er-resolutions-are-cleaned-with-outFile.js | 653 ++++++- ...can-build-after-resolutions-are-cleaned.js | 748 +++++++- ...-saved-in-tsbuildinfo-file-with-outFile.js | 712 +++++++- ...ons-have-been-saved-in-tsbuildinfo-file.js | 567 +++++- ...nd-uses-it-for-new-program-with-outFile.js | 649 ++++++- ...-resolution-and-uses-it-for-new-program.js | 649 ++++++- 27 files changed, 14729 insertions(+), 2077 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index 67b606a697d58..b253f32d65974 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -74,6 +74,22 @@ namespace ts { * true if semantic diagnostics are ReusableDiagnostic instead of Diagnostic */ hasReusableDiagnostic?: true; + persistedProgramInfo?: PersistedProgramState; + } + + export interface PersistedProgramState { + files: readonly SourceFileOfProgramFromBuildInfo[]; + rootFileNames: readonly string[]; + filesByName: ESMap; + fileIncludeReasons: MultiMap; + sourceFileFromExternalLibraryPath: Set | undefined; + redirectTargetsMap: MultiMap; + sourceFileToPackageName: ESMap; + projectReferences: readonly ProjectReference[] | undefined; + resolvedProjectReferences: readonly (ResolvedProjectReferenceOfProgramFromBuildInfo | undefined)[] | undefined; + missingPaths: readonly Path[]; + resolvedTypeReferenceDirectives: ESMap; + fileProcessingDiagnostics: FilePreprocessingDiagnostic[] | undefined; } export const enum BuilderFileEmit { @@ -159,6 +175,7 @@ namespace ts { * true if program has been emitted */ programEmitComplete?: true; + persistedProgramInfo?: PersistedProgramState; } function hasSameKeys(map1: ReadonlyCollection | undefined, map2: ReadonlyCollection | undefined): boolean { @@ -257,7 +274,11 @@ namespace ts { state.seenAffectedFiles = state.seenAffectedFiles || new Set(); } - state.buildInfoEmitPending = !!state.changedFilesSet.size; + if (oldState && newProgram.structureIsReused === StructureIsReused.Completely) { + state.persistedProgramInfo = oldState.persistedProgramInfo; + } + + state.buildInfoEmitPending = !!state.changedFilesSet.size || !!compilerOptions.persistResolutions && newProgram.structureIsReused !== StructureIsReused.Completely; return state; } @@ -298,10 +319,79 @@ namespace ts { */ function releaseCache(state: BuilderProgramState) { BuilderState.releaseCache(state); - // TODO:: If persistResolutions, cache program + createPersistedProgramInfo(state); state.program = undefined; } + function createPersistedProgramInfo(state: BuilderProgramState) { + if (!state.program || !state.compilerOptions.persistResolutions || state.persistedProgramInfo) return; + const filesByName = mapEntries(state.program.getFilesByNameMap(), (key, value) => [key, value ? value.path : value as SourceFileOfProgramFromBuildInfo | Path | typeof missingSourceOfProjectReferenceRedirect | typeof missingFile]); + let sourceFileFromExternalLibraryPath: Set | undefined; + const files = mapToReadonlyArray(state.program.getSourceFiles(), toSourceFileOfProgramFromBuildInfo); + state.persistedProgramInfo = { + files, + rootFileNames: state.program.getRootFileNames(), + filesByName, + fileIncludeReasons: state.program.getFileIncludeReasons(), + sourceFileFromExternalLibraryPath, + redirectTargetsMap: state.program.redirectTargetsMap, + sourceFileToPackageName: state.program.sourceFileToPackageName, + projectReferences: state.program.getProjectReferences(), + resolvedProjectReferences: state.program.getResolvedProjectReferences()?.map(toResolvedProjectReferenceOfProgramFromBuildInfo), + missingPaths: state.program.getMissingFilePaths(), + resolvedTypeReferenceDirectives: state.program.getResolvedTypeReferenceDirectives(), + fileProcessingDiagnostics: state.program.getFileProcessingDiagnostics(), + }; + + function toSourceFileOfProgramFromBuildInfo(sourceFile: SourceFile): SourceFileOfProgramFromBuildInfo { + if (state.program!.isSourceFileFromExternalLibraryPath(sourceFile.path)) (sourceFileFromExternalLibraryPath ||= new Set()).add(sourceFile.path); + const file: SourceFileOfProgramFromBuildInfo = { + fileName: sourceFile.fileName, + originalFileName: sourceFile.originalFileName, + path: sourceFile.path, + resolvedPath: sourceFile.resolvedPath, + flags: sourceFile.flags, + version: sourceFile.version, + typeReferenceDirectives: mapToReadonlyArray(sourceFile.typeReferenceDirectives, toFileReference), + libReferenceDirectives: mapToReadonlyArray(sourceFile.libReferenceDirectives, toFileReference), + referencedFiles: mapToReadonlyArray(sourceFile.referencedFiles, toFileReference), + imports: mapToReadonlyArray(sourceFile.imports, toStringLiteralLikeOfProgramFromBuildInfo), + moduleAugmentations: mapToReadonlyArray(sourceFile.moduleAugmentations, toModuleNameOfProgramFromBuildInfo), + ambientModuleNames: sourceFile.ambientModuleNames, + hasNoDefaultLib: sourceFile.hasNoDefaultLib, + resolvedModules: sourceFile.resolvedModules, + resolvedTypeReferenceDirectiveNames: sourceFile.resolvedTypeReferenceDirectiveNames, + redirectInfo: sourceFile.redirectInfo && { redirectTarget: { path: sourceFile.redirectInfo.redirectTarget.path } } + }; + + if (state.program!.getFilesByNameMap().get(file.path) === sourceFile) filesByName.set(file.path, file); + if (state.program!.getFilesByNameMap().get(file.resolvedPath) === sourceFile) filesByName.set(file.resolvedPath, file); + return file; + } + function toResolvedProjectReferenceOfProgramFromBuildInfo(ref: ResolvedProjectReference | undefined): ResolvedProjectReferenceOfProgramFromBuildInfo | undefined { + return ref && { + commandLine: { + fileNames: ref.commandLine.fileNames, + options: ref.commandLine.options, + projectReferences: ref.commandLine.projectReferences + }, + sourceFile: { version: ref.sourceFile.version, path: ref.sourceFile.path }, + references: ref.references?.map(toResolvedProjectReferenceOfProgramFromBuildInfo) + }; + } + function toStringLiteralLikeOfProgramFromBuildInfo(name: StringLiteralLike): StringLiteralLikeOfProgramFromBuildInfo { + return { kind: name.kind, text: name.text }; + } + + function toModuleNameOfProgramFromBuildInfo(name: StringLiteralLike | Identifier): ModuleNameOfProgramFromBuildInfo { + return isIdentifier(name) ? { kind: name.kind, escapedText: name.escapedText } : toStringLiteralLikeOfProgramFromBuildInfo(name); + } + + function toFileReference(f: FileReference) { + return f.fileName; + } + } + /** * Creates a clone of the state */ @@ -725,6 +815,89 @@ namespace ts { * ProgramBuildInfoFileInfo is string if FileInfo.version === FileInfo.signature && !FileInfo.affectsGlobalScope otherwise encoded FileInfo */ export type ProgramBuildInfoFileInfo = string | ProgramBuildInfoBuilderStateFileInfo; + export type ResolutionWithoutFailedLookupLocations = Omit; + export type PersistedProgramResolution = ResolutionWithoutFailedLookupLocations & + ResolutionWithoutFailedLookupLocations & { + failedLookupLocations?: readonly string[]; + }; + export interface PersistedProgramSourceFile { + fileName: string; + originalFileName: string; + path: string; + resolvedPath: string; + // This currently is set to sourceFile.flags & NodeFlags.PermanentlySetIncrementalFlags but cant be set in type + // Change this if it changes in reusing program + flags: NodeFlags; + version: string; + + typeReferenceDirectives?: readonly string[]; + libReferenceDirectives?: readonly string[]; + referencedFiles?: readonly string[]; + imports?: readonly StringLiteralLikeOfProgramFromBuildInfo[]; + moduleAugmentations?: readonly ModuleNameOfProgramFromBuildInfo[]; + ambientModuleNames?: readonly string[]; + hasNoDefaultLib?: true; + + resolvedModules?: MapLike; + resolvedTypeReferenceDirectiveNames?: MapLike; + redirectInfo?: { readonly redirectTarget: { readonly path: string }; }; + + includeReasons: readonly PersistedProgramFileIncludeReason[]; + isSourceFileFromExternalLibraryPath?: true; + redirectTargets?: readonly string[]; + packageName?: string; + }; + + export interface ResolutionWithFailedLookupLocations { + serializationIndex?: number; + } + export interface ResolvedModuleWithFailedLookupLocations extends ResolutionWithFailedLookupLocations { } + export interface ResolvedTypeReferenceDirectiveWithFailedLookupLocations extends ResolutionWithFailedLookupLocations { } + export interface PersistedProgramReferencedFile { + kind: ReferencedFileKind; + file: string; + index: number; + } + export type PersistedProgramFileIncludeReason = + RootFile | + LibFile | + ProjectReferenceFile | + PersistedProgramReferencedFile | + AutomaticTypeDirectiveFile; + export interface PersistedProgramFilePreprocessingReferencedDiagnostic { + kind: FilePreprocessingDiagnosticsKind.FilePreprocessingReferencedDiagnostic; + reason: PersistedProgramReferencedFile; + diagnostic: keyof typeof Diagnostics; + args?: (string | number | undefined)[]; + } + export interface PersistedProgramFilePreprocessingFileExplainingDiagnostic { + kind: FilePreprocessingDiagnosticsKind.FilePreprocessingFileExplainingDiagnostic; + file?: string; + fileProcessingReason: PersistedProgramFileIncludeReason; + diagnostic: keyof typeof Diagnostics; + args?: (string | number | undefined)[]; + } + export type PersistedProgramFilePreprocessingDiagnostic = PersistedProgramFilePreprocessingReferencedDiagnostic | PersistedProgramFilePreprocessingFileExplainingDiagnostic; + export interface PersistedProgramResolvedProjectReference { + commandLine: { + fileNames: readonly string[] | undefined; + options: CompilerOptions; + projectReferences: readonly ProjectReference[] | undefined; + }; + sourceFile: { version: string; path: string; }; + references: readonly (PersistedProgramResolvedProjectReference | undefined)[] | undefined; + }; + export interface PersistedProgram { + files: readonly PersistedProgramSourceFile[] | undefined; + rootFileNames: readonly string[] | undefined; + filesByName: MapLike | undefined; + projectReferences: readonly ProjectReference[] | undefined; + resolvedProjectReferences: readonly (PersistedProgramResolvedProjectReference | undefined)[] | undefined; + missingPaths: readonly string[] | undefined; + resolvedTypeReferenceDirectives: MapLike | undefined; + fileProcessingDiagnostics: readonly PersistedProgramFilePreprocessingDiagnostic[] | undefined; + resolutions: readonly PersistedProgramResolution[] | undefined; + } export interface ProgramBuildInfo { fileNames: readonly string[]; fileInfos: readonly ProgramBuildInfoFileInfo[]; @@ -734,6 +907,7 @@ namespace ts { exportedModulesMap?: ProgramBuildInfoReferencedMap; semanticDiagnosticsPerFile?: ProgramBuildInfoDiagnostic[]; affectedFilesPendingEmit?: ProgramBuilderInfoFilePendingEmit[]; + peristedProgram?: PersistedProgram; } /** @@ -741,12 +915,15 @@ namespace ts { */ function getProgramBuildInfo(state: Readonly, getCanonicalFileName: GetCanonicalFileName): ProgramBuildInfo | undefined { if (outFileWithoutPersistResolutions(state.compilerOptions)) return undefined; - const currentDirectory = Debug.checkDefined(state.program).getCurrentDirectory(); + const program = Debug.checkDefined(state.program); + const currentDirectory = program.getCurrentDirectory(); const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions)!, currentDirectory)); const fileNames: string[] = []; const fileNameToFileId = new Map(); let fileIdsList: (readonly ProgramBuildInfoFileId[])[] | undefined; let fileNamesToFileIdListId: ESMap | undefined; + let resolutions: (ResolvedModuleWithFailedLookupLocations | ResolvedTypeReferenceDirectiveWithFailedLookupLocations)[] | undefined; + let programFilesByName: ESMap; const fileInfos = arrayFrom(state.fileInfos.entries(), ([key, value]): ProgramBuildInfoFileInfo => { // Ensure fileId const fileId = toFileId(key); @@ -810,15 +987,38 @@ namespace ts { } } + let peristedProgram: PersistedProgram | undefined; + if (state.compilerOptions.persistResolutions) { + // persist program + programFilesByName = new Map(program.getFilesByNameMap()); + const files = mapToReadonlyArrayOrUndefined(program.getSourceFiles(), toPersistedProgramSourceFile); + let filesByName: MapLike | undefined; + for (const key of arrayFrom(programFilesByName.keys()).sort(compareStringsCaseSensitive)) { + const value = program.getFilesByNameMap().get(key)!; + (filesByName ||= {})[relativeToBuildInfo(key)] = value ? relativeToBuildInfo(value.path) : value; + } + peristedProgram = { + files, + rootFileNames: mapToReadonlyArrayOrUndefined(program.getRootFileNames(), relativeToBuildInfoEnsuringAbsolutePath), + filesByName, + projectReferences: program.getProjectReferences()?.map(toProjectReference), + resolvedProjectReferences: program.getResolvedProjectReferences()?.map(toPersistedProgramResolvedProjectReference), + missingPaths: mapToReadonlyArrayOrUndefined(program.getMissingFilePaths(), relativeToBuildInfo), + resolvedTypeReferenceDirectives: toPersistedProgramResolutionMap(program.getResolvedTypeReferenceDirectives()), + fileProcessingDiagnostics: mapToReadonlyArrayOrUndefined(program.getFileProcessingDiagnostics(), toPersistedProgramFilePreprocessingDiagnostic), + resolutions: mapToReadonlyArrayOrUndefined(resolutions, toPersistedProgramResolution), + }; + } return { fileNames, fileInfos, - options: convertToProgramBuildInfoCompilerOptions(state.compilerOptions, relativeToBuildInfoEnsuringAbsolutePath), + options: convertToProgramBuildInfoCompilerOptions(state.compilerOptions, relativeToBuildInfoEnsuringAbsolutePath, !state.compilerOptions.persistResolutions), fileIdsList, referencedMap, exportedModulesMap, semanticDiagnosticsPerFile, affectedFilesPendingEmit, + peristedProgram, }; function relativeToBuildInfoEnsuringAbsolutePath(path: string) { @@ -848,15 +1048,148 @@ namespace ts { } return fileIdListId; } + + function toPersistedProgramSourceFile(sourceFile: SourceFile): PersistedProgramSourceFile { + if (programFilesByName.get(sourceFile.path) === sourceFile) programFilesByName.delete(sourceFile.path); + if (programFilesByName.get(sourceFile.resolvedPath) === sourceFile) programFilesByName.delete(sourceFile.resolvedPath); + const resolvedPath = relativeToBuildInfo(sourceFile.resolvedPath); + return { + fileName: relativeToBuildInfoEnsuringAbsolutePath(sourceFile.fileName), + originalFileName: relativeToBuildInfoEnsuringAbsolutePath(sourceFile.originalFileName), + path: relativeToBuildInfo(sourceFile.path), + resolvedPath, + version: sourceFile.version, + flags: sourceFile.flags & NodeFlags.PermanentlySetIncrementalFlags, + typeReferenceDirectives: mapToReadonlyArrayOrUndefined(sourceFile.typeReferenceDirectives, toPersistedProgramFileReference), + libReferenceDirectives: mapToReadonlyArrayOrUndefined(sourceFile.libReferenceDirectives, toPersistedProgramFileReference), + referencedFiles: mapToReadonlyArrayOrUndefined(sourceFile.referencedFiles, toPersistedProgramFileReference), + imports: mapToReadonlyArrayOrUndefined(sourceFile.imports, toStringLiteralLikeOfProgramFromBuildInfo), + moduleAugmentations: mapToReadonlyArrayOrUndefined(sourceFile.moduleAugmentations, toModuleNameOfProgramFromBuildInfo), + ambientModuleNames: sourceFile.ambientModuleNames.length ? sourceFile.ambientModuleNames : undefined, + hasNoDefaultLib: sourceFile.hasNoDefaultLib ? true : undefined, + redirectInfo: sourceFile.redirectInfo && { redirectTarget: { path: relativeToBuildInfo(sourceFile.redirectInfo.redirectTarget.path) } }, + resolvedModules: toPersistedProgramResolutionMap(sourceFile.resolvedModules), + resolvedTypeReferenceDirectiveNames: toPersistedProgramResolutionMap(sourceFile.resolvedTypeReferenceDirectiveNames), + redirectTargets: mapToReadonlyArrayOrUndefined(program.redirectTargetsMap.get(sourceFile.path), relativeToBuildInfoEnsuringAbsolutePath), + includeReasons: program.getFileIncludeReasons().get(sourceFile.path)!.map(toPersistedProgramFileIncludeReason), + isSourceFileFromExternalLibraryPath: program.isSourceFileFromExternalLibraryPath(sourceFile.path) ? true : undefined, + packageName: program.sourceFileToPackageName.get(sourceFile.path), + }; + } + + function toPersistedProgramReferencedFile(reason: ReferencedFile): PersistedProgramReferencedFile { + return { ...reason, file: relativeToBuildInfo(reason.file) }; + } + + function toPersistedProgramFileIncludeReason(reason: FileIncludeReason): PersistedProgramFileIncludeReason { + return isReferencedFile(reason) ? toPersistedProgramReferencedFile(reason) : reason; + } + + function toPersistedProgramFilePreprocessingDiagnostic(d: FilePreprocessingDiagnostic): PersistedProgramFilePreprocessingDiagnostic { + switch (d.kind) { + case FilePreprocessingDiagnosticsKind.FilePreprocessingFileExplainingDiagnostic: + return { + ...d, + diagnostic: d.diagnostic.key as keyof typeof Diagnostics, + file: d.file && relativeToBuildInfo(d.file), + fileProcessingReason: toPersistedProgramFileIncludeReason(d.fileProcessingReason), + }; + case FilePreprocessingDiagnosticsKind.FilePreprocessingReferencedDiagnostic: + return { + ...d, + diagnostic: d.diagnostic.key as keyof typeof Diagnostics, + reason: toPersistedProgramReferencedFile(d.reason), + }; + default: + Debug.assertNever(d); + } + } + + function toPersistedProgramResolvedProjectReference(ref: ResolvedProjectReference | undefined): PersistedProgramResolvedProjectReference | undefined { + return ref && { + commandLine: { + fileNames: mapToReadonlyArrayOrUndefined(ref.commandLine.fileNames, relativeToBuildInfoEnsuringAbsolutePath), + options: convertToProgramBuildInfoCompilerOptions(ref.commandLine.options, relativeToBuildInfoEnsuringAbsolutePath, /*filterOptions*/ false)!, + projectReferences: mapToReadonlyArrayOrUndefined(ref.commandLine.projectReferences, toProjectReference) + }, + sourceFile: { version: ref.sourceFile.version, path: relativeToBuildInfo(ref.sourceFile.path) }, + references: mapToReadonlyArrayOrUndefined(ref.references, toPersistedProgramResolvedProjectReference) + }; + } + + function toProjectReference(ref: ProjectReference): ProjectReference { + return { + path: relativeToBuildInfoEnsuringAbsolutePath(ref.path), + originalPath: ref.originalPath, + prepend: ref.prepend, + circular: ref.circular + }; + } + + function isResolvedModule(r: ResolvedModuleWithFailedLookupLocations | ResolvedTypeReferenceDirectiveWithFailedLookupLocations): r is ResolvedModuleWithFailedLookupLocations { + return !!(r as ResolvedModuleWithFailedLookupLocations).resolvedModule; + } + + function toPersistedProgramResolution(r: ResolvedModuleWithFailedLookupLocations | ResolvedTypeReferenceDirectiveWithFailedLookupLocations): PersistedProgramResolution { + const resolvedModule = isResolvedModule(r) ? r.resolvedModule : undefined; + const resolvedTypeReferenceDirective = isResolvedModule(r) ? undefined : r.resolvedTypeReferenceDirective; + // Reset serializing index + r.serializationIndex = undefined; + return { + resolvedModule: resolvedModule && { + resolvedFileName: relativeToBuildInfoEnsuringAbsolutePath(resolvedModule.resolvedFileName), + isExternalLibraryImport: resolvedModule.isExternalLibraryImport ? true : undefined, + originalPath: resolvedModule.originalPath && relativeToBuildInfoEnsuringAbsolutePath(resolvedModule.originalPath), + extension: resolvedModule.extension, + packageId: resolvedModule.packageId, + }, + resolvedTypeReferenceDirective: resolvedTypeReferenceDirective && { + resolvedFileName: resolvedTypeReferenceDirective.resolvedFileName && relativeToBuildInfoEnsuringAbsolutePath(resolvedTypeReferenceDirective.resolvedFileName), + primary: resolvedTypeReferenceDirective.primary, + isExternalLibraryImport: resolvedTypeReferenceDirective.isExternalLibraryImport ? true : undefined, + packageId: resolvedTypeReferenceDirective.packageId + }, + failedLookupLocations: mapToReadonlyArrayOrUndefined(r.failedLookupLocations, relativeToBuildInfoEnsuringAbsolutePath), + }; + } + + function toPersistedProgramResolutionMap(resolutionMap: ESMap | undefined) { + if (!resolutionMap || !resolutionMap.size) return undefined; + const mappedResult: MapLike = {}; + resolutionMap.forEach((resolution, key) => { + if (resolution.serializationIndex === undefined) { + (resolutions ||= []).push(resolution); + resolution.serializationIndex = resolutions.length - 1; + } + mappedResult[key] = resolution.serializationIndex; + }); + return mappedResult; + } + + function toStringLiteralLikeOfProgramFromBuildInfo(name: StringLiteralLike): StringLiteralLikeOfProgramFromBuildInfo { + return { kind: name.kind, text: name.text }; + } + + function toModuleNameOfProgramFromBuildInfo(name: StringLiteralLike | Identifier): ModuleNameOfProgramFromBuildInfo { + return isIdentifier(name) ? { kind: name.kind, escapedText: name.escapedText } : toStringLiteralLikeOfProgramFromBuildInfo(name); + } + + function toPersistedProgramFileReference(f: FileReference) { + return relativeToBuildInfoEnsuringAbsolutePath(f.fileName); + } } - function convertToProgramBuildInfoCompilerOptions(options: CompilerOptions, relativeToBuildInfo: (path: string) => string) { + function mapToReadonlyArrayOrUndefined(array: readonly T[] | undefined, map: (value: T) => U): readonly U[] | undefined { + return array?.length ? array.map(map) : undefined; + } + + function convertToProgramBuildInfoCompilerOptions(options: CompilerOptions, relativeToBuildInfo: (path: string) => string, filterOptions: boolean) { let result: CompilerOptions | undefined; const { optionsNameMap } = getOptionsNameMap(); for (const name of getOwnKeys(options).sort(compareStringsCaseSensitive)) { const optionInfo = optionsNameMap.get(name.toLowerCase()); - if (optionInfo?.affectsEmit || optionInfo?.affectsSemanticDiagnostics || name === "skipLibCheck" || name === "skipDefaultLibCheck") { + if (!filterOptions || optionInfo?.affectsEmit || optionInfo?.affectsSemanticDiagnostics || name === "skipLibCheck" || name === "skipDefaultLibCheck") { (result ||= {})[name] = convertToReusableCompilerOptionValue( optionInfo, options[name] as CompilerOptionsValue, @@ -864,6 +1197,7 @@ namespace ts { ); } } + if (!filterOptions && result?.configFilePath) result.configFilePath = relativeToBuildInfo(result.configFilePath); return result; } @@ -1267,14 +1601,14 @@ namespace ts { affectedFilesPendingEmitKind: program.affectedFilesPendingEmit && arrayToMap(program.affectedFilesPendingEmit, value => toFilePath(value[0]), value => value[1]), affectedFilesPendingEmitIndex: program.affectedFilesPendingEmit && 0, }; + let programFromBuildInfo: ProgramFromBuildInfo | false | undefined; return { getState: () => state, backupState: noop, restoreState: noop, getProgram: notImplemented, getProgramOrUndefined: returnUndefined, - // TODO:: - getProgramOrProgramFromBuildInfoOrUndefined: returnUndefined, + getProgramOrProgramFromBuildInfoOrUndefined, releaseProgram: noop, getCompilerOptions: () => state.compilerOptions, getSourceFile: notImplemented, @@ -1294,6 +1628,90 @@ namespace ts { close: noop, }; + function getProgramOrProgramFromBuildInfoOrUndefined() { + if (programFromBuildInfo !== undefined) return programFromBuildInfo || undefined; + + if (!program.peristedProgram) { + programFromBuildInfo = false; + return undefined; + } + + const filesByName = new Map(); + const fileIncludeReasons = createMultiMap(); + let sourceFileFromExternalLibraryPath: Set | undefined; + const redirectTargetsMap = createMultiMap(); + const sourceFileToPackageName = new Map(); + if (program.peristedProgram.filesByName) { + for (const key in program.peristedProgram.filesByName) { + if (hasProperty(program.peristedProgram.filesByName, key)) { + const value = program.peristedProgram.filesByName[key]; + filesByName.set(toPath(key), isString(value) ? toPath(value) : value); + } + } + } + const resolutions = mapToReadonlyArray(program.peristedProgram.resolutions, toResolution); + const files = mapToReadonlyArray(program.peristedProgram.files, toSourceFileOfProgramFromBuildInfo); + state.persistedProgramInfo = { + files, + rootFileNames: mapToReadonlyArray(program.peristedProgram.rootFileNames, toAbsolutePath), + filesByName, + fileIncludeReasons, + sourceFileFromExternalLibraryPath, + redirectTargetsMap, + sourceFileToPackageName, + projectReferences: program.peristedProgram.projectReferences?.map(toProjectReference), + resolvedProjectReferences: program.peristedProgram.resolvedProjectReferences?.map(toResolvedProjectReference), + missingPaths: mapToReadonlyArray(program.peristedProgram.missingPaths, toPath), + resolvedTypeReferenceDirectives: toResolutionMap(program.peristedProgram.resolvedTypeReferenceDirectives) || new Map(), + fileProcessingDiagnostics: map(program.peristedProgram.fileProcessingDiagnostics, toFileProcessingDiagnostic), + }; + return programFromBuildInfo = createProgramFromBuildInfo(state.persistedProgramInfo, state.compilerOptions); + + function toSourceFileOfProgramFromBuildInfo(file: PersistedProgramSourceFile): SourceFileOfProgramFromBuildInfo { + const path = toPath(file.path); + const resolvedPath = toPath(file.resolvedPath); + + fileIncludeReasons.set(path, file.includeReasons.map(toFileIncludeReason)); + if (file.isSourceFileFromExternalLibraryPath) (sourceFileFromExternalLibraryPath ||= new Set()).add(path); + if (file.redirectTargets) redirectTargetsMap.set(path, file.redirectTargets.map(toAbsolutePath)); + if (file.packageName) sourceFileToPackageName.set(path, file.packageName); + + const sourceFile: SourceFileOfProgramFromBuildInfo = { + fileName: toAbsolutePath(file.fileName), + originalFileName: toAbsolutePath(file.originalFileName), + path, + resolvedPath, + flags: file.flags, + version: file.version, + typeReferenceDirectives: mapToReadonlyArray(file.typeReferenceDirectives, toAbsolutePath), + libReferenceDirectives: mapToReadonlyArray(file.libReferenceDirectives, toAbsolutePath), + referencedFiles: mapToReadonlyArray(file.referencedFiles, toAbsolutePath), + imports: file.imports || emptyArray, + moduleAugmentations: file.moduleAugmentations || emptyArray, + ambientModuleNames: file.ambientModuleNames || emptyArray, + hasNoDefaultLib: file.hasNoDefaultLib || false, + resolvedModules: toResolutionMap(file.resolvedModules), + resolvedTypeReferenceDirectiveNames: toResolutionMap(file.resolvedTypeReferenceDirectiveNames), + redirectInfo: file.redirectInfo && { redirectTarget: { path: toPath(file.redirectInfo.redirectTarget.path) } } + }; + + if (!filesByName.has(path)) filesByName.set(path, sourceFile); + if (!filesByName.has(resolvedPath)) filesByName.set(resolvedPath, sourceFile); + return sourceFile; + } + + function toResolutionMap(resolutionMap: MapLike | undefined) { + if (!resolutionMap) return undefined; + const result = new Map(); + for (const key in resolutionMap) { + if (hasProperty(resolutionMap, key)) { + result.set(key, resolutions[resolutionMap[key]]); + } + } + return result; + } + } + function toPath(path: string) { return ts.toPath(path, buildInfoDirectory, getCanonicalFileName); } @@ -1313,17 +1731,112 @@ namespace ts { function toMapOfReferencedSet(referenceMap: ProgramBuildInfoReferencedMap | undefined): ReadonlyESMap | undefined { return referenceMap && arrayToMap(referenceMap, value => toFilePath(value[0]), value => toFilePathsSet(value[1])); } + + function toReferencedFile(reason: PersistedProgramReferencedFile): ReferencedFile { + return { ...reason, file: toPath(reason.file) }; + } + + function toFileIncludeReason(reason: PersistedProgramFileIncludeReason): FileIncludeReason { + return isReferencedFile(reason) ? toReferencedFile(reason) : reason; + } + + function toResolution({ resolvedModule, resolvedTypeReferenceDirective, failedLookupLocations }: PersistedProgramResolution): ResolvedModuleWithFailedLookupLocations & ResolvedTypeReferenceDirectiveWithFailedLookupLocations { + return { + resolvedModule: resolvedModule && { + resolvedFileName: toAbsolutePath(resolvedModule.resolvedFileName), + isExternalLibraryImport: resolvedModule.isExternalLibraryImport ? true : undefined, + originalPath: resolvedModule.originalPath && toAbsolutePath(resolvedModule.originalPath), + extension: resolvedModule.extension, + packageId: resolvedModule.packageId, + }, + resolvedTypeReferenceDirective: resolvedTypeReferenceDirective && { + resolvedFileName: resolvedTypeReferenceDirective.resolvedFileName && toAbsolutePath(resolvedTypeReferenceDirective.resolvedFileName), + primary: resolvedTypeReferenceDirective.primary, + isExternalLibraryImport: resolvedTypeReferenceDirective.isExternalLibraryImport ? true : undefined, + packageId: resolvedTypeReferenceDirective.packageId + }, + failedLookupLocations: failedLookupLocations ? failedLookupLocations.map(toAbsolutePath) : [] + }; + } + + function toProjectReference(ref: ProjectReference): ProjectReference { + return { + path: toAbsolutePath(ref.path), + originalPath: ref.originalPath, + prepend: ref.prepend, + circular: ref.circular + }; + } + + function toResolvedProjectReference(ref: PersistedProgramResolvedProjectReference | undefined): ResolvedProjectReferenceOfProgramFromBuildInfo | undefined { + return ref && { + commandLine: { + fileNames: ref.commandLine.fileNames?.map(toAbsolutePath) || [], + options: convertToOptionsWithAbsolutePaths(ref.commandLine.options, toAbsolutePath), + projectReferences: ref.commandLine.projectReferences?.map(toProjectReference) + }, + sourceFile: { version: ref.sourceFile.version, path: toPath(ref.sourceFile.path) }, + references: ref.references?.map(toResolvedProjectReference) + }; + } + + function toFileProcessingDiagnostic(d: PersistedProgramFilePreprocessingDiagnostic): FilePreprocessingDiagnostic { + switch (d.kind) { + case FilePreprocessingDiagnosticsKind.FilePreprocessingFileExplainingDiagnostic: + return { + ...d, + diagnostic: Diagnostics[d.diagnostic], + file: d.file ? toPath(d.file) : undefined, + fileProcessingReason: toFileIncludeReason(d.fileProcessingReason), + }; + case FilePreprocessingDiagnosticsKind.FilePreprocessingReferencedDiagnostic: + return { + ...d, + diagnostic: Diagnostics[d.diagnostic], + reason: toReferencedFile(d.reason), + }; + default: + Debug.assertNever(d); + } + } + } + + function mapToReadonlyArray(array: readonly T[] | undefined, map: (value: T) => U): readonly U[] { + return array?.length ? array.map(map) : emptyArray; + } + + function createProgramFromBuildInfo(persistedProgramInfo: PersistedProgramState, compilerOptions: CompilerOptions): ProgramFromBuildInfo { + return { + programFromBuildInfo: true, + getCompilerOptions: () => compilerOptions, + getRootFileNames: () => persistedProgramInfo.rootFileNames, + getSourceFiles: () => persistedProgramInfo.files, + getSourceFileByPath: path => { + const file = persistedProgramInfo.filesByName.get(path); + return file && !isString(file) ? file : undefined; + }, + getProjectReferences: () => persistedProgramInfo.projectReferences, + getResolvedProjectReferences: () => persistedProgramInfo.resolvedProjectReferences, + getMissingFilePaths: () => persistedProgramInfo.missingPaths, + getFileIncludeReasons: () => persistedProgramInfo.fileIncludeReasons, + getResolvedTypeReferenceDirectives: () => persistedProgramInfo.resolvedTypeReferenceDirectives, + getFilesByNameMap: () => persistedProgramInfo.filesByName, + isSourceFileFromExternalLibraryPath: path => !!persistedProgramInfo.sourceFileFromExternalLibraryPath?.has(path), + getFileProcessingDiagnostics: () => persistedProgramInfo.fileProcessingDiagnostics, + redirectTargetsMap: persistedProgramInfo.redirectTargetsMap, + sourceFileToPackageName: persistedProgramInfo.sourceFileToPackageName, + }; } - export function createRedirectedBuilderProgram(getState: () => { program: Program | undefined; compilerOptions: CompilerOptions; }, configFileParsingDiagnostics: readonly Diagnostic[]): BuilderProgram { + export function createRedirectedBuilderProgram(getState: () => Pick, configFileParsingDiagnostics: readonly Diagnostic[]): BuilderProgram { + let programFromBuildInfo: ProgramFromBuildInfo | false | undefined; return { getState: notImplemented, backupState: noop, restoreState: noop, getProgram, getProgramOrUndefined: () => getState().program, - // TODO:: - getProgramOrProgramFromBuildInfoOrUndefined: () => getState().program, + getProgramOrProgramFromBuildInfoOrUndefined, releaseProgram: () => getState().program = undefined, getCompilerOptions: () => getState().compilerOptions, getSourceFile: fileName => getProgram().getSourceFile(fileName), @@ -1344,5 +1857,16 @@ namespace ts { function getProgram() { return Debug.checkDefined(getState().program); } + + function getProgramOrProgramFromBuildInfoOrUndefined() { + const state = getState(); + if (state.program) return state.program; + if (programFromBuildInfo !== undefined) return programFromBuildInfo || undefined; + if (!state.persistedProgramInfo) { + programFromBuildInfo = false; + return undefined; + } + return programFromBuildInfo = createProgramFromBuildInfo(state.persistedProgramInfo, state.compilerOptions); + } } } diff --git a/src/compiler/program.ts b/src/compiler/program.ts index ed92148681da4..2a60cd9174ecb 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -597,7 +597,11 @@ namespace ts { } /*@internal*/ - export function isReferencedFile(reason: FileIncludeReason | undefined): reason is ReferencedFile { + export function isReferencedFile(reason: FileIncludeReason | undefined): reason is ReferencedFile; + /*@internal*/ + export function isReferencedFile(reason: FileIncludeReason | PersistedProgramFileIncludeReason | undefined): reason is PersistedProgramReferencedFile; + /*@internal*/ + export function isReferencedFile(reason: FileIncludeReason | PersistedProgramFileIncludeReason | undefined): reason is ReferencedFile | PersistedProgramReferencedFile { switch (reason?.kind) { case FileIncludeKind.Import: case FileIncludeKind.ReferenceFile: @@ -833,7 +837,7 @@ namespace ts { const cachedDeclarationDiagnosticsForFile: DiagnosticCache = {}; let resolvedTypeReferenceDirectives = new Map(); - let fileProcessingDiagnostics: FilePreprocessingDiagnostics[] | undefined; + let fileProcessingDiagnostics: FilePreprocessingDiagnostic[] | undefined; // The below settings are to track if a .js file should be add to the program if loaded via searching under node_modules. // This works as imported modules are discovered recursively in a depth first manner, specifically: @@ -1706,7 +1710,7 @@ namespace ts { newSourceFile.resolvedTypeReferenceDirectiveNames = oldSourceFile.resolvedTypeReferenceDirectiveNames; } } - const oldFilesByNameMap = oldProgram.getFilesByNameMap() as ESMap; + const oldFilesByNameMap = oldProgram.getFilesByNameMap() as ESMap; oldFilesByNameMap.forEach((oldFile, path) => { if (!oldFile) { filesByName.set(path, oldFile as false | 0); @@ -2894,7 +2898,8 @@ namespace ts { function processTypeReferenceDirectives(file: SourceFile) { // We lower-case all type references because npm automatically lowercases all packages. See GH#9824. const typeDirectives = map(file.typeReferenceDirectives, ref => toFileNameLowerCase(ref.fileName)); - if (!typeDirectives) { + if (!typeDirectives?.length) { + file.resolvedTypeReferenceDirectiveNames = undefined; return; } @@ -2914,7 +2919,7 @@ namespace ts { resolved: ResolvedTypeReferenceDirectiveWithFailedLookupLocations, reason: FileIncludeReason ): void { - tracing?.push(tracing.Phase.Program, "processTypeReferenceDirective", { directive: typeReferenceDirective, hasResolved: !!resolveModuleNamesReusingOldState, refKind: reason.kind, refPath: isReferencedFile(reason) ? reason.file : undefined }); + tracing?.push(tracing.Phase.Program, "processTypeReferenceDirective", { directive: typeReferenceDirective, hasResolved: !!resolved.resolvedTypeReferenceDirective, refKind: reason.kind, refPath: isReferencedFile(reason) ? reason.file : undefined }); processTypeReferenceDirectiveWorker(typeReferenceDirective, resolved, reason); tracing?.pop(); } diff --git a/src/compiler/resolutionCache.ts b/src/compiler/resolutionCache.ts index a77a42d175cd6..e2732777ed2bd 100644 --- a/src/compiler/resolutionCache.ts +++ b/src/compiler/resolutionCache.ts @@ -27,7 +27,7 @@ namespace ts { clear(): void; } - interface ResolutionWithFailedLookupLocations { + export interface ResolutionWithFailedLookupLocations { readonly failedLookupLocations: string[]; isInvalidated?: boolean; refCount?: number; diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 3b5298a31417d..818d9db65db66 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -3574,7 +3574,7 @@ namespace ts { // It is used to resolve module names in the checker. // Content of this field should never be used directly - use getResolvedModuleFileName/setResolvedModuleFileName functions instead /* @internal */ resolvedModules?: ESMap; - /* @internal */ resolvedTypeReferenceDirectiveNames: ESMap; + /* @internal */ resolvedTypeReferenceDirectiveNames?: ESMap; /* @internal */ imports: readonly StringLiteralLike[]; // Identifier only if `declare global` /* @internal */ moduleAugmentations: readonly (StringLiteral | Identifier)[]; @@ -3859,7 +3859,7 @@ namespace ts { } /*@internal*/ - export type FilePreprocessingDiagnostics = FilePreprocessingReferencedDiagnostic | FilePreprocessingFileExplainingDiagnostic; + export type FilePreprocessingDiagnostic = FilePreprocessingReferencedDiagnostic | FilePreprocessingFileExplainingDiagnostic; /*@internal*/ export const missingSourceOfProjectReferenceRedirect = false; @@ -3935,7 +3935,7 @@ namespace ts { getInstantiationCount(): number; getRelationCacheSizes(): { assignable: number, identity: number, subtype: number, strictSubtype: number }; - /* @internal */ getFileProcessingDiagnostics(): FilePreprocessingDiagnostics[] | undefined; + /* @internal */ getFileProcessingDiagnostics(): FilePreprocessingDiagnostic[] | undefined; /* @internal */ getResolvedTypeReferenceDirectives(): ESMap; isSourceFileFromExternalLibrary(file: SourceFile): boolean; /* @internal */ isSourceFileFromExternalLibraryPath(path: Path): boolean; @@ -3991,14 +3991,13 @@ namespace ts { /*@internal*/ export interface IdentifierOfProgramFromBuildInfo { kind: SyntaxKind.Identifier; - escapedText: string; + escapedText: __String; } /*@internal*/ export interface StringLiteralLikeOfProgramFromBuildInfo { kind: SyntaxKind.StringLiteral | SyntaxKind.NoSubstitutionTemplateLiteral; text: string; - escapedText: string; } /*@internal*/ @@ -4010,6 +4009,8 @@ namespace ts { originalFileName: string; path: Path; resolvedPath: Path; + // This currently is set to sourceFile.flags & NodeFlags.PermanentlySetIncrementalFlags but cant be set in type + // Change this if it changes in reusing program flags: NodeFlags; version: string; @@ -4017,12 +4018,12 @@ namespace ts { libReferenceDirectives: readonly string[]; referencedFiles: readonly string[]; imports: readonly StringLiteralLikeOfProgramFromBuildInfo[]; - moduleAugmentations: ModuleNameOfProgramFromBuildInfo[]; + moduleAugmentations: readonly ModuleNameOfProgramFromBuildInfo[]; ambientModuleNames: readonly string[]; hasNoDefaultLib: boolean; resolvedModules?: ESMap; - resolvedTypeReferenceDirectiveNames: ESMap; + resolvedTypeReferenceDirectiveNames?: ESMap; redirectInfo?: RedirectInfoOfProgramFromBuildInfo; } @@ -4032,20 +4033,19 @@ namespace ts { getCompilerOptions(): CompilerOptions; getRootFileNames(): readonly string[]; - getSourceFiles(): SourceFileOfProgramFromBuildInfo[]; + getSourceFiles(): readonly SourceFileOfProgramFromBuildInfo[]; getSourceFileByPath(path: Path): SourceFileOfProgramFromBuildInfo | undefined; getProjectReferences(): readonly ProjectReference[] | undefined; - getResolvedProjectReferences(): readonly ResolvedProjectReferenceOfProgramFromBuildInfo[] | undefined; + getResolvedProjectReferences(): readonly (ResolvedProjectReferenceOfProgramFromBuildInfo | undefined)[] | undefined; getMissingFilePaths(): readonly Path[]; getFileIncludeReasons(): MultiMap; getResolvedTypeReferenceDirectives(): ESMap; - getFilesByNameMap(): ReadonlyESMap; + getFilesByNameMap(): ReadonlyESMap; isSourceFileFromExternalLibraryPath(path: Path): boolean; - getFileProcessingDiagnostics(): FilePreprocessingDiagnostics[] | undefined; + getFileProcessingDiagnostics(): FilePreprocessingDiagnostic[] | undefined; redirectTargetsMap: MultiMap; sourceFileToPackageName: ESMap; - structureIsReused?: StructureIsReused; } /* @internal */ diff --git a/src/compiler/watchPublic.ts b/src/compiler/watchPublic.ts index 0f15b473e4922..2c98f0ffa24a9 100644 --- a/src/compiler/watchPublic.ts +++ b/src/compiler/watchPublic.ts @@ -28,13 +28,13 @@ namespace ts { if (!content) return emitSkippedWithNoDiagnostics; const buildInfo = getBuildInfo(content); if (buildInfo.version !== version) return emitSkippedWithNoDiagnostics; - if (!buildInfo.program) return emitSkippedWithNoDiagnostics; - // TODO:: Clean the actual program - let newContent = content; + if (!buildInfo.program?.peristedProgram) return emitSkippedWithNoDiagnostics; + const { program: { peristedProgram, ...program } } = buildInfo; + buildInfo.program = program; // Actual writeFile with new program const emitDiagnostics = createDiagnosticCollection(); - writeFile(host, emitDiagnostics, buildInfoPath, newContent, /*writeByteOrderMark*/ false); + writeFile(host, emitDiagnostics, buildInfoPath, getBuildInfoText(buildInfo), /*writeByteOrderMark*/ false); return { emitSkipped: false, diagnostics: emitDiagnostics.getDiagnostics(), diff --git a/src/services/services.ts b/src/services/services.ts index e7f7cb6bd2172..1a33109c36bc8 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -637,7 +637,7 @@ namespace ts { public identifiers!: ESMap; public nameTable: UnderscoreEscapedMap | undefined; public resolvedModules: ESMap | undefined; - public resolvedTypeReferenceDirectiveNames!: ESMap; + public resolvedTypeReferenceDirectiveNames: ESMap | undefined; public imports!: readonly StringLiteralLike[]; public moduleAugmentations!: StringLiteral[]; private namedDeclarations: ESMap | undefined; diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index 05800deaaac4f..c1693a4377450 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -247,6 +247,7 @@ interface Symbol { exportedModulesMap?: MapLike; semanticDiagnosticsPerFile?: readonly ReadableProgramBuildInfoDiagnostic[]; affectedFilesPendingEmit?: readonly ReadableProgramBuilderInfoFilePendingEmit[]; + peristedProgram?: PersistedProgram; } type ReadableBuildInfo = Omit & { program: ReadableProgramBuildInfo | undefined; size: number; }; function generateBuildInfoProgramBaseline(sys: System, originalWriteFile: System["writeFile"], buildInfoPath: string, buildInfo: BuildInfo) { @@ -271,6 +272,7 @@ interface Symbol { emitKind === BuilderFileEmit.Full ? "Full" : Debug.assertNever(emitKind) ]), + peristedProgram: buildInfo.program.peristedProgram, }; const version = buildInfo.version === ts.version ? fakes.version : buildInfo.version; const result: ReadableBuildInfo = { diff --git a/src/testRunner/unittests/tsbuild/persistResolutions.ts b/src/testRunner/unittests/tsbuild/persistResolutions.ts index 7b609f8065d74..2de5a525476de 100644 --- a/src/testRunner/unittests/tsbuild/persistResolutions.ts +++ b/src/testRunner/unittests/tsbuild/persistResolutions.ts @@ -46,6 +46,22 @@ namespace ts { subScenario: "Write file that could not be resolved", buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => fs.writeFileSync(`/src/project/src/fileNotFound.ts`, "export function something2() { return 20; }"), + // when doing clean build, fileNotFound.ts would be resolved so the output order in outFile.js would change + // In build mode the out is generated only when there are no errors + // Outputs are generated, buildinfo is updated to report no errors + cleanBuildDiscrepancies: () => new Map([ + [`/src/project/src/filepresent.js`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/filepresent.d.ts`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/filenotfound.js`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/filenotfound.d.ts`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/anotherfilereusingresolution.js`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/anotherfilereusingresolution.d.ts`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/main.js`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/main.d.ts`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/newfile.js`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/newfile.d.ts`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/tsconfig.tsbuildinfo`, CleanBuildDescrepancy.CleanFileTextDifferent], + ]), }, { subScenario: "Clean resolutions", @@ -53,6 +69,12 @@ namespace ts { modifyFs: noop, commandLineArgs: ["--b", "src/project", "--cleanPersistedProgram"] }, + { + subScenario: "Clean resolutions again", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: noop, + commandLineArgs: ["--b", "src/project", "--cleanPersistedProgram"] + }, noChangeRun, { subScenario: "Modify main file", @@ -87,6 +109,14 @@ namespace ts { subScenario: "Write file that could not be resolved", buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => fs.writeFileSync(`/src/project/src/fileNotFound.ts`, "export function something2() { return 20; }"), + // when doing clean build, fileNotFound.ts would be resolved so the output order in outFile.js would change + // In build mode the out is generated only when there are no errors + cleanBuildDiscrepancies: () => new Map([ + ["/src/project/outfile.tsbuildinfo", CleanBuildDescrepancy.CleanFileTextDifferent], + ["/src/project/outfile.js", CleanBuildDescrepancy.CleanFilePresent], + ["/src/project/outfile.d.ts", CleanBuildDescrepancy.CleanFilePresent], + ["/src/project/outfile.tsbuildinfo.baseline.txt", CleanBuildDescrepancy.CleanFilePresent], + ]), }, { subScenario: "Clean resolutions", @@ -94,6 +124,12 @@ namespace ts { modifyFs: noop, commandLineArgs: ["--b", "src/project", "--cleanPersistedProgram"] }, + { + subScenario: "Clean resolutions again", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: noop, + commandLineArgs: ["--b", "src/project", "--cleanPersistedProgram"] + }, noChangeRun, { subScenario: "Modify main file", diff --git a/src/testRunner/unittests/tsbuild/sample.ts b/src/testRunner/unittests/tsbuild/sample.ts index a3151b5e2de1e..aa205353e26a9 100644 --- a/src/testRunner/unittests/tsbuild/sample.ts +++ b/src/testRunner/unittests/tsbuild/sample.ts @@ -516,13 +516,19 @@ class someClass2 { }`), subScenario: "persistResolutions", baselinePrograms: true, fs: () => projFs, - modifyFs: fs => fs.writeFileSync("/src/core/tsconfig.json", JSON.stringify({ - compilerOptions: { - composite: true, - skipDefaultLibCheck: true, - persistResolutions: true, + modifyFs: fs => { + persistResolutions("/src/core/tsconfig.json"); + persistResolutions("/src/logic/tsconfig.json"); + persistResolutions("/src/tests/tsconfig.json"); + function persistResolutions(file: string) { + const content = JSON.parse(fs.readFileSync(file, "utf-8")); + content.compilerOptions = { + ...content.compilerOptions || {}, + persistResolutions: true + }; + fs.writeFileSync(file, JSON.stringify(content, /*replacer*/ undefined, 4)); } - })), + }, commandLineArgs: ["--b", "/src/tests"], incrementalScenarios: [ ...coreChanges, diff --git a/src/testRunner/unittests/tsc/persistResolutions.ts b/src/testRunner/unittests/tsc/persistResolutions.ts index 621e9e3ebcd2c..a6fad095c2d36 100644 --- a/src/testRunner/unittests/tsc/persistResolutions.ts +++ b/src/testRunner/unittests/tsc/persistResolutions.ts @@ -46,6 +46,10 @@ namespace ts { subScenario: "Write file that could not be resolved", buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => fs.writeFileSync(`/src/project/src/fileNotFound.ts`, "export function something2() { return 20; }"), + // when doing clean build, fileNotFound.ts would be resolved so the output order in outFile.js would change + cleanBuildDiscrepancies: () => new Map([ + [`/src/project/tsconfig.tsbuildinfo`, CleanBuildDescrepancy.CleanFileTextDifferent] + ]), }, { subScenario: "Clean resolutions", @@ -53,6 +57,12 @@ namespace ts { modifyFs: noop, commandLineArgs: ["--p", "src/project", "--cleanPersistedProgram"] }, + { + subScenario: "Clean resolutions again", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: noop, + commandLineArgs: ["--p", "src/project", "--cleanPersistedProgram"] + }, noChangeRun, { subScenario: "Modify main file", @@ -87,6 +97,13 @@ namespace ts { subScenario: "Write file that could not be resolved", buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => fs.writeFileSync(`/src/project/src/fileNotFound.ts`, "export function something2() { return 20; }"), + // when doing clean build, fileNotFound.ts would be resolved so the output order in outFile.js would change + cleanBuildDiscrepancies: () => new Map([ + ["/src/project/outfile.tsbuildinfo", CleanBuildDescrepancy.CleanFileTextDifferent], + ["/src/project/outfile.js", CleanBuildDescrepancy.CleanFileTextDifferent], + ["/src/project/outfile.d.ts", CleanBuildDescrepancy.CleanFileTextDifferent], + ["/src/project/outfile.tsbuildinfo.baseline.txt", CleanBuildDescrepancy.CleanFileTextDifferent] + ]), }, { subScenario: "Clean resolutions", @@ -94,6 +111,12 @@ namespace ts { modifyFs: noop, commandLineArgs: ["--p", "src/project", "--cleanPersistedProgram"] }, + { + subScenario: "Clean resolutions again", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: noop, + commandLineArgs: ["--p", "src/project", "--cleanPersistedProgram"] + }, noChangeRun, { subScenario: "Modify main file", diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index e92db2d934a63..fc58b43595f91 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -78,7 +78,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -111,8 +111,11 @@ No cached semantic diagnostics in the builder:: }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -122,10 +125,139 @@ No cached semantic diagnostics in the builder:: "./src/filepresent.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1225 + "size": 3798 } @@ -136,24 +268,6 @@ Input:: Output:: /lib/tsc --b src/project -======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' does not exist. -File '/src/project/src/fileNotFound.tsx' does not exist. -File '/src/project/src/fileNotFound.d.ts' does not exist. -File '/src/project/src/fileNotFound.js' does not exist. -File '/src/project/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/src/project/src'. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. -======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -170,7 +284,7 @@ Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts @@ -193,24 +307,9 @@ import { something2 } from "./fileNotFound";something(); Output:: /lib/tsc --b src/project -======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' does not exist. -File '/src/project/src/fileNotFound.tsx' does not exist. -File '/src/project/src/fileNotFound.d.ts' does not exist. -File '/src/project/src/fileNotFound.js' does not exist. -File '/src/project/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/src/project/src'. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -227,7 +326,7 @@ Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts @@ -238,7 +337,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -271,8 +370,11 @@ No cached semantic diagnostics in the builder:: }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -282,10 +384,139 @@ No cached semantic diagnostics in the builder:: "./src/filepresent.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1238 + "size": 3824 } @@ -304,28 +535,15 @@ export function foo() { return 20; } Output:: /lib/tsc --b src/project -======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' does not exist. -File '/src/project/src/fileNotFound.tsx' does not exist. -File '/src/project/src/fileNotFound.d.ts' does not exist. -File '/src/project/src/fileNotFound.js' does not exist. -File '/src/project/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/src/project/src'. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. -======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -342,7 +560,7 @@ Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts @@ -354,7 +572,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -395,8 +613,11 @@ No cached semantic diagnostics in the builder:: }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -407,10 +628,170 @@ No cached semantic diagnostics in the builder:: "./src/newfile.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 3 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1376 + "size": 4420 } @@ -422,6 +803,315 @@ export function something2() { return 20; } +Output:: +/lib/tsc --b src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/fileNotFound.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 1 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 4822 +} + + + +Change:: Clean resolutions +Input:: + + +Output:: +/lib/tsc --b src/project --cleanPersistedProgram +exitCode:: ExitStatus.Success + + +//// [/src/project/outFile.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} + + + +Change:: Clean resolutions again +Input:: + + +Output:: +/lib/tsc --b src/project --cleanPersistedProgram +exitCode:: ExitStatus.Success + + + + +Change:: no-change-run +Input:: + + Output:: /lib/tsc --b src/project ======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== @@ -505,7 +1195,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":1},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -635,8 +1325,11 @@ declare module "src/main" { } }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -649,37 +1342,196 @@ declare module "src/main" { } "./src/newfile.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1779 + "size": 5156 } -Change:: Clean resolutions -Input:: - - -Output:: -/lib/tsc --b src/project --cleanPersistedProgram -exitCode:: ExitStatus.Success - - -//// [/src/project/outFile.tsbuildinfo] file written with same contents - - -Change:: no-change-run -Input:: - - -Output:: -/lib/tsc --b src/project -exitCode:: ExitStatus.Success - - - - Change:: Modify main file Input:: //// [/src/project/src/main.ts] @@ -691,28 +1543,14 @@ import { something2 } from "./fileNotFound";something();something(); Output:: /lib/tsc --b src/project -======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== -======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/src/project/src'. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. -======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. exitCode:: ExitStatus.Success Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts @@ -760,7 +1598,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1100,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1100,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":1},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -891,8 +1729,11 @@ declare module "src/main" { } }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -905,9 +1746,191 @@ declare module "src/main" { } "./src/newfile.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1791 + "size": 5180 } diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index f651956cc348e..9521c5922bb10 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -82,7 +82,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -119,7 +119,10 @@ Semantic diagnostics in builder refreshed for:: }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "traceResolution": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -180,10 +183,139 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts", "Full" ] - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1678 + "size": 4251 } @@ -194,24 +326,6 @@ Input:: Output:: /lib/tsc --b src/project -======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' does not exist. -File '/src/project/src/fileNotFound.tsx' does not exist. -File '/src/project/src/fileNotFound.d.ts' does not exist. -File '/src/project/src/fileNotFound.js' does not exist. -File '/src/project/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/src/project/src'. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. -======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -228,7 +342,7 @@ Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts @@ -251,24 +365,9 @@ import { something2 } from "./fileNotFound";something(); Output:: /lib/tsc --b src/project -======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' does not exist. -File '/src/project/src/fileNotFound.tsx' does not exist. -File '/src/project/src/fileNotFound.d.ts' does not exist. -File '/src/project/src/fileNotFound.js' does not exist. -File '/src/project/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/src/project/src'. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -285,7 +384,7 @@ Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts @@ -297,7 +396,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -334,7 +433,10 @@ Semantic diagnostics in builder refreshed for:: }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "traceResolution": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -392,10 +494,139 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts", "Full" ] - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1738 + "size": 4324 } @@ -414,28 +645,15 @@ export function foo() { return 20; } Output:: /lib/tsc --b src/project -======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' does not exist. -File '/src/project/src/fileNotFound.tsx' does not exist. -File '/src/project/src/fileNotFound.d.ts' does not exist. -File '/src/project/src/fileNotFound.js' does not exist. -File '/src/project/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/src/project/src'. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. -======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -452,7 +670,7 @@ Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts @@ -466,7 +684,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -512,7 +730,10 @@ Semantic diagnostics in builder refreshed for:: }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "traceResolution": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -576,10 +797,170 @@ Semantic diagnostics in builder refreshed for:: "./src/newfile.ts", "Full" ] - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 3 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1935 + "size": 4979 } @@ -591,6 +972,379 @@ export function something2() { return 20; } +Output:: +/lib/tsc --b src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/fileNotFound.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/fileNotFound.ts + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-13705775197-export declare function something2(): number;\r\n" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-3405156953-export declare function foo(): number;\r\n" + }, + "./src/main.ts": { + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filenotfound.ts", + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filenotfound.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 1 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 5448 +} + + + +Change:: Clean resolutions +Input:: + + +Output:: +/lib/tsc --b src/project --cleanPersistedProgram +exitCode:: ExitStatus.Success + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]]},"version":"FakeTSVersion"} + + + +Change:: Clean resolutions again +Input:: + + +Output:: +/lib/tsc --b src/project --cleanPersistedProgram +exitCode:: ExitStatus.Success + + + + +Change:: no-change-run +Input:: + + Output:: /lib/tsc --b src/project ======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== @@ -624,7 +1378,6 @@ Program files:: /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: -/src/project/src/fileNotFound.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/main.ts @@ -695,7 +1448,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":1},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -748,7 +1501,10 @@ define(["require", "exports"], function (require, exports) { }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "traceResolution": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -769,37 +1525,196 @@ define(["require", "exports"], function (require, exports) { "./src/filepresent.ts", "./src/main.ts", "./src/newfile.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1617 + "size": 4994 } -Change:: Clean resolutions -Input:: - - -Output:: -/lib/tsc --b src/project --cleanPersistedProgram -exitCode:: ExitStatus.Success - - -//// [/src/project/tsconfig.tsbuildinfo] file written with same contents - - -Change:: no-change-run -Input:: - - -Output:: -/lib/tsc --b src/project -exitCode:: ExitStatus.Success - - - - Change:: Modify main file Input:: //// [/src/project/src/main.ts] @@ -811,28 +1726,14 @@ import { something2 } from "./fileNotFound";something();something(); Output:: /lib/tsc --b src/project -======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== -======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/src/project/src'. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. -======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. exitCode:: ExitStatus.Success Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts @@ -856,7 +1757,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":1},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -909,7 +1810,10 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "traceResolution": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -930,9 +1834,191 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/filepresent.ts", "./src/main.ts", "./src/newfile.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1629 + "size": 5018 } diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js index 4f4a316e3952c..0a7493b68209a 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js @@ -29,7 +29,15 @@ declare const dts: any; //// [/src/core/tsconfig.json] -{"compilerOptions":{"composite":true,"skipDefaultLibCheck":true,"persistResolutions":true}} +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "persistResolutions": true + } +} //// [/src/logic/index.ts] import * as c from '../core/index'; @@ -41,20 +49,22 @@ export const m = mod; //// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "persistResolutions": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/src/tests/index.ts] import * as c from '../core/index'; import * as logic from '../logic/index'; @@ -67,18 +77,25 @@ export const m = mod; //// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "persistResolutions": true + } } //// [/src/ui/index.ts] @@ -93,7 +110,7 @@ Output:: /lib/tsc --b /src/tests exitCode:: ExitStatus.Success Program root files: ["/src/core/anotherModule.ts","/src/core/index.ts","/src/core/some_decl.d.ts"] -Program options: {"composite":true,"skipDefaultLibCheck":true,"persistResolutions":true,"configFilePath":"/src/core/tsconfig.json"} +Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"persistResolutions":true,"configFilePath":"/src/core/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -108,7 +125,7 @@ Semantic diagnostics in builder refreshed for:: /src/core/some_decl.d.ts Program root files: ["/src/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"configFilePath":"/src/logic/tsconfig.json"} +Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"persistResolutions":true,"configFilePath":"/src/logic/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -123,7 +140,7 @@ Semantic diagnostics in builder refreshed for:: /src/logic/index.ts Program root files: ["/src/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"configFilePath":"/src/tests/tsconfig.json"} +Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"persistResolutions":true,"configFilePath":"/src/tests/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -142,7 +159,10 @@ Semantic diagnostics in builder refreshed for:: //// [/src/core/anotherModule.d.ts] export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map +//// [/src/core/anotherModule.d.ts.map] +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} //// [/src/core/anotherModule.js] "use strict"; @@ -155,7 +175,10 @@ exports.World = "hello"; export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +//// [/src/core/index.d.ts.map] +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} //// [/src/core/index.js] "use strict"; @@ -169,7 +192,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n","-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n","-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./anotherModule.ts","originalFileName":"./anotherModule.ts","path":"./anothermodule.ts","resolvedPath":"./anothermodule.ts","version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./some_decl.d.ts","originalFileName":"./some_decl.d.ts","path":"./some_decl.d.ts","resolvedPath":"./some_decl.d.ts","version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -202,6 +225,10 @@ exports.multiply = multiply; }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "declaration": true, + "declarationMap": true, + "persistResolutions": true, "skipDefaultLibCheck": true }, "referencedMap": {}, @@ -211,10 +238,75 @@ exports.multiply = multiply; "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./anotherModule.ts", + "originalFileName": "./anotherModule.ts", + "path": "./anothermodule.ts", + "resolvedPath": "./anothermodule.ts", + "version": "-2676574883-export const World = \"hello\";\r\n", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./index.ts", + "originalFileName": "./index.ts", + "path": "./index.ts", + "resolvedPath": "./index.ts", + "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 1 + } + ] + }, + { + "fileName": "./some_decl.d.ts", + "originalFileName": "./some_decl.d.ts", + "path": "./some_decl.d.ts", + "resolvedPath": "./some_decl.d.ts", + "version": "-9253692965-declare const dts: any;\r\n", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + } }, "version": "FakeTSVersion", - "size": 1093 + "size": 2799 } //// [/src/logic/index.d.ts] @@ -240,7 +332,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n","-8396256275-export declare const World = \"hello\";\r\n","-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":{"../core/tsconfig.json":"../core/tsconfig.json"},"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -264,12 +356,12 @@ exports.m = mod; "affectsGlobalScope": true }, "../core/index.d.ts": { - "version": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n", - "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" + "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", + "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, "../core/anothermodule.d.ts": { - "version": "-8396256275-export declare const World = \"hello\";\r\n", - "signature": "-8396256275-export declare const World = \"hello\";\r\n" + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, "./index.ts": { "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", @@ -278,7 +370,10 @@ exports.m = mod; }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", "declaration": true, + "forceConsistentCasingInFileNames": true, + "persistResolutions": true, "skipDefaultLibCheck": true, "sourceMap": true }, @@ -299,10 +394,134 @@ exports.m = mod; "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "../core/index.d.ts", + "originalFileName": "../core/index.ts", + "path": "../core/index.ts", + "resolvedPath": "../core/index.d.ts", + "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./index.ts", + "index": 0 + } + ] + }, + { + "fileName": "../core/anotherModule.d.ts", + "originalFileName": "../core/anotherModule.ts", + "path": "../core/anothermodule.ts", + "resolvedPath": "../core/anothermodule.d.ts", + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./index.ts", + "index": 1 + } + ] + }, + { + "fileName": "./index.ts", + "originalFileName": "./index.ts", + "path": "./index.ts", + "resolvedPath": "./index.ts", + "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "../core/index" + }, + { + "kind": 10, + "text": "../core/anotherModule" + } + ], + "resolvedModules": { + "../core/index": 0, + "../core/anotherModule": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + } + ], + "rootFileNames": [ + "./index.ts" + ], + "filesByName": { + "../core/tsconfig.json": "../core/tsconfig.json" + }, + "projectReferences": [ + { + "path": "../core", + "originalPath": "../core" + } + ], + "resolvedProjectReferences": [ + { + "commandLine": { + "fileNames": [ + "../core/anotherModule.ts", + "../core/index.ts", + "../core/some_decl.d.ts" + ], + "options": { + "composite": true, + "configFilePath": "../core/tsconfig.json", + "declaration": true, + "declarationMap": true, + "persistResolutions": true, + "skipDefaultLibCheck": true + } + }, + "sourceFile": { + "path": "../core/tsconfig.json" + } + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "../core/index.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1291 + "size": 4149 } //// [/src/tests/index.d.ts] @@ -323,7 +542,7 @@ exports.m = mod; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n","-8396256275-export declare const World = \"hello\";\r\n","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"../logic/index.ts","index":0},{"kind":3,"file":"./index.ts","index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":"../logic/index.ts","resolvedPath":"../logic/index.d.ts","version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":{"../core/tsconfig.json":"../core/tsconfig.json","../logic/tsconfig.json":"../logic/tsconfig.json"},"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":"../logic/tsconfig.json"},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -352,12 +571,12 @@ exports.m = mod; "affectsGlobalScope": true }, "../core/index.d.ts": { - "version": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n", - "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" + "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", + "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, "../core/anothermodule.d.ts": { - "version": "-8396256275-export declare const World = \"hello\";\r\n", - "signature": "-8396256275-export declare const World = \"hello\";\r\n" + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, "../logic/index.d.ts": { "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", @@ -370,7 +589,10 @@ exports.m = mod; }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", "declaration": true, + "forceConsistentCasingInFileNames": true, + "persistResolutions": true, "skipDefaultLibCheck": true }, "referencedMap": { @@ -399,10 +621,232 @@ exports.m = mod; "../core/index.d.ts", "../logic/index.d.ts", "./index.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "../core/index.d.ts", + "originalFileName": "../core/index.ts", + "path": "../core/index.ts", + "resolvedPath": "../core/index.d.ts", + "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./index.ts", + "index": 0 + } + ] + }, + { + "fileName": "../core/anotherModule.d.ts", + "originalFileName": "../core/anotherModule.ts", + "path": "../core/anothermodule.ts", + "resolvedPath": "../core/anothermodule.d.ts", + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "../logic/index.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./index.ts", + "index": 2 + } + ] + }, + { + "fileName": "../logic/index.d.ts", + "originalFileName": "../logic/index.ts", + "path": "../logic/index.ts", + "resolvedPath": "../logic/index.d.ts", + "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "../core/anotherModule" + } + ], + "resolvedModules": { + "../core/anotherModule": 0 + }, + "includeReasons": [ + { + "kind": 3, + "file": "./index.ts", + "index": 1 + } + ] + }, + { + "fileName": "./index.ts", + "originalFileName": "./index.ts", + "path": "./index.ts", + "resolvedPath": "./index.ts", + "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "../core/index" + }, + { + "kind": 10, + "text": "../logic/index" + }, + { + "kind": 10, + "text": "../core/anotherModule" + } + ], + "resolvedModules": { + "../core/index": 1, + "../logic/index": 2, + "../core/anotherModule": 3 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + } + ], + "rootFileNames": [ + "./index.ts" + ], + "filesByName": { + "../core/tsconfig.json": "../core/tsconfig.json", + "../logic/tsconfig.json": "../logic/tsconfig.json" + }, + "projectReferences": [ + { + "path": "../core", + "originalPath": "../core" + }, + { + "path": "../logic", + "originalPath": "../logic" + } + ], + "resolvedProjectReferences": [ + { + "commandLine": { + "fileNames": [ + "../core/anotherModule.ts", + "../core/index.ts", + "../core/some_decl.d.ts" + ], + "options": { + "composite": true, + "configFilePath": "../core/tsconfig.json", + "declaration": true, + "declarationMap": true, + "persistResolutions": true, + "skipDefaultLibCheck": true + } + }, + "sourceFile": { + "path": "../core/tsconfig.json" + } + }, + { + "commandLine": { + "fileNames": [ + "../logic/index.ts" + ], + "options": { + "composite": true, + "configFilePath": "../logic/tsconfig.json", + "declaration": true, + "forceConsistentCasingInFileNames": true, + "persistResolutions": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "projectReferences": [ + { + "path": "../core", + "originalPath": "../core" + } + ] + }, + "sourceFile": { + "path": "../logic/tsconfig.json" + }, + "references": [ + { + "commandLine": { + "fileNames": [ + "../core/anotherModule.ts", + "../core/index.ts", + "../core/some_decl.d.ts" + ], + "options": { + "composite": true, + "configFilePath": "../core/tsconfig.json", + "declaration": true, + "declarationMap": true, + "persistResolutions": true, + "skipDefaultLibCheck": true + } + }, + "sourceFile": { + "path": "../core/tsconfig.json" + } + } + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "../core/index.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "../logic/index.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1499 + "size": 5914 } @@ -422,8 +866,8 @@ Output:: /lib/tsc --b /src/tests exitCode:: ExitStatus.Success Program root files: ["/src/core/anotherModule.ts","/src/core/index.ts","/src/core/some_decl.d.ts"] -Program options: {"composite":true,"skipDefaultLibCheck":true,"persistResolutions":true,"configFilePath":"/src/core/tsconfig.json"} -Program structureReused: Not +Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"persistResolutions":true,"configFilePath":"/src/core/tsconfig.json"} +Program structureReused: Completely Program files:: /lib/lib.d.ts /src/core/anotherModule.ts @@ -434,8 +878,8 @@ Semantic diagnostics in builder refreshed for:: /src/core/index.ts Program root files: ["/src/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"configFilePath":"/src/logic/tsconfig.json"} -Program structureReused: Not +Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"persistResolutions":true,"configFilePath":"/src/logic/tsconfig.json"} +Program structureReused: Completely Program files:: /lib/lib.d.ts /src/core/index.d.ts @@ -447,8 +891,8 @@ Semantic diagnostics in builder refreshed for:: /src/logic/index.ts Program root files: ["/src/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"configFilePath":"/src/tests/tsconfig.json"} -Program structureReused: Not +Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"persistResolutions":true,"configFilePath":"/src/tests/tsconfig.json"} +Program structureReused: Completely Program files:: /lib/lib.d.ts /src/core/index.d.ts @@ -467,7 +911,10 @@ export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; export declare class someClass { } +//# sourceMappingURL=index.d.ts.map +//// [/src/core/index.d.ts.map] +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAEhE,qBAAa,SAAS;CAAI"} //// [/src/core/index.js] "use strict"; @@ -487,7 +934,7 @@ exports.someClass = someClass; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./anotherModule.ts","originalFileName":"./anotherModule.ts","path":"./anothermodule.ts","resolvedPath":"./anothermodule.ts","version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./some_decl.d.ts","originalFileName":"./some_decl.d.ts","path":"./some_decl.d.ts","resolvedPath":"./some_decl.d.ts","version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -520,6 +967,10 @@ exports.someClass = someClass; }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "declaration": true, + "declarationMap": true, + "persistResolutions": true, "skipDefaultLibCheck": true }, "referencedMap": {}, @@ -529,17 +980,82 @@ exports.someClass = someClass; "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./anotherModule.ts", + "originalFileName": "./anotherModule.ts", + "path": "./anothermodule.ts", + "resolvedPath": "./anothermodule.ts", + "version": "-2676574883-export const World = \"hello\";\r\n", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./index.ts", + "originalFileName": "./index.ts", + "path": "./index.ts", + "resolvedPath": "./index.ts", + "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 1 + } + ] + }, + { + "fileName": "./some_decl.d.ts", + "originalFileName": "./some_decl.d.ts", + "path": "./some_decl.d.ts", + "resolvedPath": "./some_decl.d.ts", + "version": "-9253692965-declare const dts: any;\r\n", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + } }, "version": "FakeTSVersion", - "size": 1379 + "size": 3113 } //// [/src/logic/index.d.ts] file written with same contents //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n","-8396256275-export declare const World = \"hello\";\r\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":{"../core/tsconfig.json":"../core/tsconfig.json"},"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -566,12 +1082,12 @@ exports.someClass = someClass; "affectsGlobalScope": true }, "../core/index.d.ts": { - "version": "-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n", - "signature": "-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n" + "version": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map", + "signature": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map" }, "../core/anothermodule.d.ts": { - "version": "-8396256275-export declare const World = \"hello\";\r\n", - "signature": "-8396256275-export declare const World = \"hello\";\r\n" + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, "./index.ts": { "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", @@ -580,7 +1096,10 @@ exports.someClass = someClass; }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", "declaration": true, + "forceConsistentCasingInFileNames": true, + "persistResolutions": true, "skipDefaultLibCheck": true, "sourceMap": true }, @@ -600,16 +1119,140 @@ exports.someClass = someClass; "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "../core/index.d.ts", + "originalFileName": "../core/index.ts", + "path": "../core/index.ts", + "resolvedPath": "../core/index.d.ts", + "version": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./index.ts", + "index": 0 + } + ] + }, + { + "fileName": "../core/anotherModule.d.ts", + "originalFileName": "../core/anotherModule.ts", + "path": "../core/anothermodule.ts", + "resolvedPath": "../core/anothermodule.d.ts", + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./index.ts", + "index": 1 + } + ] + }, + { + "fileName": "./index.ts", + "originalFileName": "./index.ts", + "path": "./index.ts", + "resolvedPath": "./index.ts", + "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "../core/index" + }, + { + "kind": 10, + "text": "../core/anotherModule" + } + ], + "resolvedModules": { + "../core/index": 0, + "../core/anotherModule": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + } + ], + "rootFileNames": [ + "./index.ts" + ], + "filesByName": { + "../core/tsconfig.json": "../core/tsconfig.json" + }, + "projectReferences": [ + { + "path": "../core", + "originalPath": "../core" + } + ], + "resolvedProjectReferences": [ + { + "commandLine": { + "fileNames": [ + "../core/anotherModule.ts", + "../core/index.ts", + "../core/some_decl.d.ts" + ], + "options": { + "composite": true, + "configFilePath": "../core/tsconfig.json", + "declaration": true, + "declarationMap": true, + "persistResolutions": true, + "skipDefaultLibCheck": true + } + }, + "sourceFile": { + "path": "../core/tsconfig.json" + } + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "../core/index.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1519 + "size": 4414 } //// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n","-8396256275-export declare const World = \"hello\";\r\n","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"../logic/index.ts","index":0},{"kind":3,"file":"./index.ts","index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":"../logic/index.ts","resolvedPath":"../logic/index.d.ts","version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":{"../core/tsconfig.json":"../core/tsconfig.json","../logic/tsconfig.json":"../logic/tsconfig.json"},"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":"../logic/tsconfig.json"},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -638,12 +1281,12 @@ exports.someClass = someClass; "affectsGlobalScope": true }, "../core/index.d.ts": { - "version": "-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n", - "signature": "-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n" + "version": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map", + "signature": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map" }, "../core/anothermodule.d.ts": { - "version": "-8396256275-export declare const World = \"hello\";\r\n", - "signature": "-8396256275-export declare const World = \"hello\";\r\n" + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, "../logic/index.d.ts": { "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", @@ -656,7 +1299,10 @@ exports.someClass = someClass; }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", "declaration": true, + "forceConsistentCasingInFileNames": true, + "persistResolutions": true, "skipDefaultLibCheck": true }, "referencedMap": { @@ -683,10 +1329,232 @@ exports.someClass = someClass; "../core/index.d.ts", "../logic/index.d.ts", "./index.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "../core/index.d.ts", + "originalFileName": "../core/index.ts", + "path": "../core/index.ts", + "resolvedPath": "../core/index.d.ts", + "version": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./index.ts", + "index": 0 + } + ] + }, + { + "fileName": "../core/anotherModule.d.ts", + "originalFileName": "../core/anotherModule.ts", + "path": "../core/anothermodule.ts", + "resolvedPath": "../core/anothermodule.d.ts", + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "../logic/index.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./index.ts", + "index": 2 + } + ] + }, + { + "fileName": "../logic/index.d.ts", + "originalFileName": "../logic/index.ts", + "path": "../logic/index.ts", + "resolvedPath": "../logic/index.d.ts", + "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "../core/anotherModule" + } + ], + "resolvedModules": { + "../core/anotherModule": 0 + }, + "includeReasons": [ + { + "kind": 3, + "file": "./index.ts", + "index": 1 + } + ] + }, + { + "fileName": "./index.ts", + "originalFileName": "./index.ts", + "path": "./index.ts", + "resolvedPath": "./index.ts", + "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "../core/index" + }, + { + "kind": 10, + "text": "../logic/index" + }, + { + "kind": 10, + "text": "../core/anotherModule" + } + ], + "resolvedModules": { + "../core/index": 1, + "../logic/index": 2, + "../core/anotherModule": 3 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + } + ], + "rootFileNames": [ + "./index.ts" + ], + "filesByName": { + "../core/tsconfig.json": "../core/tsconfig.json", + "../logic/tsconfig.json": "../logic/tsconfig.json" + }, + "projectReferences": [ + { + "path": "../core", + "originalPath": "../core" + }, + { + "path": "../logic", + "originalPath": "../logic" + } + ], + "resolvedProjectReferences": [ + { + "commandLine": { + "fileNames": [ + "../core/anotherModule.ts", + "../core/index.ts", + "../core/some_decl.d.ts" + ], + "options": { + "composite": true, + "configFilePath": "../core/tsconfig.json", + "declaration": true, + "declarationMap": true, + "persistResolutions": true, + "skipDefaultLibCheck": true + } + }, + "sourceFile": { + "path": "../core/tsconfig.json" + } + }, + { + "commandLine": { + "fileNames": [ + "../logic/index.ts" + ], + "options": { + "composite": true, + "configFilePath": "../logic/tsconfig.json", + "declaration": true, + "forceConsistentCasingInFileNames": true, + "persistResolutions": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "projectReferences": [ + { + "path": "../core", + "originalPath": "../core" + } + ] + }, + "sourceFile": { + "path": "../logic/tsconfig.json" + }, + "references": [ + { + "commandLine": { + "fileNames": [ + "../core/anotherModule.ts", + "../core/index.ts", + "../core/some_decl.d.ts" + ], + "options": { + "composite": true, + "configFilePath": "../core/tsconfig.json", + "declaration": true, + "declarationMap": true, + "persistResolutions": true, + "skipDefaultLibCheck": true + } + }, + "sourceFile": { + "path": "../core/tsconfig.json" + } + } + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "../core/index.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "../logic/index.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1666 + "size": 6118 } @@ -707,8 +1575,8 @@ Output:: /lib/tsc --b /src/tests exitCode:: ExitStatus.Success Program root files: ["/src/core/anotherModule.ts","/src/core/index.ts","/src/core/some_decl.d.ts"] -Program options: {"composite":true,"skipDefaultLibCheck":true,"persistResolutions":true,"configFilePath":"/src/core/tsconfig.json"} -Program structureReused: Not +Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"persistResolutions":true,"configFilePath":"/src/core/tsconfig.json"} +Program structureReused: Completely Program files:: /lib/lib.d.ts /src/core/anotherModule.ts @@ -720,6 +1588,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/core/index.d.ts] file written with same contents +//// [/src/core/index.d.ts.map] file written with same contents //// [/src/core/index.js] "use strict"; exports.__esModule = true; @@ -743,7 +1612,7 @@ var someClass2 = /** @class */ (function () { //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./anotherModule.ts","originalFileName":"./anotherModule.ts","path":"./anothermodule.ts","resolvedPath":"./anothermodule.ts","version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./some_decl.d.ts","originalFileName":"./some_decl.d.ts","path":"./some_decl.d.ts","resolvedPath":"./some_decl.d.ts","version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -776,6 +1645,10 @@ var someClass2 = /** @class */ (function () { }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "declaration": true, + "declarationMap": true, + "persistResolutions": true, "skipDefaultLibCheck": true }, "referencedMap": {}, @@ -785,10 +1658,75 @@ var someClass2 = /** @class */ (function () { "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./anotherModule.ts", + "originalFileName": "./anotherModule.ts", + "path": "./anothermodule.ts", + "resolvedPath": "./anothermodule.ts", + "version": "-2676574883-export const World = \"hello\";\r\n", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./index.ts", + "originalFileName": "./index.ts", + "path": "./index.ts", + "resolvedPath": "./index.ts", + "version": "-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 1 + } + ] + }, + { + "fileName": "./some_decl.d.ts", + "originalFileName": "./some_decl.d.ts", + "path": "./some_decl.d.ts", + "resolvedPath": "./some_decl.d.ts", + "version": "-9253692965-declare const dts: any;\r\n", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + } }, "version": "FakeTSVersion", - "size": 1401 + "size": 3157 } @@ -802,9 +1740,15 @@ Output:: exitCode:: ExitStatus.Success -//// [/src/core/tsconfig.tsbuildinfo] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] file written with same contents +//// [/src/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} + +//// [/src/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4]},"version":"FakeTSVersion"} + +//// [/src/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5]},"version":"FakeTSVersion"} + Change:: Modify core @@ -823,7 +1767,7 @@ Output:: /lib/tsc --b /src/tests exitCode:: ExitStatus.Success Program root files: ["/src/core/anotherModule.ts","/src/core/index.ts","/src/core/some_decl.d.ts"] -Program options: {"composite":true,"skipDefaultLibCheck":true,"persistResolutions":true,"configFilePath":"/src/core/tsconfig.json"} +Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"persistResolutions":true,"configFilePath":"/src/core/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -835,7 +1779,7 @@ Semantic diagnostics in builder refreshed for:: /src/core/index.ts Program root files: ["/src/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"configFilePath":"/src/logic/tsconfig.json"} +Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"persistResolutions":true,"configFilePath":"/src/logic/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -848,7 +1792,7 @@ Semantic diagnostics in builder refreshed for:: /src/logic/index.ts Program root files: ["/src/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"configFilePath":"/src/tests/tsconfig.json"} +Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"persistResolutions":true,"configFilePath":"/src/tests/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -868,7 +1812,10 @@ export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; export declare class someClassNew { } +//# sourceMappingURL=index.d.ts.map +//// [/src/core/index.d.ts.map] +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAEhE,qBAAa,YAAY;CAAI"} //// [/src/core/index.js] "use strict"; @@ -893,7 +1840,7 @@ var someClass2 = /** @class */ (function () { //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-22243974128-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClassNew { }\nclass someClass2 { }","signature":"-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-22243974128-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClassNew { }\nclass someClass2 { }","signature":"-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./anotherModule.ts","originalFileName":"./anotherModule.ts","path":"./anothermodule.ts","resolvedPath":"./anothermodule.ts","version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"-22243974128-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClassNew { }\nclass someClass2 { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./some_decl.d.ts","originalFileName":"./some_decl.d.ts","path":"./some_decl.d.ts","resolvedPath":"./some_decl.d.ts","version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -926,6 +1873,10 @@ var someClass2 = /** @class */ (function () { }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "declaration": true, + "declarationMap": true, + "persistResolutions": true, "skipDefaultLibCheck": true }, "referencedMap": {}, @@ -935,17 +1886,82 @@ var someClass2 = /** @class */ (function () { "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./anotherModule.ts", + "originalFileName": "./anotherModule.ts", + "path": "./anothermodule.ts", + "resolvedPath": "./anothermodule.ts", + "version": "-2676574883-export const World = \"hello\";\r\n", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./index.ts", + "originalFileName": "./index.ts", + "path": "./index.ts", + "resolvedPath": "./index.ts", + "version": "-22243974128-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClassNew { }\nclass someClass2 { }", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 1 + } + ] + }, + { + "fileName": "./some_decl.d.ts", + "originalFileName": "./some_decl.d.ts", + "path": "./some_decl.d.ts", + "resolvedPath": "./some_decl.d.ts", + "version": "-9253692965-declare const dts: any;\r\n", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + } }, "version": "FakeTSVersion", - "size": 1407 + "size": 3166 } //// [/src/logic/index.d.ts] file written with same contents //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n","-8396256275-export declare const World = \"hello\";\r\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":{"../core/tsconfig.json":"../core/tsconfig.json"},"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -972,12 +1988,12 @@ var someClass2 = /** @class */ (function () { "affectsGlobalScope": true }, "../core/index.d.ts": { - "version": "-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n", - "signature": "-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n" + "version": "-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map", + "signature": "-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map" }, "../core/anothermodule.d.ts": { - "version": "-8396256275-export declare const World = \"hello\";\r\n", - "signature": "-8396256275-export declare const World = \"hello\";\r\n" + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, "./index.ts": { "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", @@ -986,7 +2002,10 @@ var someClass2 = /** @class */ (function () { }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", "declaration": true, + "forceConsistentCasingInFileNames": true, + "persistResolutions": true, "skipDefaultLibCheck": true, "sourceMap": true }, @@ -1006,16 +2025,140 @@ var someClass2 = /** @class */ (function () { "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "../core/index.d.ts", + "originalFileName": "../core/index.ts", + "path": "../core/index.ts", + "resolvedPath": "../core/index.d.ts", + "version": "-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./index.ts", + "index": 0 + } + ] + }, + { + "fileName": "../core/anotherModule.d.ts", + "originalFileName": "../core/anotherModule.ts", + "path": "../core/anothermodule.ts", + "resolvedPath": "../core/anothermodule.d.ts", + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./index.ts", + "index": 1 + } + ] + }, + { + "fileName": "./index.ts", + "originalFileName": "./index.ts", + "path": "./index.ts", + "resolvedPath": "./index.ts", + "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "../core/index" + }, + { + "kind": 10, + "text": "../core/anotherModule" + } + ], + "resolvedModules": { + "../core/index": 0, + "../core/anotherModule": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + } + ], + "rootFileNames": [ + "./index.ts" + ], + "filesByName": { + "../core/tsconfig.json": "../core/tsconfig.json" + }, + "projectReferences": [ + { + "path": "../core", + "originalPath": "../core" + } + ], + "resolvedProjectReferences": [ + { + "commandLine": { + "fileNames": [ + "../core/anotherModule.ts", + "../core/index.ts", + "../core/some_decl.d.ts" + ], + "options": { + "composite": true, + "configFilePath": "../core/tsconfig.json", + "declaration": true, + "declarationMap": true, + "persistResolutions": true, + "skipDefaultLibCheck": true + } + }, + "sourceFile": { + "path": "../core/tsconfig.json" + } + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "../core/index.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1522 + "size": 4420 } //// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n","-8396256275-export declare const World = \"hello\";\r\n","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"../logic/index.ts","index":0},{"kind":3,"file":"./index.ts","index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":"../logic/index.ts","resolvedPath":"../logic/index.d.ts","version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":{"../core/tsconfig.json":"../core/tsconfig.json","../logic/tsconfig.json":"../logic/tsconfig.json"},"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":"../logic/tsconfig.json"},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1044,12 +2187,12 @@ var someClass2 = /** @class */ (function () { "affectsGlobalScope": true }, "../core/index.d.ts": { - "version": "-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n", - "signature": "-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n" + "version": "-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map", + "signature": "-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map" }, "../core/anothermodule.d.ts": { - "version": "-8396256275-export declare const World = \"hello\";\r\n", - "signature": "-8396256275-export declare const World = \"hello\";\r\n" + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, "../logic/index.d.ts": { "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", @@ -1062,7 +2205,10 @@ var someClass2 = /** @class */ (function () { }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", "declaration": true, + "forceConsistentCasingInFileNames": true, + "persistResolutions": true, "skipDefaultLibCheck": true }, "referencedMap": { @@ -1089,9 +2235,231 @@ var someClass2 = /** @class */ (function () { "../core/index.d.ts", "../logic/index.d.ts", "./index.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "../core/index.d.ts", + "originalFileName": "../core/index.ts", + "path": "../core/index.ts", + "resolvedPath": "../core/index.d.ts", + "version": "-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./index.ts", + "index": 0 + } + ] + }, + { + "fileName": "../core/anotherModule.d.ts", + "originalFileName": "../core/anotherModule.ts", + "path": "../core/anothermodule.ts", + "resolvedPath": "../core/anothermodule.d.ts", + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "../logic/index.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./index.ts", + "index": 2 + } + ] + }, + { + "fileName": "../logic/index.d.ts", + "originalFileName": "../logic/index.ts", + "path": "../logic/index.ts", + "resolvedPath": "../logic/index.d.ts", + "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "../core/anotherModule" + } + ], + "resolvedModules": { + "../core/anotherModule": 0 + }, + "includeReasons": [ + { + "kind": 3, + "file": "./index.ts", + "index": 1 + } + ] + }, + { + "fileName": "./index.ts", + "originalFileName": "./index.ts", + "path": "./index.ts", + "resolvedPath": "./index.ts", + "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "../core/index" + }, + { + "kind": 10, + "text": "../logic/index" + }, + { + "kind": 10, + "text": "../core/anotherModule" + } + ], + "resolvedModules": { + "../core/index": 1, + "../logic/index": 2, + "../core/anotherModule": 3 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + } + ], + "rootFileNames": [ + "./index.ts" + ], + "filesByName": { + "../core/tsconfig.json": "../core/tsconfig.json", + "../logic/tsconfig.json": "../logic/tsconfig.json" + }, + "projectReferences": [ + { + "path": "../core", + "originalPath": "../core" + }, + { + "path": "../logic", + "originalPath": "../logic" + } + ], + "resolvedProjectReferences": [ + { + "commandLine": { + "fileNames": [ + "../core/anotherModule.ts", + "../core/index.ts", + "../core/some_decl.d.ts" + ], + "options": { + "composite": true, + "configFilePath": "../core/tsconfig.json", + "declaration": true, + "declarationMap": true, + "persistResolutions": true, + "skipDefaultLibCheck": true + } + }, + "sourceFile": { + "path": "../core/tsconfig.json" + } + }, + { + "commandLine": { + "fileNames": [ + "../logic/index.ts" + ], + "options": { + "composite": true, + "configFilePath": "../logic/tsconfig.json", + "declaration": true, + "forceConsistentCasingInFileNames": true, + "persistResolutions": true, + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "projectReferences": [ + { + "path": "../core", + "originalPath": "../core" + } + ] + }, + "sourceFile": { + "path": "../logic/tsconfig.json" + }, + "references": [ + { + "commandLine": { + "fileNames": [ + "../core/anotherModule.ts", + "../core/index.ts", + "../core/some_decl.d.ts" + ], + "options": { + "composite": true, + "configFilePath": "../core/tsconfig.json", + "declaration": true, + "declarationMap": true, + "persistResolutions": true, + "skipDefaultLibCheck": true + } + }, + "sourceFile": { + "path": "../core/tsconfig.json" + } + } + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "../core/index.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "../logic/index.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1669 + "size": 6124 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index 3f8299bed86f5..4007017edd65a 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -28,7 +28,7 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics @@ -63,7 +63,7 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:33 AM] Found 2 errors. Watching for file changes. +[12:00:38 AM] Found 2 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json @@ -102,6 +102,191 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 3718 +} + Change:: Modify main file @@ -115,26 +300,11 @@ import { something2 } from "./fileNotFound";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:36 AM] File change detected. Starting incremental compilation... +[12:00:41 AM] File change detected. Starting incremental compilation... -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -145,13 +315,13 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:42 AM] Found 2 errors. Watching for file changes. +[12:00:48 AM] Found 2 errors. Watching for file changes. Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -179,7 +349,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -212,8 +382,13 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -223,10 +398,139 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1166 + "size": 3744 } @@ -247,31 +551,18 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:47 AM] File change detected. Starting incremental compilation... +[12:00:53 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -282,13 +573,13 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:54 AM] Found 2 errors. Watching for file changes. +[12:01:00 AM] Found 2 errors. Watching for file changes. Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -319,7 +610,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -360,8 +651,13 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -372,10 +668,170 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 3 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1304 + "size": 4340 } @@ -389,39 +845,37 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:00:57 AM] File change detected. Starting incremental compilation... +[12:01:03 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -[12:01:10 AM] Found 0 errors. Watching for file changes. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:10 AM] Found 2 errors. Watching for file changes. Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -450,55 +904,25 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/anotherFileReusingResolution.ts", - "./src/newFile.ts", - "./src/main.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 1038, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 310, - "kind": "text" - } - ] - } - }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filepresent.ts" ], [ "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -510,12 +934,12 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/filenotfound.ts": { - "version": "-497034637-export function something2() { return 20; }" - }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -525,125 +949,201 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filepresent.ts" ], "./src/main.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 1 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1707 -} - -//// [/user/username/projects/myproject/outFile.js] -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - - -//// [/user/username/projects/myproject/outFile.d.ts] -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/fileNotFound" { - export function something2(): number; -} -declare module "src/anotherFileReusingResolution" { } -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } - - -//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/myproject/outFile.js ----------------------------------------------------------------------- -text: (0-1038) -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - -====================================================================== -====================================================================== -File:: /user/username/projects/myproject/outFile.d.ts ----------------------------------------------------------------------- -text: (0-310) -declare module "src/filePresent" { - export function something(): number; + "size": 4742 } -declare module "src/fileNotFound" { - export function something2(): number; -} -declare module "src/anotherFileReusingResolution" { } -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } - -====================================================================== diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js index 577310d2ac147..488f473289235 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -28,7 +28,7 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]]},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics @@ -63,7 +63,7 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:33 AM] Found 2 errors. Watching for file changes. +[12:00:38 AM] Found 2 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json @@ -102,6 +102,245 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ] + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 4171 +} + Change:: Modify main file @@ -115,26 +354,11 @@ import { something2 } from "./fileNotFound";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:36 AM] File change detected. Starting incremental compilation... +[12:00:41 AM] File change detected. Starting incremental compilation... -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -145,13 +369,13 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:42 AM] Found 2 errors. Watching for file changes. +[12:00:48 AM] Found 2 errors. Watching for file changes. Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -180,7 +404,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -217,7 +441,12 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -275,10 +504,139 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "Full" ] - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1664 + "size": 4242 } @@ -299,31 +657,18 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:47 AM] File change detected. Starting incremental compilation... +[12:00:53 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -334,13 +679,13 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:54 AM] Found 2 errors. Watching for file changes. +[12:01:00 AM] Found 2 errors. Watching for file changes. Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -373,7 +718,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -419,7 +764,12 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -483,10 +833,170 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "Full" ] - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 3 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1859 + "size": 4895 } @@ -500,76 +1010,42 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:00:57 AM] File change detected. Starting incremental compilation... +[12:01:03 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/anotherFileReusingResolution.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/filePresent.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/filePresent.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/main.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/main.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:24 AM] Found 0 errors. Watching for file changes. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:10 AM] Found 2 errors. Watching for file changes. Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -594,7 +1070,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -602,19 +1078,17 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filepresent.ts" ], [ "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -628,14 +1102,14 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-3531856636-export {};\n" - }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" @@ -647,95 +1121,258 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filepresent.ts" ], "./src/main.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filenotfound.ts", "./src/filepresent.ts", - "./src/main.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/newfile.ts" - ] + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filenotfound.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 1 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1537 + "size": 5362 } -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); - - -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] -export {}; - - -//// [/user/username/projects/myproject/src/filePresent.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); - - -//// [/user/username/projects/myproject/src/filePresent.d.ts] -export declare function something(): number; - - -//// [/user/username/projects/myproject/src/main.js] -define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - - -//// [/user/username/projects/myproject/src/main.d.ts] -export {}; - - -//// [/user/username/projects/myproject/src/newFile.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); - - -//// [/user/username/projects/myproject/src/newFile.d.ts] -export declare function foo(): number; - - -//// [/user/username/projects/myproject/src/fileNotFound.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); - - -//// [/user/username/projects/myproject/src/fileNotFound.d.ts] -export declare function something2(): number; - - diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index ceeb450826c1e..a0cef5995ee2e 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -28,31 +28,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: [12:00:29 AM] Starting compilation in watch mode... -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -75,7 +57,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 2 Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -117,24 +99,9 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: W Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json [12:00:33 AM] File change detected. Starting incremental compilation... -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -151,7 +118,7 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -179,7 +146,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -212,8 +179,13 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -223,10 +195,139 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1166 + "size": 3744 } @@ -250,28 +351,15 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src [12:00:44 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -288,7 +376,7 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -319,7 +407,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -360,8 +448,13 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -372,10 +465,170 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 3 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1304 + "size": 4340 } @@ -392,36 +645,34 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec [12:00:54 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -[12:01:07 AM] Found 0 errors. Watching for file changes. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:01 AM] Found 2 errors. Watching for file changes. Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -450,55 +701,25 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/anotherFileReusingResolution.ts", - "./src/newFile.ts", - "./src/main.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 1038, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 310, - "kind": "text" - } - ] - } - }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filepresent.ts" ], [ "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -510,12 +731,12 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/filenotfound.ts": { - "version": "-497034637-export function something2() { return 20; }" - }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -525,125 +746,201 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filepresent.ts" ], "./src/main.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 1 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1707 + "size": 4742 } -//// [/user/username/projects/myproject/outFile.js] -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - - -//// [/user/username/projects/myproject/outFile.d.ts] -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/fileNotFound" { - export function something2(): number; -} -declare module "src/anotherFileReusingResolution" { } -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } - - -//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/myproject/outFile.js ----------------------------------------------------------------------- -text: (0-1038) -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - -====================================================================== -====================================================================== -File:: /user/username/projects/myproject/outFile.d.ts ----------------------------------------------------------------------- -text: (0-310) -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/fileNotFound" { - export function something2(): number; -} -declare module "src/anotherFileReusingResolution" { } -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index 7a026acc52956..24b04ef867f6d 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -28,31 +28,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: [12:00:29 AM] Starting compilation in watch mode... -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -75,7 +57,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 2 Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -117,24 +99,9 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: W Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json [12:00:33 AM] File change detected. Starting incremental compilation... -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -151,7 +118,7 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -180,7 +147,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -217,7 +184,12 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -275,10 +247,139 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "Full" ] - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1664 + "size": 4242 } @@ -302,28 +403,15 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src [12:00:44 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -340,7 +428,7 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -373,7 +461,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -419,7 +507,12 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -483,10 +576,170 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "Full" ] - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 3 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1859 + "size": 4895 } @@ -503,73 +756,39 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec [12:00:54 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/anotherFileReusingResolution.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/filePresent.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/filePresent.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/main.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/main.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:21 AM] Found 0 errors. Watching for file changes. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:01 AM] Found 2 errors. Watching for file changes. Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -594,7 +813,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -602,19 +821,17 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filepresent.ts" ], [ "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -628,14 +845,14 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-3531856636-export {};\n" - }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" @@ -647,95 +864,258 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filepresent.ts" ], "./src/main.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filenotfound.ts", "./src/filepresent.ts", - "./src/main.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/newfile.ts" - ] + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filenotfound.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 1 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1537 + "size": 5362 } -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); - - -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] -export {}; - - -//// [/user/username/projects/myproject/src/filePresent.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); - - -//// [/user/username/projects/myproject/src/filePresent.d.ts] -export declare function something(): number; - - -//// [/user/username/projects/myproject/src/main.js] -define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - - -//// [/user/username/projects/myproject/src/main.d.ts] -export {}; - - -//// [/user/username/projects/myproject/src/newFile.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); - - -//// [/user/username/projects/myproject/src/newFile.d.ts] -export declare function foo(): number; - - -//// [/user/username/projects/myproject/src/fileNotFound.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); - - -//// [/user/username/projects/myproject/src/fileNotFound.d.ts] -export declare function something2(): number; - - diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 7b4fb48f670f9..760f1ca65f183 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -100,7 +100,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -133,8 +133,13 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -144,10 +149,139 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1153 + "size": 3718 } @@ -165,24 +299,9 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: W Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json [12:00:35 AM] File change detected. Starting incremental compilation... -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -199,7 +318,7 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -227,7 +346,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -260,8 +379,13 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -271,10 +395,139 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1166 + "size": 3744 } @@ -298,28 +551,15 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src [12:00:47 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -336,7 +576,7 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -367,7 +607,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -408,8 +648,13 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -420,10 +665,170 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 3 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1304 + "size": 4340 } @@ -440,36 +845,34 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec [12:00:57 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -[12:01:10 AM] Found 0 errors. Watching for file changes. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:04 AM] Found 2 errors. Watching for file changes. Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -498,55 +901,25 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/anotherFileReusingResolution.ts", - "./src/newFile.ts", - "./src/main.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 1038, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 310, - "kind": "text" - } - ] - } - }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filepresent.ts" ], [ "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -558,12 +931,12 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/filenotfound.ts": { - "version": "-497034637-export function something2() { return 20; }" - }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -573,125 +946,201 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filepresent.ts" ], "./src/main.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 1 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1707 + "size": 4742 } -//// [/user/username/projects/myproject/outFile.js] -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - - -//// [/user/username/projects/myproject/outFile.d.ts] -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/fileNotFound" { - export function something2(): number; -} -declare module "src/anotherFileReusingResolution" { } -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } - - -//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/myproject/outFile.js ----------------------------------------------------------------------- -text: (0-1038) -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - -====================================================================== -====================================================================== -File:: /user/username/projects/myproject/outFile.d.ts ----------------------------------------------------------------------- -text: (0-310) -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/fileNotFound" { - export function something2(): number; -} -declare module "src/anotherFileReusingResolution" { } -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index 0c5a35879305f..aeaf8c206f554 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -104,7 +104,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -141,7 +141,12 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -202,10 +207,139 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "Full" ] - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1606 + "size": 4171 } @@ -223,24 +357,9 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: W Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json [12:00:35 AM] File change detected. Starting incremental compilation... -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -257,7 +376,7 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -286,7 +405,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -323,7 +442,12 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -381,10 +505,139 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "Full" ] - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1664 + "size": 4242 } @@ -408,28 +661,15 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src [12:00:47 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -446,7 +686,7 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -479,7 +719,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -525,7 +765,12 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -589,10 +834,170 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "Full" ] - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 3 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1859 + "size": 4895 } @@ -609,73 +1014,39 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec [12:00:57 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/filePresent.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/filePresent.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/anotherFileReusingResolution.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/main.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/main.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:24 AM] Found 0 errors. Watching for file changes. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:04 AM] Found 2 errors. Watching for file changes. Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -700,7 +1071,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -708,19 +1079,17 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filepresent.ts" ], [ "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -734,14 +1103,14 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-3531856636-export {};\n" - }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" @@ -753,95 +1122,258 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filepresent.ts" ], "./src/main.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filenotfound.ts", "./src/filepresent.ts", - "./src/main.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/newfile.ts" - ] + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filenotfound.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 1 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1537 + "size": 5362 } -//// [/user/username/projects/myproject/src/filePresent.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); - - -//// [/user/username/projects/myproject/src/filePresent.d.ts] -export declare function something(): number; - - -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); - - -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] -export {}; - - -//// [/user/username/projects/myproject/src/main.js] -define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - - -//// [/user/username/projects/myproject/src/main.d.ts] -export {}; - - -//// [/user/username/projects/myproject/src/newFile.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); - - -//// [/user/username/projects/myproject/src/newFile.d.ts] -export declare function foo(): number; - - -//// [/user/username/projects/myproject/src/fileNotFound.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); - - -//// [/user/username/projects/myproject/src/fileNotFound.d.ts] -export declare function something2(): number; - - diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 4d75026977523..0d8c9501b7d41 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -104,7 +104,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":531,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":167,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":531,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":167,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -197,8 +197,12 @@ declare module "src/main" { } }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -208,10 +212,139 @@ declare module "src/main" { } "./src/filepresent.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1469 + "size": 4057 } @@ -222,24 +355,6 @@ Input:: Output:: /lib/tsc --p src/project -======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' does not exist. -File '/src/project/src/fileNotFound.tsx' does not exist. -File '/src/project/src/fileNotFound.d.ts' does not exist. -File '/src/project/src/fileNotFound.js' does not exist. -File '/src/project/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/src/project/src'. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. -======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -256,7 +371,7 @@ Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts @@ -284,24 +399,9 @@ import { something2 } from "./fileNotFound";something(); Output:: /lib/tsc --p src/project -======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' does not exist. -File '/src/project/src/fileNotFound.tsx' does not exist. -File '/src/project/src/fileNotFound.d.ts' does not exist. -File '/src/project/src/fileNotFound.js' does not exist. -File '/src/project/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/src/project/src'. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -318,7 +418,7 @@ Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts @@ -349,7 +449,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":597,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":167,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":597,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":167,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -443,8 +543,12 @@ declare module "src/main" { } }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -454,10 +558,139 @@ declare module "src/main" { } "./src/filepresent.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1482 + "size": 4083 } @@ -476,28 +709,15 @@ export function foo() { return 20; } Output:: /lib/tsc --p src/project -======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' does not exist. -File '/src/project/src/fileNotFound.tsx' does not exist. -File '/src/project/src/fileNotFound.d.ts' does not exist. -File '/src/project/src/fileNotFound.js' does not exist. -File '/src/project/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/src/project/src'. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. -======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -514,7 +734,7 @@ Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts @@ -563,7 +783,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":816,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":238,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":816,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":238,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -676,8 +896,12 @@ declare module "src/main" { } }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -688,10 +912,170 @@ declare module "src/main" { } "./src/newfile.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 3 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1639 + "size": 4698 } @@ -705,33 +1089,34 @@ export function something2() { return 20; } Output:: /lib/tsc --p src/project -======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== -======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/src/project/src'. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. -======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== -exitCode:: ExitStatus.Success +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts -/src/project/src/fileNotFound.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/fileNotFound.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -742,10 +1127,10 @@ No cached semantic diagnostics in the builder:: declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/fileNotFound" { export function something2(): number; } -declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } @@ -760,6 +1145,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -767,10 +1156,6 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -786,7 +1171,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -800,6 +1185,10 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -807,10 +1196,6 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -832,10 +1217,10 @@ text: (0-321) declare module "src/filePresent" { export function something(): number; } +declare module "src/anotherFileReusingResolution" { } declare module "src/fileNotFound" { export function something2(): number; } -declare module "src/anotherFileReusingResolution" { } declare module "src/newFile" { export function foo(): number; } @@ -849,8 +1234,8 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", - "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -877,19 +1262,17 @@ declare module "src/main" { } "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filepresent.ts" ], [ "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -901,12 +1284,12 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/filenotfound.ts": { - "version": "-497034637-export function something2() { return 20; }" - }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -916,24 +1299,201 @@ declare module "src/main" { } }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filepresent.ts" ], "./src/main.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 1 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1779 + "size": 5125 } @@ -947,7 +1507,20 @@ Output:: exitCode:: ExitStatus.Success -//// [/src/project/outFile.tsbuildinfo] file written with same contents +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} + + + +Change:: Clean resolutions again +Input:: + + +Output:: +/lib/tsc --p src/project --cleanPersistedProgram +exitCode:: ExitStatus.Success + + Change:: no-change-run @@ -989,11 +1562,390 @@ Program files:: No cached semantic diagnostics in the builder:: -//// [/src/project/outFile.d.ts] file written with same contents -//// [/src/project/outFile.js] file written with same contents -//// [/src/project/outFile.tsbuildinfo] file written with same contents -//// [/src/project/outFile.tsbuildinfo.baseline.txt] file written with same contents -//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/src/project/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":1},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-1068) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-321) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1068, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 321, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 5171 +} + Change:: Modify main file @@ -1007,28 +1959,14 @@ import { something2 } from "./fileNotFound";something();something(); Output:: /lib/tsc --p src/project -======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== -======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/src/project/src'. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. -======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. exitCode:: ExitStatus.Success Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts @@ -1076,7 +2014,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1100,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1100,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":1},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1207,8 +2145,12 @@ declare module "src/main" { } }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -1221,9 +2163,191 @@ declare module "src/main" { } "./src/newfile.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1791 + "size": 5195 } diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 90d5cb8d31b15..71b5f37b013e7 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -118,7 +118,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -155,7 +155,11 @@ define(["require", "exports"], function (require, exports) { }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -202,10 +206,139 @@ define(["require", "exports"], function (require, exports) { } ] ] - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1631 + "size": 4219 } @@ -216,24 +349,6 @@ Input:: Output:: /lib/tsc --p src/project -======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' does not exist. -File '/src/project/src/fileNotFound.tsx' does not exist. -File '/src/project/src/fileNotFound.d.ts' does not exist. -File '/src/project/src/fileNotFound.js' does not exist. -File '/src/project/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/src/project/src'. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. -======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -250,7 +365,7 @@ Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts @@ -273,24 +388,9 @@ import { something2 } from "./fileNotFound";something(); Output:: /lib/tsc --p src/project -======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' does not exist. -File '/src/project/src/fileNotFound.tsx' does not exist. -File '/src/project/src/fileNotFound.d.ts' does not exist. -File '/src/project/src/fileNotFound.js' does not exist. -File '/src/project/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/src/project/src'. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -307,7 +407,7 @@ Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts @@ -328,7 +428,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -365,7 +465,11 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -409,10 +513,139 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] ] - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1691 + "size": 4292 } @@ -431,28 +664,15 @@ export function foo() { return 20; } Output:: /lib/tsc --p src/project -======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' does not exist. -File '/src/project/src/fileNotFound.tsx' does not exist. -File '/src/project/src/fileNotFound.d.ts' does not exist. -File '/src/project/src/fileNotFound.js' does not exist. -File '/src/project/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/src/project/src'. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. -======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -469,7 +689,7 @@ Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts @@ -499,7 +719,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -545,7 +765,11 @@ define(["require", "exports"], function (require, exports) { }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -591,10 +815,170 @@ define(["require", "exports"], function (require, exports) { ] ], "./src/newfile.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 3 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1882 + "size": 4941 } @@ -608,44 +992,41 @@ export function something2() { return 20; } Output:: /lib/tsc --p src/project -======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== -======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/src/project/src'. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. -======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== -exitCode:: ExitStatus.Success +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Not +Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts -/src/project/src/fileNotFound.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/fileNotFound.ts /src/project/src/newFile.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: /src/project/src/fileNotFound.ts -/src/project/src/anotherFileReusingResolution.ts -/src/project/src/main.ts -//// [/src/project/src/anotherFileReusingResolution.d.ts] file written with same contents -//// [/src/project/src/anotherFileReusingResolution.js] file written with same contents //// [/src/project/src/fileNotFound.d.ts] export declare function something2(): number; @@ -660,10 +1041,8 @@ define(["require", "exports"], function (require, exports) { }); -//// [/src/project/src/main.d.ts] file written with same contents -//// [/src/project/src/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -671,19 +1050,17 @@ define(["require", "exports"], function (require, exports) { "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", "./src/newfile.ts", "./src/main.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filepresent.ts" ], [ "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -697,14 +1074,14 @@ define(["require", "exports"], function (require, exports) { "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", "signature": "-13705775197-export declare function something2(): number;\r\n" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-4882119183-export {};\r\n" - }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-3405156953-export declare function foo(): number;\r\n" @@ -716,31 +1093,236 @@ define(["require", "exports"], function (require, exports) { }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filepresent.ts" ], "./src/main.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/filenotfound.ts", "./src/filepresent.ts", - "./src/main.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/newfile.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 1 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1617 + "size": 5404 } @@ -754,7 +1336,20 @@ Output:: exitCode:: ExitStatus.Success -//// [/src/project/tsconfig.tsbuildinfo] file written with same contents +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5]},"version":"FakeTSVersion"} + + + +Change:: Clean resolutions again +Input:: + + +Output:: +/lib/tsc --p src/project --cleanPersistedProgram +exitCode:: ExitStatus.Success + + Change:: no-change-run @@ -794,8 +1389,281 @@ Program files:: /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/main.ts +//// [/src/project/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/src/project/src/anotherFileReusingResolution.js] file written with same contents +//// [/src/project/src/main.d.ts] file written with same contents +//// [/src/project/src/main.js] file written with same contents +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":1},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", + "./src/newfile.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-13705775197-export declare function something2(): number;\r\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-3405156953-export declare function foo(): number;\r\n" + }, + "./src/main.ts": { + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/main.ts", + "./src/newfile.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 5009 +} + Change:: Modify main file @@ -809,28 +1677,14 @@ import { something2 } from "./fileNotFound";something();something(); Output:: /lib/tsc --p src/project -======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== -======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/src/project/src'. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. -======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. exitCode:: ExitStatus.Success Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts @@ -854,7 +1708,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":1},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -907,7 +1761,11 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -928,9 +1786,191 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/filepresent.ts", "./src/main.ts", "./src/newfile.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1629 + "size": 5033 } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index 1876b86788787..d7fc7f482a0cf 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -54,7 +54,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -145,7 +145,9 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents -//// [/user/username/projects/myproject/outFile.tsbuildinfo] file written with same contents +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} + //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { "bundle": { @@ -203,8 +205,14 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -214,10 +222,139 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1397 + "size": 3977 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -345,7 +482,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -404,8 +541,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -415,10 +558,139 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/filepresent.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1410 + "size": 4003 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -581,7 +853,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -649,8 +921,14 @@ declare module "src/main" { } }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -661,10 +939,170 @@ declare module "src/main" { } "./src/newfile.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 3 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1567 + "size": 4618 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -839,7 +1277,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -912,8 +1350,14 @@ declare module "src/main" { } }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -924,10 +1368,185 @@ declare module "src/main" { } "./src/newfile.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 1 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1703 + "size": 5045 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js index ed93874d098e1..037497ef0c947 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -64,7 +64,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -114,7 +114,7 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:45 AM] Found 2 errors. Watching for file changes. +[12:00:48 AM] Found 2 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -153,6 +153,232 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/main.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 4139 +} + Change:: Modify main file @@ -167,7 +393,7 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:48 AM] File change detected. Starting incremental compilation... +[12:00:53 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: @@ -186,7 +412,7 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:58 AM] Found 2 errors. Watching for file changes. +[12:01:03 AM] Found 2 errors. Watching for file changes. @@ -234,7 +460,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -271,7 +497,13 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -315,10 +547,139 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] ] - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1617 + "size": 4210 } @@ -341,7 +702,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:01:05 AM] File change detected. Starting incremental compilation... +[12:01:11 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -374,7 +735,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:19 AM] Found 2 errors. Watching for file changes. +[12:01:25 AM] Found 2 errors. Watching for file changes. @@ -419,7 +780,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -465,7 +826,13 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -511,10 +878,170 @@ exitCode:: ExitStatus.undefined ] ], "./src/newfile.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 3 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1806 + "size": 4857 } //// [/user/username/projects/myproject/src/newFile.js] @@ -543,7 +1070,7 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:25 AM] File change detected. Starting incremental compilation... +[12:01:31 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -573,7 +1100,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:33 AM] Found 2 errors. Watching for file changes. +[12:01:39 AM] Found 2 errors. Watching for file changes. @@ -618,7 +1145,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -669,7 +1196,13 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -716,10 +1249,185 @@ exitCode:: ExitStatus.undefined ] ], "./src/newfile.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 1 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1976 + "size": 5318 } //// [/user/username/projects/myproject/src/fileNotFound.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index a13b04ccc3997..86cbffb6150a2 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -54,7 +54,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -67,31 +67,10 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== -FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -112,7 +91,7 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -124,14 +103,14 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} -/user/username/projects/myproject/src/anotherfilereusingresolution.ts: - {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} -/a/lib/lib.d.ts: - {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} FsWatches:: @@ -145,7 +124,9 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents -//// [/user/username/projects/myproject/outFile.tsbuildinfo] file written with same contents +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} + //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { "bundle": { @@ -203,8 +184,14 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -214,10 +201,139 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1397 + "size": 3977 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -305,14 +421,14 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} -/user/username/projects/myproject/src/anotherfilereusingresolution.ts: - {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} -/a/lib/lib.d.ts: - {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} FsWatches:: @@ -345,7 +461,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -404,8 +520,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -415,10 +537,139 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/filepresent.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1410 + "size": 4003 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -522,14 +773,14 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} -/user/username/projects/myproject/src/anotherfilereusingresolution.ts: - {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} -/a/lib/lib.d.ts: - {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} @@ -581,7 +832,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -649,8 +900,14 @@ declare module "src/main" { } }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -661,10 +918,170 @@ declare module "src/main" { } "./src/newfile.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 3 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1567 + "size": 4618 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -768,14 +1185,14 @@ No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} -/user/username/projects/myproject/src/anotherfilereusingresolution.ts: - {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} -/a/lib/lib.d.ts: - {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.ts: @@ -839,7 +1256,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -912,8 +1329,14 @@ declare module "src/main" { } }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -924,10 +1347,185 @@ declare module "src/main" { } "./src/newfile.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 1 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1703 + "size": 5045 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index c8286fb42ddbf..5623fcd9d5ba6 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -64,7 +64,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -77,31 +77,10 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== -FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -122,7 +101,7 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts @@ -134,14 +113,14 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} -/user/username/projects/myproject/src/anotherfilereusingresolution.ts: - {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} -/a/lib/lib.d.ts: - {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} FsWatches:: @@ -205,14 +184,14 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} -/user/username/projects/myproject/src/anotherfilereusingresolution.ts: - {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} -/a/lib/lib.d.ts: - {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} FsWatches:: @@ -234,7 +213,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -271,7 +250,13 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -315,10 +300,139 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] ] - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1617 + "size": 4210 } @@ -395,14 +509,14 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} -/user/username/projects/myproject/src/anotherfilereusingresolution.ts: - {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} -/a/lib/lib.d.ts: - {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} @@ -419,7 +533,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -465,7 +579,13 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -511,10 +631,170 @@ exitCode:: ExitStatus.undefined ] ], "./src/newfile.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 3 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1806 + "size": 4857 } //// [/user/username/projects/myproject/src/newFile.js] @@ -594,14 +874,14 @@ Semantic diagnostics in builder refreshed for:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} -/user/username/projects/myproject/src/anotherfilereusingresolution.ts: - {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} -/a/lib/lib.d.ts: - {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.ts: @@ -618,7 +898,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -669,7 +949,13 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -716,10 +1002,185 @@ exitCode:: ExitStatus.undefined ] ], "./src/newfile.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 1 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1976 + "size": 5318 } //// [/user/username/projects/myproject/src/fileNotFound.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 66469c3a50d5c..1ba01f5ebfc71 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -141,7 +141,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -200,8 +200,14 @@ declare module "src/main" { } }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -211,10 +217,139 @@ declare module "src/main" { } "./src/filepresent.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1397 + "size": 3977 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -342,7 +477,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -401,8 +536,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -412,10 +553,139 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/filepresent.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1410 + "size": 4003 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -578,7 +848,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -646,8 +916,14 @@ declare module "src/main" { } }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -658,10 +934,170 @@ declare module "src/main" { } "./src/newfile.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 3 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1567 + "size": 4618 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -836,7 +1272,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -909,8 +1345,14 @@ declare module "src/main" { } }, "options": { "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, "module": 2, - "outFile": "./outFile.js" + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -921,10 +1363,185 @@ declare module "src/main" { } "./src/newfile.ts" ] }, - "exportedModulesMap": {} + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 1 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1703 + "size": 5045 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index e6e53dc20fe40..f5a09ce96796a 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -155,7 +155,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -192,7 +192,13 @@ export {}; }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -239,10 +245,139 @@ export {}; } ] ] - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1559 + "size": 4139 } @@ -326,7 +461,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -363,7 +498,13 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -407,10 +548,139 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] ] - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } }, "version": "FakeTSVersion", - "size": 1617 + "size": 4210 } @@ -511,7 +781,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -557,7 +827,13 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -603,10 +879,170 @@ exitCode:: ExitStatus.undefined ] ], "./src/newfile.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 3 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1806 + "size": 4857 } //// [/user/username/projects/myproject/src/newFile.js] @@ -710,7 +1146,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"module":2},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -761,7 +1197,13 @@ exitCode:: ExitStatus.undefined }, "options": { "composite": true, - "module": 2 + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ @@ -808,10 +1250,185 @@ exitCode:: ExitStatus.undefined ] ], "./src/newfile.ts" - ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": 6 + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": 0, + "index": 2 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": 3, + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 0, + "index": 1 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": 3, + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": { + "./newFile": 2, + "./filePresent": 0, + "./fileNotFound": 1 + }, + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/main.ts", + "./src/newFile.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 1976 + "size": 5318 } //// [/user/username/projects/myproject/src/fileNotFound.js] From c7dcf3cce5a261665519e13f0349f48abbf8f212 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 10 Mar 2021 14:26:36 -0800 Subject: [PATCH 22/48] Use fileIds for filesByName and missingPaths --- src/compiler/builder.ts | 33 +++++++------ src/testRunner/unittests/tsbuild/helpers.ts | 29 ++++++++++- .../initial-build/persistResolutions.js | 49 +++++++++++-------- 3 files changed, 75 insertions(+), 36 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index b253f32d65974..dab33b0b74607 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -846,7 +846,9 @@ namespace ts { isSourceFileFromExternalLibraryPath?: true; redirectTargets?: readonly string[]; packageName?: string; - }; + } + /** If key and value are same, just use ProgramBuildInfoFileId otherwise pair of key followed by value */ + export type PersistedProgramFileByNameEntry = ProgramBuildInfoFileId | [fileId: ProgramBuildInfoFileId, file: ProgramBuildInfoFileId | typeof missingSourceOfProjectReferenceRedirect | typeof missingFile]; export interface ResolutionWithFailedLookupLocations { serializationIndex?: number; @@ -890,10 +892,10 @@ namespace ts { export interface PersistedProgram { files: readonly PersistedProgramSourceFile[] | undefined; rootFileNames: readonly string[] | undefined; - filesByName: MapLike | undefined; + filesByName: readonly PersistedProgramFileByNameEntry[] | undefined; projectReferences: readonly ProjectReference[] | undefined; resolvedProjectReferences: readonly (PersistedProgramResolvedProjectReference | undefined)[] | undefined; - missingPaths: readonly string[] | undefined; + missingPaths: readonly ProgramBuildInfoFileId[] | undefined; resolvedTypeReferenceDirectives: MapLike | undefined; fileProcessingDiagnostics: readonly PersistedProgramFilePreprocessingDiagnostic[] | undefined; resolutions: readonly PersistedProgramResolution[] | undefined; @@ -992,10 +994,12 @@ namespace ts { // persist program programFilesByName = new Map(program.getFilesByNameMap()); const files = mapToReadonlyArrayOrUndefined(program.getSourceFiles(), toPersistedProgramSourceFile); - let filesByName: MapLike | undefined; + let filesByName: PersistedProgramFileByNameEntry[] | undefined; for (const key of arrayFrom(programFilesByName.keys()).sort(compareStringsCaseSensitive)) { const value = program.getFilesByNameMap().get(key)!; - (filesByName ||= {})[relativeToBuildInfo(key)] = value ? relativeToBuildInfo(value.path) : value; + const keyId = toFileId(key); + const valueId = value ? toFileId(value.path) : value; + (filesByName ||= []).push(keyId === valueId ? keyId : [keyId, valueId]); } peristedProgram = { files, @@ -1003,7 +1007,7 @@ namespace ts { filesByName, projectReferences: program.getProjectReferences()?.map(toProjectReference), resolvedProjectReferences: program.getResolvedProjectReferences()?.map(toPersistedProgramResolvedProjectReference), - missingPaths: mapToReadonlyArrayOrUndefined(program.getMissingFilePaths(), relativeToBuildInfo), + missingPaths: mapToReadonlyArrayOrUndefined(program.getMissingFilePaths(), toFileId), resolvedTypeReferenceDirectives: toPersistedProgramResolutionMap(program.getResolvedTypeReferenceDirectives()), fileProcessingDiagnostics: mapToReadonlyArrayOrUndefined(program.getFileProcessingDiagnostics(), toPersistedProgramFilePreprocessingDiagnostic), resolutions: mapToReadonlyArrayOrUndefined(resolutions, toPersistedProgramResolution), @@ -1641,14 +1645,15 @@ namespace ts { let sourceFileFromExternalLibraryPath: Set | undefined; const redirectTargetsMap = createMultiMap(); const sourceFileToPackageName = new Map(); - if (program.peristedProgram.filesByName) { - for (const key in program.peristedProgram.filesByName) { - if (hasProperty(program.peristedProgram.filesByName, key)) { - const value = program.peristedProgram.filesByName[key]; - filesByName.set(toPath(key), isString(value) ? toPath(value) : value); - } + program.peristedProgram.filesByName?.forEach(entry => { + if (isArray(entry)) { + filesByName.set(toFilePath(entry[0]), entry[1] ? toFilePath(entry[1]) : entry[1] as typeof missingSourceOfProjectReferenceRedirect | typeof missingFile); } - } + else { + const path = toFilePath(entry); + filesByName.set(path, path); + } + }); const resolutions = mapToReadonlyArray(program.peristedProgram.resolutions, toResolution); const files = mapToReadonlyArray(program.peristedProgram.files, toSourceFileOfProgramFromBuildInfo); state.persistedProgramInfo = { @@ -1661,7 +1666,7 @@ namespace ts { sourceFileToPackageName, projectReferences: program.peristedProgram.projectReferences?.map(toProjectReference), resolvedProjectReferences: program.peristedProgram.resolvedProjectReferences?.map(toResolvedProjectReference), - missingPaths: mapToReadonlyArray(program.peristedProgram.missingPaths, toPath), + missingPaths: mapToReadonlyArray(program.peristedProgram.missingPaths, toFilePath), resolvedTypeReferenceDirectives: toResolutionMap(program.peristedProgram.resolvedTypeReferenceDirectives) || new Map(), fileProcessingDiagnostics: map(program.peristedProgram.fileProcessingDiagnostics, toFileProcessingDiagnostic), }; diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index c1693a4377450..6b0c3a069d1c4 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -238,6 +238,17 @@ interface Symbol { type ReadableProgramBuildInfoDiagnostic = string | [string, readonly ReusableDiagnostic[]]; type ReadableProgramBuilderInfoFilePendingEmit = [string, "DtsOnly" | "Full"]; + interface ReadablePersistedProgram { + files: readonly PersistedProgramSourceFile[] | undefined; + rootFileNames: readonly string[] | undefined; + filesByName: MapLike | undefined; + projectReferences: readonly ProjectReference[] | undefined; + resolvedProjectReferences: readonly (PersistedProgramResolvedProjectReference | undefined)[] | undefined; + missingPaths: readonly string[] | undefined; + resolvedTypeReferenceDirectives: MapLike | undefined; + fileProcessingDiagnostics: readonly PersistedProgramFilePreprocessingDiagnostic[] | undefined; + resolutions: readonly PersistedProgramResolution[] | undefined; + } interface ReadableProgramBuildInfo { fileNames: readonly string[]; fileNamesList: readonly (readonly string[])[] | undefined; @@ -247,13 +258,23 @@ interface Symbol { exportedModulesMap?: MapLike; semanticDiagnosticsPerFile?: readonly ReadableProgramBuildInfoDiagnostic[]; affectedFilesPendingEmit?: readonly ReadableProgramBuilderInfoFilePendingEmit[]; - peristedProgram?: PersistedProgram; + peristedProgram?: ReadablePersistedProgram; } type ReadableBuildInfo = Omit & { program: ReadableProgramBuildInfo | undefined; size: number; }; function generateBuildInfoProgramBaseline(sys: System, originalWriteFile: System["writeFile"], buildInfoPath: string, buildInfo: BuildInfo) { const fileInfos: ReadableProgramBuildInfo["fileInfos"] = {}; buildInfo.program?.fileInfos.forEach((fileInfo, index) => fileInfos[toFileName(index + 1 as ProgramBuildInfoFileId)] = toBuilderStateFileInfo(fileInfo)); const fileNamesList = buildInfo.program?.fileIdsList?.map(fileIdsListId => fileIdsListId.map(toFileName)); + const filesByName: ReadablePersistedProgram["filesByName"] = buildInfo.program?.peristedProgram?.filesByName ? {} : undefined; + buildInfo.program?.peristedProgram?.filesByName?.forEach(entry => { + if (isArray(entry)) { + filesByName![toFileName(entry[0])] = entry[1] ? toFileName(entry[1]) :entry[1] as typeof missingSourceOfProjectReferenceRedirect | typeof missingFile; + } + else { + const path = toFileName(entry); + filesByName![path] = path; + } + }); const program: ReadableProgramBuildInfo | undefined = buildInfo.program && { fileNames: buildInfo.program.fileNames, fileNamesList, @@ -272,7 +293,11 @@ interface Symbol { emitKind === BuilderFileEmit.Full ? "Full" : Debug.assertNever(emitKind) ]), - peristedProgram: buildInfo.program.peristedProgram, + peristedProgram: buildInfo.program.peristedProgram && { + ...buildInfo.program.peristedProgram, + filesByName, + missingPaths: buildInfo.program.peristedProgram.missingPaths?.map(toFileName), + }, }; const version = buildInfo.version === ts.version ? fakes.version : buildInfo.version; const result: ReadableBuildInfo = { diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js index 0a7493b68209a..15f95309d825e 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js @@ -332,7 +332,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":{"../core/tsconfig.json":"../core/tsconfig.json"},"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[5],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -341,7 +341,8 @@ exports.m = mod; "../../lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", - "./index.ts" + "./index.ts", + "../core/tsconfig.json" ], "fileNamesList": [ [ @@ -521,7 +522,7 @@ exports.m = mod; } }, "version": "FakeTSVersion", - "size": 4149 + "size": 4127 } //// [/src/tests/index.d.ts] @@ -542,7 +543,7 @@ exports.m = mod; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"../logic/index.ts","index":0},{"kind":3,"file":"./index.ts","index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":"../logic/index.ts","resolvedPath":"../logic/index.d.ts","version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":{"../core/tsconfig.json":"../core/tsconfig.json","../logic/tsconfig.json":"../logic/tsconfig.json"},"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":"../logic/tsconfig.json"},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"../logic/index.ts","index":0},{"kind":3,"file":"./index.ts","index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":"../logic/index.ts","resolvedPath":"../logic/index.d.ts","version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[6,7],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":"../logic/tsconfig.json"},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -552,7 +553,9 @@ exports.m = mod; "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", - "./index.ts" + "./index.ts", + "../core/tsconfig.json", + "../logic/tsconfig.json" ], "fileNamesList": [ [ @@ -846,7 +849,7 @@ exports.m = mod; } }, "version": "FakeTSVersion", - "size": 5914 + "size": 5869 } @@ -1055,7 +1058,7 @@ exports.someClass = someClass; //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":{"../core/tsconfig.json":"../core/tsconfig.json"},"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[5],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1064,7 +1067,8 @@ exports.someClass = someClass; "../../lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", - "./index.ts" + "./index.ts", + "../core/tsconfig.json" ], "fileNamesList": [ [ @@ -1246,13 +1250,13 @@ exports.someClass = someClass; } }, "version": "FakeTSVersion", - "size": 4414 + "size": 4392 } //// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"../logic/index.ts","index":0},{"kind":3,"file":"./index.ts","index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":"../logic/index.ts","resolvedPath":"../logic/index.d.ts","version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":{"../core/tsconfig.json":"../core/tsconfig.json","../logic/tsconfig.json":"../logic/tsconfig.json"},"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":"../logic/tsconfig.json"},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"../logic/index.ts","index":0},{"kind":3,"file":"./index.ts","index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":"../logic/index.ts","resolvedPath":"../logic/index.d.ts","version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[6,7],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":"../logic/tsconfig.json"},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1262,7 +1266,9 @@ exports.someClass = someClass; "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", - "./index.ts" + "./index.ts", + "../core/tsconfig.json", + "../logic/tsconfig.json" ], "fileNamesList": [ [ @@ -1554,7 +1560,7 @@ exports.someClass = someClass; } }, "version": "FakeTSVersion", - "size": 6118 + "size": 6073 } @@ -1744,10 +1750,10 @@ exitCode:: ExitStatus.Success {"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4]},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5]},"version":"FakeTSVersion"} @@ -1961,7 +1967,7 @@ var someClass2 = /** @class */ (function () { //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":{"../core/tsconfig.json":"../core/tsconfig.json"},"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[5],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1970,7 +1976,8 @@ var someClass2 = /** @class */ (function () { "../../lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", - "./index.ts" + "./index.ts", + "../core/tsconfig.json" ], "fileNamesList": [ [ @@ -2152,13 +2159,13 @@ var someClass2 = /** @class */ (function () { } }, "version": "FakeTSVersion", - "size": 4420 + "size": 4398 } //// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"../logic/index.ts","index":0},{"kind":3,"file":"./index.ts","index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":"../logic/index.ts","resolvedPath":"../logic/index.d.ts","version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":{"../core/tsconfig.json":"../core/tsconfig.json","../logic/tsconfig.json":"../logic/tsconfig.json"},"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":"../logic/tsconfig.json"},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"../logic/index.ts","index":0},{"kind":3,"file":"./index.ts","index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":"../logic/index.ts","resolvedPath":"../logic/index.d.ts","version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[6,7],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":"../logic/tsconfig.json"},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2168,7 +2175,9 @@ var someClass2 = /** @class */ (function () { "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", - "./index.ts" + "./index.ts", + "../core/tsconfig.json", + "../logic/tsconfig.json" ], "fileNamesList": [ [ @@ -2460,6 +2469,6 @@ var someClass2 = /** @class */ (function () { } }, "version": "FakeTSVersion", - "size": 6124 + "size": 6079 } From a75a4115fb1f4c07c5261676ae08543530eb82cd Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 10 Mar 2021 15:08:56 -0800 Subject: [PATCH 23/48] More usage of fileId in source file data --- src/compiler/builder.ts | 25 ++++---- src/testRunner/unittests/tsbuild/helpers.ts | 50 +++++++++++++++- ...nd-uses-it-for-new-program-with-outFile.js | 24 ++++---- ...-resolution-and-uses-it-for-new-program.js | 24 ++++---- .../initial-build/persistResolutions.js | 59 ++++++++++++------- ...er-resolutions-are-cleaned-with-outFile.js | 16 ++--- ...can-build-after-resolutions-are-cleaned.js | 16 ++--- ...-saved-in-tsbuildinfo-file-with-outFile.js | 14 ++--- ...ons-have-been-saved-in-tsbuildinfo-file.js | 14 ++--- ...nd-uses-it-for-new-program-with-outFile.js | 16 ++--- ...-resolution-and-uses-it-for-new-program.js | 16 ++--- ...nd-uses-it-for-new-program-with-outFile.js | 24 ++++---- ...-resolution-and-uses-it-for-new-program.js | 24 ++++---- ...er-resolutions-are-cleaned-with-outFile.js | 16 ++--- ...can-build-after-resolutions-are-cleaned.js | 16 ++--- ...-saved-in-tsbuildinfo-file-with-outFile.js | 18 +++--- ...ons-have-been-saved-in-tsbuildinfo-file.js | 14 ++--- ...nd-uses-it-for-new-program-with-outFile.js | 16 ++--- ...-resolution-and-uses-it-for-new-program.js | 16 ++--- 19 files changed, 240 insertions(+), 178 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index dab33b0b74607..f022a249e5518 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -823,8 +823,8 @@ namespace ts { export interface PersistedProgramSourceFile { fileName: string; originalFileName: string; - path: string; - resolvedPath: string; + path: ProgramBuildInfoFileId; + resolvedPath: ProgramBuildInfoFileId; // This currently is set to sourceFile.flags & NodeFlags.PermanentlySetIncrementalFlags but cant be set in type // Change this if it changes in reusing program flags: NodeFlags; @@ -840,7 +840,7 @@ namespace ts { resolvedModules?: MapLike; resolvedTypeReferenceDirectiveNames?: MapLike; - redirectInfo?: { readonly redirectTarget: { readonly path: string }; }; + redirectInfo?: { readonly redirectTarget: { readonly path: ProgramBuildInfoFileId; }; }; includeReasons: readonly PersistedProgramFileIncludeReason[]; isSourceFileFromExternalLibraryPath?: true; @@ -857,7 +857,7 @@ namespace ts { export interface ResolvedTypeReferenceDirectiveWithFailedLookupLocations extends ResolutionWithFailedLookupLocations { } export interface PersistedProgramReferencedFile { kind: ReferencedFileKind; - file: string; + file: ProgramBuildInfoFileId; index: number; } export type PersistedProgramFileIncludeReason = @@ -1056,12 +1056,11 @@ namespace ts { function toPersistedProgramSourceFile(sourceFile: SourceFile): PersistedProgramSourceFile { if (programFilesByName.get(sourceFile.path) === sourceFile) programFilesByName.delete(sourceFile.path); if (programFilesByName.get(sourceFile.resolvedPath) === sourceFile) programFilesByName.delete(sourceFile.resolvedPath); - const resolvedPath = relativeToBuildInfo(sourceFile.resolvedPath); return { fileName: relativeToBuildInfoEnsuringAbsolutePath(sourceFile.fileName), originalFileName: relativeToBuildInfoEnsuringAbsolutePath(sourceFile.originalFileName), - path: relativeToBuildInfo(sourceFile.path), - resolvedPath, + path: toFileId(sourceFile.path), + resolvedPath: toFileId(sourceFile.resolvedPath), version: sourceFile.version, flags: sourceFile.flags & NodeFlags.PermanentlySetIncrementalFlags, typeReferenceDirectives: mapToReadonlyArrayOrUndefined(sourceFile.typeReferenceDirectives, toPersistedProgramFileReference), @@ -1071,7 +1070,7 @@ namespace ts { moduleAugmentations: mapToReadonlyArrayOrUndefined(sourceFile.moduleAugmentations, toModuleNameOfProgramFromBuildInfo), ambientModuleNames: sourceFile.ambientModuleNames.length ? sourceFile.ambientModuleNames : undefined, hasNoDefaultLib: sourceFile.hasNoDefaultLib ? true : undefined, - redirectInfo: sourceFile.redirectInfo && { redirectTarget: { path: relativeToBuildInfo(sourceFile.redirectInfo.redirectTarget.path) } }, + redirectInfo: sourceFile.redirectInfo && { redirectTarget: { path: toFileId(sourceFile.redirectInfo.redirectTarget.path) } }, resolvedModules: toPersistedProgramResolutionMap(sourceFile.resolvedModules), resolvedTypeReferenceDirectiveNames: toPersistedProgramResolutionMap(sourceFile.resolvedTypeReferenceDirectiveNames), redirectTargets: mapToReadonlyArrayOrUndefined(program.redirectTargetsMap.get(sourceFile.path), relativeToBuildInfoEnsuringAbsolutePath), @@ -1082,7 +1081,7 @@ namespace ts { } function toPersistedProgramReferencedFile(reason: ReferencedFile): PersistedProgramReferencedFile { - return { ...reason, file: relativeToBuildInfo(reason.file) }; + return { ...reason, file: toFileId(reason.file) }; } function toPersistedProgramFileIncludeReason(reason: FileIncludeReason): PersistedProgramFileIncludeReason { @@ -1673,8 +1672,8 @@ namespace ts { return programFromBuildInfo = createProgramFromBuildInfo(state.persistedProgramInfo, state.compilerOptions); function toSourceFileOfProgramFromBuildInfo(file: PersistedProgramSourceFile): SourceFileOfProgramFromBuildInfo { - const path = toPath(file.path); - const resolvedPath = toPath(file.resolvedPath); + const path = toFilePath(file.path); + const resolvedPath = toFilePath(file.resolvedPath); fileIncludeReasons.set(path, file.includeReasons.map(toFileIncludeReason)); if (file.isSourceFileFromExternalLibraryPath) (sourceFileFromExternalLibraryPath ||= new Set()).add(path); @@ -1697,7 +1696,7 @@ namespace ts { hasNoDefaultLib: file.hasNoDefaultLib || false, resolvedModules: toResolutionMap(file.resolvedModules), resolvedTypeReferenceDirectiveNames: toResolutionMap(file.resolvedTypeReferenceDirectiveNames), - redirectInfo: file.redirectInfo && { redirectTarget: { path: toPath(file.redirectInfo.redirectTarget.path) } } + redirectInfo: file.redirectInfo && { redirectTarget: { path: toFilePath(file.redirectInfo.redirectTarget.path) } } }; if (!filesByName.has(path)) filesByName.set(path, sourceFile); @@ -1738,7 +1737,7 @@ namespace ts { } function toReferencedFile(reason: PersistedProgramReferencedFile): ReferencedFile { - return { ...reason, file: toPath(reason.file) }; + return { ...reason, file: toFilePath(reason.file) }; } function toFileIncludeReason(reason: PersistedProgramFileIncludeReason): FileIncludeReason { diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index 6b0c3a069d1c4..38436a459f942 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -238,8 +238,41 @@ interface Symbol { type ReadableProgramBuildInfoDiagnostic = string | [string, readonly ReusableDiagnostic[]]; type ReadableProgramBuilderInfoFilePendingEmit = [string, "DtsOnly" | "Full"]; + interface ReadablePersistedProgramSourceFile { + fileName: string; + originalFileName: string; + path: string; + resolvedPath: string; + flags: NodeFlags; + version: string; + typeReferenceDirectives?: readonly string[]; + libReferenceDirectives?: readonly string[]; + referencedFiles?: readonly string[]; + imports?: readonly StringLiteralLikeOfProgramFromBuildInfo[]; + moduleAugmentations?: readonly ModuleNameOfProgramFromBuildInfo[]; + ambientModuleNames?: readonly string[]; + hasNoDefaultLib?: true; + resolvedModules?: MapLike; + resolvedTypeReferenceDirectiveNames?: MapLike; + redirectInfo?: { readonly redirectTarget: { readonly path: string }; }; + includeReasons: readonly ReadablePersistedProgramFileIncludeReason[]; + isSourceFileFromExternalLibraryPath?: true; + redirectTargets?: readonly string[]; + packageName?: string; + } + interface ReadablePersistedProgramReferencedFile { + kind: ReferencedFileKind; + file: string; + index: number; + } + type ReadablePersistedProgramFileIncludeReason = + RootFile | + LibFile | + ProjectReferenceFile | + ReadablePersistedProgramReferencedFile | + AutomaticTypeDirectiveFile; interface ReadablePersistedProgram { - files: readonly PersistedProgramSourceFile[] | undefined; + files: readonly ReadablePersistedProgramSourceFile[] | undefined; rootFileNames: readonly string[] | undefined; filesByName: MapLike | undefined; projectReferences: readonly ProjectReference[] | undefined; @@ -295,6 +328,7 @@ interface Symbol { ]), peristedProgram: buildInfo.program.peristedProgram && { ...buildInfo.program.peristedProgram, + files: buildInfo.program.peristedProgram.files?.map(toReadablePersistedProgramSourceFile), filesByName, missingPaths: buildInfo.program.peristedProgram.missingPaths?.map(toFileName), }, @@ -325,6 +359,20 @@ interface Symbol { } return result; } + + function toReadablePersistedProgramSourceFile(file: PersistedProgramSourceFile): ReadablePersistedProgramSourceFile { + return { + ...file, + path: toFileName(file.path), + resolvedPath: toFileName(file.resolvedPath), + redirectInfo: file.redirectInfo && { redirectTarget: { path: toFileName(file.redirectInfo.redirectTarget.path) } }, + includeReasons: file.includeReasons.map(toReadablePersistedProgramFileIncludeReason), + }; + } + + function toReadablePersistedProgramFileIncludeReason(reason: PersistedProgramFileIncludeReason): ReadablePersistedProgramFileIncludeReason { + return isReferencedFile(reason) ? { ...reason, file: toFileName(reason.file) } : reason; + } } export function toPathWithSystem(sys: System, fileName: string): Path { diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index fc58b43595f91..349e7047e2f18 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -78,7 +78,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -257,7 +257,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 3798 + "size": 3548 } @@ -337,7 +337,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -516,7 +516,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 3824 + "size": 3574 } @@ -572,7 +572,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -791,7 +791,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 4420 + "size": 4122 } @@ -840,7 +840,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1078,7 +1078,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 4822 + "size": 4480 } @@ -1195,7 +1195,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":1},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1527,7 +1527,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5156 + "size": 4762 } @@ -1598,7 +1598,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1100,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":1},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1100,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1931,6 +1931,6 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5180 + "size": 4786 } diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 9521c5922bb10..54f2fd10033e4 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -82,7 +82,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -315,7 +315,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 4251 + "size": 4001 } @@ -396,7 +396,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -626,7 +626,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 4324 + "size": 4074 } @@ -684,7 +684,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -960,7 +960,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 4979 + "size": 4681 } @@ -1010,7 +1010,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1311,7 +1311,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 5448 + "size": 5106 } @@ -1448,7 +1448,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":1},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1710,7 +1710,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 4994 + "size": 4600 } @@ -1757,7 +1757,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":1},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2019,6 +2019,6 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 5018 + "size": 4624 } diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js index 15f95309d825e..89eff1c1983df 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js @@ -192,7 +192,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n","-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./anotherModule.ts","originalFileName":"./anotherModule.ts","path":"./anothermodule.ts","resolvedPath":"./anothermodule.ts","version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./some_decl.d.ts","originalFileName":"./some_decl.d.ts","path":"./some_decl.d.ts","resolvedPath":"./some_decl.d.ts","version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n","-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./anotherModule.ts","originalFileName":"./anotherModule.ts","path":2,"resolvedPath":2,"version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":3,"resolvedPath":3,"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./some_decl.d.ts","originalFileName":"./some_decl.d.ts","path":4,"resolvedPath":4,"version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -306,7 +306,7 @@ exports.multiply = multiply; } }, "version": "FakeTSVersion", - "size": 2799 + "size": 2667 } //// [/src/logic/index.d.ts] @@ -332,7 +332,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[5],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":5,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":6,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[7],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -342,6 +342,8 @@ exports.m = mod; "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts", + "../core/index.ts", + "../core/anothermodule.ts", "../core/tsconfig.json" ], "fileNamesList": [ @@ -522,7 +524,7 @@ exports.m = mod; } }, "version": "FakeTSVersion", - "size": 4127 + "size": 4003 } //// [/src/tests/index.d.ts] @@ -543,7 +545,7 @@ exports.m = mod; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"../logic/index.ts","index":0},{"kind":3,"file":"./index.ts","index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":"../logic/index.ts","resolvedPath":"../logic/index.d.ts","version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[6,7],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":"../logic/tsconfig.json"},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":6,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":7,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":8,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9,10],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":"../logic/tsconfig.json"},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -554,6 +556,9 @@ exports.m = mod; "../core/anothermodule.d.ts", "../logic/index.d.ts", "./index.ts", + "../core/index.ts", + "../core/anothermodule.ts", + "../logic/index.ts", "../core/tsconfig.json", "../logic/tsconfig.json" ], @@ -849,7 +854,7 @@ exports.m = mod; } }, "version": "FakeTSVersion", - "size": 5869 + "size": 5699 } @@ -937,7 +942,7 @@ exports.someClass = someClass; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./anotherModule.ts","originalFileName":"./anotherModule.ts","path":"./anothermodule.ts","resolvedPath":"./anothermodule.ts","version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./some_decl.d.ts","originalFileName":"./some_decl.d.ts","path":"./some_decl.d.ts","resolvedPath":"./some_decl.d.ts","version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./anotherModule.ts","originalFileName":"./anotherModule.ts","path":2,"resolvedPath":2,"version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":3,"resolvedPath":3,"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./some_decl.d.ts","originalFileName":"./some_decl.d.ts","path":4,"resolvedPath":4,"version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1051,14 +1056,14 @@ exports.someClass = someClass; } }, "version": "FakeTSVersion", - "size": 3113 + "size": 2981 } //// [/src/logic/index.d.ts] file written with same contents //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[5],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":5,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":6,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[7],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1068,6 +1073,8 @@ exports.someClass = someClass; "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts", + "../core/index.ts", + "../core/anothermodule.ts", "../core/tsconfig.json" ], "fileNamesList": [ @@ -1250,13 +1257,13 @@ exports.someClass = someClass; } }, "version": "FakeTSVersion", - "size": 4392 + "size": 4268 } //// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"../logic/index.ts","index":0},{"kind":3,"file":"./index.ts","index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":"../logic/index.ts","resolvedPath":"../logic/index.d.ts","version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[6,7],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":"../logic/tsconfig.json"},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":6,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":7,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":8,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9,10],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":"../logic/tsconfig.json"},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1267,6 +1274,9 @@ exports.someClass = someClass; "../core/anothermodule.d.ts", "../logic/index.d.ts", "./index.ts", + "../core/index.ts", + "../core/anothermodule.ts", + "../logic/index.ts", "../core/tsconfig.json", "../logic/tsconfig.json" ], @@ -1560,7 +1570,7 @@ exports.someClass = someClass; } }, "version": "FakeTSVersion", - "size": 6073 + "size": 5903 } @@ -1618,7 +1628,7 @@ var someClass2 = /** @class */ (function () { //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./anotherModule.ts","originalFileName":"./anotherModule.ts","path":"./anothermodule.ts","resolvedPath":"./anothermodule.ts","version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./some_decl.d.ts","originalFileName":"./some_decl.d.ts","path":"./some_decl.d.ts","resolvedPath":"./some_decl.d.ts","version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./anotherModule.ts","originalFileName":"./anotherModule.ts","path":2,"resolvedPath":2,"version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":3,"resolvedPath":3,"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./some_decl.d.ts","originalFileName":"./some_decl.d.ts","path":4,"resolvedPath":4,"version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1732,7 +1742,7 @@ var someClass2 = /** @class */ (function () { } }, "version": "FakeTSVersion", - "size": 3157 + "size": 3025 } @@ -1750,10 +1760,10 @@ exitCode:: ExitStatus.Success {"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4]},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5]},"version":"FakeTSVersion"} @@ -1846,7 +1856,7 @@ var someClass2 = /** @class */ (function () { //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-22243974128-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClassNew { }\nclass someClass2 { }","signature":"-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./anotherModule.ts","originalFileName":"./anotherModule.ts","path":"./anothermodule.ts","resolvedPath":"./anothermodule.ts","version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"-22243974128-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClassNew { }\nclass someClass2 { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./some_decl.d.ts","originalFileName":"./some_decl.d.ts","path":"./some_decl.d.ts","resolvedPath":"./some_decl.d.ts","version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-22243974128-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClassNew { }\nclass someClass2 { }","signature":"-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./anotherModule.ts","originalFileName":"./anotherModule.ts","path":2,"resolvedPath":2,"version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":3,"resolvedPath":3,"version":"-22243974128-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClassNew { }\nclass someClass2 { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./some_decl.d.ts","originalFileName":"./some_decl.d.ts","path":4,"resolvedPath":4,"version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1960,14 +1970,14 @@ var someClass2 = /** @class */ (function () { } }, "version": "FakeTSVersion", - "size": 3166 + "size": 3034 } //// [/src/logic/index.d.ts] file written with same contents //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[5],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":5,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":6,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[7],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1977,6 +1987,8 @@ var someClass2 = /** @class */ (function () { "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts", + "../core/index.ts", + "../core/anothermodule.ts", "../core/tsconfig.json" ], "fileNamesList": [ @@ -2159,13 +2171,13 @@ var someClass2 = /** @class */ (function () { } }, "version": "FakeTSVersion", - "size": 4398 + "size": 4274 } //// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":"../core/index.ts","resolvedPath":"../core/index.d.ts","version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"./index.ts","index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":"../core/anothermodule.ts","resolvedPath":"../core/anothermodule.d.ts","version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":"../logic/index.ts","index":0},{"kind":3,"file":"./index.ts","index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":"../logic/index.ts","resolvedPath":"../logic/index.d.ts","version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":"./index.ts","index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":"./index.ts","resolvedPath":"./index.ts","version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[6,7],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":"../logic/tsconfig.json"},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":6,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":7,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":8,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9,10],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":"../logic/tsconfig.json"},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2176,6 +2188,9 @@ var someClass2 = /** @class */ (function () { "../core/anothermodule.d.ts", "../logic/index.d.ts", "./index.ts", + "../core/index.ts", + "../core/anothermodule.ts", + "../logic/index.ts", "../core/tsconfig.json", "../logic/tsconfig.json" ], @@ -2469,6 +2484,6 @@ var someClass2 = /** @class */ (function () { } }, "version": "FakeTSVersion", - "size": 6079 + "size": 5909 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index 4007017edd65a..acdf0cd5a3ae0 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -103,7 +103,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -284,7 +284,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3718 + "size": 3452 } @@ -349,7 +349,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -530,7 +530,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3744 + "size": 3478 } @@ -610,7 +610,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -831,7 +831,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4340 + "size": 4026 } @@ -904,7 +904,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1144,6 +1144,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4742 + "size": 4384 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js index 488f473289235..74e146f5cd309 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -103,7 +103,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -338,7 +338,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4171 + "size": 3905 } @@ -404,7 +404,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -636,7 +636,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4242 + "size": 3976 } @@ -718,7 +718,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -996,7 +996,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4895 + "size": 4581 } @@ -1070,7 +1070,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1373,6 +1373,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5362 + "size": 5004 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index a0cef5995ee2e..9782196233560 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -28,7 +28,7 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics @@ -146,7 +146,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -327,7 +327,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3744 + "size": 3478 } @@ -407,7 +407,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -628,7 +628,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4340 + "size": 4026 } @@ -701,7 +701,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -941,6 +941,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4742 + "size": 4384 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index 24b04ef867f6d..7e2dfd3248bb4 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -28,7 +28,7 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics @@ -147,7 +147,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -379,7 +379,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4242 + "size": 3976 } @@ -461,7 +461,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -739,7 +739,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4895 + "size": 4581 } @@ -813,7 +813,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1116,6 +1116,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5362 + "size": 5004 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 760f1ca65f183..ddc427b79b530 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -100,7 +100,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -281,7 +281,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3718 + "size": 3452 } @@ -346,7 +346,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -527,7 +527,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3744 + "size": 3478 } @@ -607,7 +607,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -828,7 +828,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4340 + "size": 4026 } @@ -901,7 +901,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1141,6 +1141,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4742 + "size": 4384 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index aeaf8c206f554..b20dd6b2f6be1 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -104,7 +104,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -339,7 +339,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4171 + "size": 3905 } @@ -405,7 +405,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -637,7 +637,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4242 + "size": 3976 } @@ -719,7 +719,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -997,7 +997,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4895 + "size": 4581 } @@ -1071,7 +1071,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1374,6 +1374,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5362 + "size": 5004 } diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 0d8c9501b7d41..d2b332158db29 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -104,7 +104,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":531,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":167,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":531,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":167,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -344,7 +344,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4057 + "size": 3807 } @@ -449,7 +449,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":597,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":167,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":597,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":167,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -690,7 +690,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4083 + "size": 3833 } @@ -783,7 +783,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":816,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":238,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":816,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":238,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1075,7 +1075,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4698 + "size": 4400 } @@ -1171,7 +1171,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1493,7 +1493,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5125 + "size": 4783 } @@ -1610,7 +1610,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":1},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1943,7 +1943,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5171 + "size": 4777 } @@ -2014,7 +2014,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1100,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":1},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1100,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -2348,6 +2348,6 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5195 + "size": 4801 } diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 71b5f37b013e7..a280bed231024 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -118,7 +118,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -338,7 +338,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 4219 + "size": 3969 } @@ -428,7 +428,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -645,7 +645,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4292 + "size": 4042 } @@ -719,7 +719,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -978,7 +978,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 4941 + "size": 4643 } @@ -1042,7 +1042,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1322,7 +1322,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 5404 + "size": 5062 } @@ -1398,7 +1398,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/src/main.d.ts] file written with same contents //// [/src/project/src/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":1},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1661,7 +1661,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 5009 + "size": 4615 } @@ -1708,7 +1708,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":"../../lib/lib.d.ts","resolvedPath":"../../lib/lib.d.ts","version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":1},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1971,6 +1971,6 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 5033 + "size": 4639 } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index d7fc7f482a0cf..a0ca15c4383de 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -146,7 +146,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -354,7 +354,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3977 + "size": 3711 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -482,7 +482,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -690,7 +690,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 4003 + "size": 3737 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -853,7 +853,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1102,7 +1102,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4618 + "size": 4304 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1277,7 +1277,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1546,7 +1546,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5045 + "size": 4687 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js index 037497ef0c947..9e93fec89c817 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -154,7 +154,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -376,7 +376,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4139 + "size": 3873 } @@ -460,7 +460,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -679,7 +679,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4210 + "size": 3944 } @@ -780,7 +780,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1041,7 +1041,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4857 + "size": 4543 } //// [/user/username/projects/myproject/src/newFile.js] @@ -1145,7 +1145,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1427,7 +1427,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5318 + "size": 4960 } //// [/user/username/projects/myproject/src/fileNotFound.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 86cbffb6150a2..dc135cde7cc78 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -54,7 +54,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -125,7 +125,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -333,7 +333,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3977 + "size": 3711 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -461,7 +461,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -669,7 +669,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 4003 + "size": 3737 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -832,7 +832,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1081,7 +1081,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4618 + "size": 4304 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1256,7 +1256,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1525,7 +1525,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5045 + "size": 4687 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index 5623fcd9d5ba6..ff56739281ed3 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -64,7 +64,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -213,7 +213,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -432,7 +432,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4210 + "size": 3944 } @@ -533,7 +533,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -794,7 +794,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4857 + "size": 4543 } //// [/user/username/projects/myproject/src/newFile.js] @@ -898,7 +898,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1180,7 +1180,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5318 + "size": 4960 } //// [/user/username/projects/myproject/src/fileNotFound.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 1ba01f5ebfc71..71d31b990fc2d 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -141,7 +141,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -349,7 +349,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 3977 + "size": 3711 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -477,7 +477,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -685,7 +685,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 4003 + "size": 3737 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -848,7 +848,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1097,7 +1097,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4618 + "size": 4304 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1272,7 +1272,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1541,7 +1541,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5045 + "size": 4687 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index f5a09ce96796a..90dbffbdd1ecf 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -155,7 +155,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -377,7 +377,7 @@ export {}; } }, "version": "FakeTSVersion", - "size": 4139 + "size": 3873 } @@ -461,7 +461,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":0},{"kind":3,"file":"./src/main.ts","index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -680,7 +680,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4210 + "size": 3944 } @@ -781,7 +781,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":1},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1042,7 +1042,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4857 + "size": 4543 } //// [/user/username/projects/myproject/src/newFile.js] @@ -1146,7 +1146,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":"../../../../a/lib/lib.d.ts","resolvedPath":"../../../../a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":"./src/filepresent.ts","resolvedPath":"./src/filepresent.ts","version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/anotherfilereusingresolution.ts","index":0},{"kind":0,"index":2},{"kind":3,"file":"./src/main.ts","index":1},{"kind":3,"file":"./src/main.ts","index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":"./src/anotherfilereusingresolution.ts","resolvedPath":"./src/anotherfilereusingresolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":"./src/filenotfound.ts","resolvedPath":"./src/filenotfound.ts","version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":"./src/newfile.ts","resolvedPath":"./src/newfile.ts","version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":"./src/main.ts","index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":"./src/main.ts","resolvedPath":"./src/main.ts","version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1428,7 +1428,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5318 + "size": 4960 } //// [/user/username/projects/myproject/src/fileNotFound.js] From ecb0ef930b2d66af29237eca90f54c33c07e582d Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 10 Mar 2021 15:39:42 -0800 Subject: [PATCH 24/48] Handle file processing diagnostics and ResolvedProjectReference sourceFile path --- src/compiler/builder.ts | 14 ++-- src/testRunner/unittests/tsbuild/helpers.ts | 68 ++++++++++++++++++- .../initial-build/persistResolutions.js | 24 +++---- 3 files changed, 84 insertions(+), 22 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index f022a249e5518..8909f9db8a17a 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -874,7 +874,7 @@ namespace ts { } export interface PersistedProgramFilePreprocessingFileExplainingDiagnostic { kind: FilePreprocessingDiagnosticsKind.FilePreprocessingFileExplainingDiagnostic; - file?: string; + file?: ProgramBuildInfoFileId; fileProcessingReason: PersistedProgramFileIncludeReason; diagnostic: keyof typeof Diagnostics; args?: (string | number | undefined)[]; @@ -886,9 +886,9 @@ namespace ts { options: CompilerOptions; projectReferences: readonly ProjectReference[] | undefined; }; - sourceFile: { version: string; path: string; }; + sourceFile: { version: string; path: ProgramBuildInfoFileId; }; references: readonly (PersistedProgramResolvedProjectReference | undefined)[] | undefined; - }; + } export interface PersistedProgram { files: readonly PersistedProgramSourceFile[] | undefined; rootFileNames: readonly string[] | undefined; @@ -1094,7 +1094,7 @@ namespace ts { return { ...d, diagnostic: d.diagnostic.key as keyof typeof Diagnostics, - file: d.file && relativeToBuildInfo(d.file), + file: d.file && toFileId(d.file), fileProcessingReason: toPersistedProgramFileIncludeReason(d.fileProcessingReason), }; case FilePreprocessingDiagnosticsKind.FilePreprocessingReferencedDiagnostic: @@ -1115,7 +1115,7 @@ namespace ts { options: convertToProgramBuildInfoCompilerOptions(ref.commandLine.options, relativeToBuildInfoEnsuringAbsolutePath, /*filterOptions*/ false)!, projectReferences: mapToReadonlyArrayOrUndefined(ref.commandLine.projectReferences, toProjectReference) }, - sourceFile: { version: ref.sourceFile.version, path: relativeToBuildInfo(ref.sourceFile.path) }, + sourceFile: { version: ref.sourceFile.version, path: toFileId(ref.sourceFile.path) }, references: mapToReadonlyArrayOrUndefined(ref.references, toPersistedProgramResolvedProjectReference) }; } @@ -1779,7 +1779,7 @@ namespace ts { options: convertToOptionsWithAbsolutePaths(ref.commandLine.options, toAbsolutePath), projectReferences: ref.commandLine.projectReferences?.map(toProjectReference) }, - sourceFile: { version: ref.sourceFile.version, path: toPath(ref.sourceFile.path) }, + sourceFile: { version: ref.sourceFile.version, path: toFilePath(ref.sourceFile.path) }, references: ref.references?.map(toResolvedProjectReference) }; } @@ -1790,7 +1790,7 @@ namespace ts { return { ...d, diagnostic: Diagnostics[d.diagnostic], - file: d.file ? toPath(d.file) : undefined, + file: d.file ? toFilePath(d.file) : undefined, fileProcessingReason: toFileIncludeReason(d.fileProcessingReason), }; case FilePreprocessingDiagnosticsKind.FilePreprocessingReferencedDiagnostic: diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index 38436a459f942..3763a2969a166 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -271,15 +271,42 @@ interface Symbol { ProjectReferenceFile | ReadablePersistedProgramReferencedFile | AutomaticTypeDirectiveFile; + const enum ReadableFilePreprocessingDiagnosticsKind { + FilePreprocessingReferencedDiagnostic = "FilePreprocessingReferencedDiagnostic", + FilePreprocessingFileExplainingDiagnostic = "FilePreprocessingFileExplainingDiagnostic" + } + interface ReadablePersistedProgramFilePreprocessingReferencedDiagnostic { + kind: ReadableFilePreprocessingDiagnosticsKind.FilePreprocessingReferencedDiagnostic; + reason: ReadablePersistedProgramReferencedFile; + diagnostic: keyof typeof Diagnostics; + args?: (string | number | undefined)[]; + } + interface ReadablePersistedProgramFilePreprocessingFileExplainingDiagnostic { + kind: ReadableFilePreprocessingDiagnosticsKind.FilePreprocessingFileExplainingDiagnostic; + file?: string; + fileProcessingReason: ReadablePersistedProgramFileIncludeReason; + diagnostic: keyof typeof Diagnostics; + args?: (string | number | undefined)[]; + } + type ReadablePersistedProgramFilePreprocessingDiagnostic = ReadablePersistedProgramFilePreprocessingReferencedDiagnostic | ReadablePersistedProgramFilePreprocessingFileExplainingDiagnostic; + interface ReadablePersistedProgramResolvedProjectReference { + commandLine: { + fileNames: readonly string[] | undefined; + options: CompilerOptions; + projectReferences: readonly ProjectReference[] | undefined; + }; + sourceFile: { version: string; path: string; }; + references: readonly (ReadablePersistedProgramResolvedProjectReference | undefined)[] | undefined; + } interface ReadablePersistedProgram { files: readonly ReadablePersistedProgramSourceFile[] | undefined; rootFileNames: readonly string[] | undefined; filesByName: MapLike | undefined; projectReferences: readonly ProjectReference[] | undefined; - resolvedProjectReferences: readonly (PersistedProgramResolvedProjectReference | undefined)[] | undefined; + resolvedProjectReferences: readonly (ReadablePersistedProgramResolvedProjectReference | undefined)[] | undefined; missingPaths: readonly string[] | undefined; resolvedTypeReferenceDirectives: MapLike | undefined; - fileProcessingDiagnostics: readonly PersistedProgramFilePreprocessingDiagnostic[] | undefined; + fileProcessingDiagnostics: readonly ReadablePersistedProgramFilePreprocessingDiagnostic[] | undefined; resolutions: readonly PersistedProgramResolution[] | undefined; } interface ReadableProgramBuildInfo { @@ -330,7 +357,10 @@ interface Symbol { ...buildInfo.program.peristedProgram, files: buildInfo.program.peristedProgram.files?.map(toReadablePersistedProgramSourceFile), filesByName, + projectReferences: buildInfo.program.peristedProgram.projectReferences, + resolvedProjectReferences: buildInfo.program.peristedProgram.resolvedProjectReferences?.map(toReadablePersistedProgramResolvedProjectReference), missingPaths: buildInfo.program.peristedProgram.missingPaths?.map(toFileName), + fileProcessingDiagnostics: buildInfo.program.peristedProgram.fileProcessingDiagnostics?.map(toReadablePersistedProgramFilePreprocessingDiagnostic), }, }; const version = buildInfo.version === ts.version ? fakes.version : buildInfo.version; @@ -370,8 +400,40 @@ interface Symbol { }; } + function toReadablePersistedProgramReferencedFile(reason: PersistedProgramReferencedFile): ReadablePersistedProgramReferencedFile { + return { ...reason, file: toFileName(reason.file) }; + } + function toReadablePersistedProgramFileIncludeReason(reason: PersistedProgramFileIncludeReason): ReadablePersistedProgramFileIncludeReason { - return isReferencedFile(reason) ? { ...reason, file: toFileName(reason.file) } : reason; + return isReferencedFile(reason) ? toReadablePersistedProgramReferencedFile(reason) : reason; + } + + function toReadablePersistedProgramFilePreprocessingDiagnostic(d: PersistedProgramFilePreprocessingDiagnostic): ReadablePersistedProgramFilePreprocessingDiagnostic { + switch (d.kind) { + case FilePreprocessingDiagnosticsKind.FilePreprocessingFileExplainingDiagnostic: + return { + ...d, + kind: ReadableFilePreprocessingDiagnosticsKind.FilePreprocessingFileExplainingDiagnostic, + file: d.file ? toFileName(d.file) : undefined, + fileProcessingReason: toReadablePersistedProgramFileIncludeReason(d.fileProcessingReason), + }; + case FilePreprocessingDiagnosticsKind.FilePreprocessingReferencedDiagnostic: + return { + ...d, + kind: ReadableFilePreprocessingDiagnosticsKind.FilePreprocessingReferencedDiagnostic, + reason: toReadablePersistedProgramReferencedFile(d.reason), + }; + default: + Debug.assertNever(d); + } + } + + function toReadablePersistedProgramResolvedProjectReference(ref: PersistedProgramResolvedProjectReference | undefined): ReadablePersistedProgramResolvedProjectReference | undefined { + return ref && { + commandLine: ref.commandLine, + sourceFile: { ...ref.sourceFile, path: toFileName(ref.sourceFile.path) }, + references: ref.references?.map(toReadablePersistedProgramResolvedProjectReference) + }; } } diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js index 89eff1c1983df..e420633188bd9 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js @@ -332,7 +332,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":5,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":6,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[7],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":5,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":6,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[7],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":7}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -524,7 +524,7 @@ exports.m = mod; } }, "version": "FakeTSVersion", - "size": 4003 + "size": 3981 } //// [/src/tests/index.d.ts] @@ -545,7 +545,7 @@ exports.m = mod; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":6,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":7,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":8,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9,10],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":"../logic/tsconfig.json"},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":6,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":7,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":8,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9,10],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":10},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -854,7 +854,7 @@ exports.m = mod; } }, "version": "FakeTSVersion", - "size": 5699 + "size": 5633 } @@ -1063,7 +1063,7 @@ exports.someClass = someClass; //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":5,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":6,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[7],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":5,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":6,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[7],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":7}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1257,13 +1257,13 @@ exports.someClass = someClass; } }, "version": "FakeTSVersion", - "size": 4268 + "size": 4246 } //// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":6,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":7,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":8,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9,10],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":"../logic/tsconfig.json"},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":6,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":7,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":8,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9,10],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":10},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1570,7 +1570,7 @@ exports.someClass = someClass; } }, "version": "FakeTSVersion", - "size": 5903 + "size": 5837 } @@ -1977,7 +1977,7 @@ var someClass2 = /** @class */ (function () { //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":5,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":6,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[7],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":5,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":6,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[7],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":7}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2171,13 +2171,13 @@ var someClass2 = /** @class */ (function () { } }, "version": "FakeTSVersion", - "size": 4274 + "size": 4252 } //// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":6,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":7,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":8,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9,10],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":"../logic/tsconfig.json"},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":"../core/tsconfig.json"}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":6,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":7,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":8,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9,10],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":10},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2484,6 +2484,6 @@ var someClass2 = /** @class */ (function () { } }, "version": "FakeTSVersion", - "size": 5909 + "size": 5843 } From d4c57191ae3915cb4c6557a9ce7df5819ffc6ac8 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 19 Mar 2021 15:05:54 -0700 Subject: [PATCH 25/48] Convert fileName and originalFileName in the sourceFile to fileId --- src/compiler/builder.ts | 42 +++++++---- src/testRunner/unittests/tsbuild/helpers.ts | 4 +- ...nd-uses-it-for-new-program-with-outFile.js | 57 ++++++++++----- ...-resolution-and-uses-it-for-new-program.js | 57 ++++++++++----- .../initial-build/persistResolutions.js | 70 ++++++++++++------- ...er-resolutions-are-cleaned-with-outFile.js | 37 ++++++---- ...can-build-after-resolutions-are-cleaned.js | 37 ++++++---- ...-saved-in-tsbuildinfo-file-with-outFile.js | 29 +++++--- ...ons-have-been-saved-in-tsbuildinfo-file.js | 29 +++++--- ...nd-uses-it-for-new-program-with-outFile.js | 35 ++++++---- ...-resolution-and-uses-it-for-new-program.js | 35 ++++++---- ...nd-uses-it-for-new-program-with-outFile.js | 57 ++++++++++----- ...-resolution-and-uses-it-for-new-program.js | 57 ++++++++++----- ...er-resolutions-are-cleaned-with-outFile.js | 37 ++++++---- ...can-build-after-resolutions-are-cleaned.js | 37 ++++++---- ...-saved-in-tsbuildinfo-file-with-outFile.js | 37 ++++++---- ...ons-have-been-saved-in-tsbuildinfo-file.js | 29 +++++--- ...nd-uses-it-for-new-program-with-outFile.js | 35 ++++++---- ...-resolution-and-uses-it-for-new-program.js | 35 ++++++---- 19 files changed, 496 insertions(+), 260 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index 8909f9db8a17a..42faab847cc47 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -798,6 +798,7 @@ namespace ts { } export type ProgramBuildInfoFileId = number & { __programBuildInfoFileIdBrand: any }; + export type ProgramBuildInfoAbsoluteFileId = number & { __programBuildInfoAbsoluteFileIdBrand: any }; export type ProgramBuildInfoFileIdListId = number & { __programBuildInfoFileIdListIdBrand: any }; export type ProgramBuildInfoDiagnostic = ProgramBuildInfoFileId | [fileId: ProgramBuildInfoFileId, diagnostics: readonly ReusableDiagnostic[]]; export type ProgramBuilderInfoFilePendingEmit = [fileId: ProgramBuildInfoFileId, emitKind: BuilderFileEmit]; @@ -821,8 +822,8 @@ namespace ts { failedLookupLocations?: readonly string[]; }; export interface PersistedProgramSourceFile { - fileName: string; - originalFileName: string; + fileName: ProgramBuildInfoAbsoluteFileId; + originalFileName: ProgramBuildInfoAbsoluteFileId; path: ProgramBuildInfoFileId; resolvedPath: ProgramBuildInfoFileId; // This currently is set to sourceFile.flags & NodeFlags.PermanentlySetIncrementalFlags but cant be set in type @@ -921,7 +922,7 @@ namespace ts { const currentDirectory = program.getCurrentDirectory(); const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions)!, currentDirectory)); const fileNames: string[] = []; - const fileNameToFileId = new Map(); + const fileNameToFileId = new Map(); let fileIdsList: (readonly ProgramBuildInfoFileId[])[] | undefined; let fileNamesToFileIdListId: ESMap | undefined; let resolutions: (ResolvedModuleWithFailedLookupLocations | ResolvedTypeReferenceDirectiveWithFailedLookupLocations)[] | undefined; @@ -1033,15 +1034,23 @@ namespace ts { return ensurePathIsNonModuleName(getRelativePathFromDirectory(buildInfoDirectory, path, getCanonicalFileName)); } - function toFileId(path: Path): ProgramBuildInfoFileId { + function toFileAndAbsoluteFileId(path: string): ProgramBuildInfoFileId & ProgramBuildInfoAbsoluteFileId { let fileId = fileNameToFileId.get(path); if (fileId === undefined) { fileNames.push(relativeToBuildInfo(path)); - fileNameToFileId.set(path, fileId = fileNames.length as ProgramBuildInfoFileId); + fileNameToFileId.set(path, fileId = fileNames.length as ProgramBuildInfoFileId & ProgramBuildInfoAbsoluteFileId); } return fileId; } + function toFileId(path: Path): ProgramBuildInfoFileId { + return toFileAndAbsoluteFileId(path); + } + + function toAbsoluteFileId(path: string): ProgramBuildInfoAbsoluteFileId { + return toFileAndAbsoluteFileId(getNormalizedAbsolutePath(path, currentDirectory)); + } + function toFileIdListId(set: ReadonlySet): ProgramBuildInfoFileIdListId { const fileIds = arrayFrom(set.keys(), toFileId).sort(compareValues); const key = fileIds.join(); @@ -1057,8 +1066,8 @@ namespace ts { if (programFilesByName.get(sourceFile.path) === sourceFile) programFilesByName.delete(sourceFile.path); if (programFilesByName.get(sourceFile.resolvedPath) === sourceFile) programFilesByName.delete(sourceFile.resolvedPath); return { - fileName: relativeToBuildInfoEnsuringAbsolutePath(sourceFile.fileName), - originalFileName: relativeToBuildInfoEnsuringAbsolutePath(sourceFile.originalFileName), + fileName: toAbsoluteFileId(sourceFile.fileName), + originalFileName: toAbsoluteFileId(sourceFile.originalFileName), path: toFileId(sourceFile.path), resolvedPath: toFileId(sourceFile.resolvedPath), version: sourceFile.version, @@ -1589,7 +1598,8 @@ namespace ts { const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory())); const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames()); - const filePaths = program.fileNames.map(toPath); + const filePaths: (Path | undefined)[] = []; + let fileAbsolutePaths: (string | undefined)[] | undefined; const filePathsSetList = program.fileIdsList?.map(fileIds => new Set(fileIds.map(toFilePath))); const fileInfos = new Map(); program.fileInfos.forEach((fileInfo, index) => fileInfos.set(toFilePath(index + 1 as ProgramBuildInfoFileId), toBuilderStateFileInfo(fileInfo))); @@ -1681,8 +1691,8 @@ namespace ts { if (file.packageName) sourceFileToPackageName.set(path, file.packageName); const sourceFile: SourceFileOfProgramFromBuildInfo = { - fileName: toAbsolutePath(file.fileName), - originalFileName: toAbsolutePath(file.originalFileName), + fileName: toFileAbsolutePath(file.fileName), + originalFileName: toFileAbsolutePath(file.originalFileName), path, resolvedPath, flags: file.flags, @@ -1724,11 +1734,17 @@ namespace ts { return getNormalizedAbsolutePath(path, buildInfoDirectory); } - function toFilePath(fileId: ProgramBuildInfoFileId) { - return filePaths[fileId - 1]; + function toFilePath(fileId: ProgramBuildInfoFileId): Path { + const result = filePaths[fileId - 1]; + return result !== undefined ? result : filePaths[fileId - 1] = toPath(program.fileNames[fileId - 1]); + } + + function toFileAbsolutePath(fileId: ProgramBuildInfoAbsoluteFileId): string { + const result = fileAbsolutePaths?.[fileId - 1]; + return result !== undefined ? result : (fileAbsolutePaths ||= [])[fileId - 1] = toAbsolutePath(program.fileNames[fileId - 1]); } - function toFilePathsSet(fileIdsListId: ProgramBuildInfoFileIdListId) { + function toFilePathsSet(fileIdsListId: ProgramBuildInfoFileIdListId): Set { return filePathsSetList![fileIdsListId - 1]; } diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index 3763a2969a166..f56953b980bd3 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -373,7 +373,7 @@ interface Symbol { // For now its just JSON.stringify originalWriteFile.call(sys, `${buildInfoPath}.readable.baseline.txt`, JSON.stringify(result, /*replacer*/ undefined, 2)); - function toFileName(fileId: ProgramBuildInfoFileId) { + function toFileName(fileId: ProgramBuildInfoFileId | ProgramBuildInfoAbsoluteFileId) { return buildInfo.program!.fileNames[fileId - 1]; } @@ -393,6 +393,8 @@ interface Symbol { function toReadablePersistedProgramSourceFile(file: PersistedProgramSourceFile): ReadablePersistedProgramSourceFile { return { ...file, + fileName: toFileName(file.fileName), + originalFileName: toFileName(file.originalFileName), path: toFileName(file.path), resolvedPath: toFileName(file.resolvedPath), redirectInfo: file.redirectInfo && { redirectTarget: { path: toFileName(file.redirectInfo.redirectTarget.path) } }, diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 349e7047e2f18..4dc3c6f16c75f 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -78,7 +78,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -87,7 +87,9 @@ No cached semantic diagnostics in the builder:: "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -257,7 +259,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 3548 + "size": 3427 } @@ -337,7 +339,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -346,7 +348,9 @@ No cached semantic diagnostics in the builder:: "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -516,7 +520,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 3574 + "size": 3453 } @@ -572,7 +576,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -582,7 +586,10 @@ No cached semantic diagnostics in the builder:: "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -791,7 +798,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 4122 + "size": 3986 } @@ -840,7 +847,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -851,7 +858,11 @@ No cached semantic diagnostics in the builder:: "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1078,7 +1089,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 4480 + "size": 4326 } @@ -1093,7 +1104,7 @@ exitCode:: ExitStatus.Success //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} @@ -1195,7 +1206,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1289,7 +1300,11 @@ declare module "src/main" { } "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1527,7 +1542,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4762 + "size": 4608 } @@ -1598,7 +1613,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1100,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1100,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1693,7 +1708,11 @@ declare module "src/main" { } "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1931,6 +1950,6 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4786 + "size": 4632 } diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 54f2fd10033e4..175dbf0e4c0de 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -82,7 +82,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -91,7 +91,9 @@ Semantic diagnostics in builder refreshed for:: "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -315,7 +317,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 4001 + "size": 3880 } @@ -396,7 +398,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -405,7 +407,9 @@ Semantic diagnostics in builder refreshed for:: "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -626,7 +630,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 4074 + "size": 3953 } @@ -684,7 +688,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -694,7 +698,10 @@ Semantic diagnostics in builder refreshed for:: "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -960,7 +967,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 4681 + "size": 4545 } @@ -1010,7 +1017,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1021,7 +1028,11 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1311,7 +1322,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 5106 + "size": 4952 } @@ -1326,7 +1337,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]]},"version":"FakeTSVersion"} @@ -1448,7 +1459,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1459,7 +1470,11 @@ define(["require", "exports"], function (require, exports) { "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1710,7 +1725,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 4600 + "size": 4446 } @@ -1757,7 +1772,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1768,7 +1783,11 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -2019,6 +2038,6 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4624 + "size": 4470 } diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js index e420633188bd9..0dca265f22afa 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js @@ -192,7 +192,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n","-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./anotherModule.ts","originalFileName":"./anotherModule.ts","path":2,"resolvedPath":2,"version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":3,"resolvedPath":3,"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./some_decl.d.ts","originalFileName":"./some_decl.d.ts","path":4,"resolvedPath":4,"version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts","./anotherModule.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n","-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":3,"originalFileName":3,"path":3,"resolvedPath":3,"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -201,7 +201,8 @@ exports.multiply = multiply; "../../lib/lib.d.ts", "./anothermodule.ts", "./index.ts", - "./some_decl.d.ts" + "./some_decl.d.ts", + "./anotherModule.ts" ], "fileInfos": { "../../lib/lib.d.ts": { @@ -306,7 +307,7 @@ exports.multiply = multiply; } }, "version": "FakeTSVersion", - "size": 2667 + "size": 2556 } //// [/src/logic/index.d.ts] @@ -332,7 +333,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":5,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":6,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[7],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":7}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -343,6 +344,8 @@ exports.m = mod; "../core/anothermodule.d.ts", "./index.ts", "../core/index.ts", + "../core/anotherModule.d.ts", + "../core/anotherModule.ts", "../core/anothermodule.ts", "../core/tsconfig.json" ], @@ -524,7 +527,7 @@ exports.m = mod; } }, "version": "FakeTSVersion", - "size": 3981 + "size": 3889 } //// [/src/tests/index.d.ts] @@ -545,7 +548,7 @@ exports.m = mod; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":6,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":7,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":8,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9,10],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":10},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[11,12],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -557,6 +560,8 @@ exports.m = mod; "../logic/index.d.ts", "./index.ts", "../core/index.ts", + "../core/anotherModule.d.ts", + "../core/anotherModule.ts", "../core/anothermodule.ts", "../logic/index.ts", "../core/tsconfig.json", @@ -854,7 +859,7 @@ exports.m = mod; } }, "version": "FakeTSVersion", - "size": 5633 + "size": 5509 } @@ -942,7 +947,7 @@ exports.someClass = someClass; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./anotherModule.ts","originalFileName":"./anotherModule.ts","path":2,"resolvedPath":2,"version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":3,"resolvedPath":3,"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./some_decl.d.ts","originalFileName":"./some_decl.d.ts","path":4,"resolvedPath":4,"version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts","./anotherModule.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":3,"originalFileName":3,"path":3,"resolvedPath":3,"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -951,7 +956,8 @@ exports.someClass = someClass; "../../lib/lib.d.ts", "./anothermodule.ts", "./index.ts", - "./some_decl.d.ts" + "./some_decl.d.ts", + "./anotherModule.ts" ], "fileInfos": { "../../lib/lib.d.ts": { @@ -1056,14 +1062,14 @@ exports.someClass = someClass; } }, "version": "FakeTSVersion", - "size": 2981 + "size": 2870 } //// [/src/logic/index.d.ts] file written with same contents //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":5,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":6,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[7],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":7}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1074,6 +1080,8 @@ exports.someClass = someClass; "../core/anothermodule.d.ts", "./index.ts", "../core/index.ts", + "../core/anotherModule.d.ts", + "../core/anotherModule.ts", "../core/anothermodule.ts", "../core/tsconfig.json" ], @@ -1257,13 +1265,13 @@ exports.someClass = someClass; } }, "version": "FakeTSVersion", - "size": 4246 + "size": 4154 } //// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":6,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":7,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":8,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9,10],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":10},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[11,12],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1275,6 +1283,8 @@ exports.someClass = someClass; "../logic/index.d.ts", "./index.ts", "../core/index.ts", + "../core/anotherModule.d.ts", + "../core/anotherModule.ts", "../core/anothermodule.ts", "../logic/index.ts", "../core/tsconfig.json", @@ -1570,7 +1580,7 @@ exports.someClass = someClass; } }, "version": "FakeTSVersion", - "size": 5837 + "size": 5713 } @@ -1628,7 +1638,7 @@ var someClass2 = /** @class */ (function () { //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./anotherModule.ts","originalFileName":"./anotherModule.ts","path":2,"resolvedPath":2,"version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":3,"resolvedPath":3,"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./some_decl.d.ts","originalFileName":"./some_decl.d.ts","path":4,"resolvedPath":4,"version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts","./anotherModule.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":3,"originalFileName":3,"path":3,"resolvedPath":3,"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1637,7 +1647,8 @@ var someClass2 = /** @class */ (function () { "../../lib/lib.d.ts", "./anothermodule.ts", "./index.ts", - "./some_decl.d.ts" + "./some_decl.d.ts", + "./anotherModule.ts" ], "fileInfos": { "../../lib/lib.d.ts": { @@ -1742,7 +1753,7 @@ var someClass2 = /** @class */ (function () { } }, "version": "FakeTSVersion", - "size": 3025 + "size": 2914 } @@ -1757,13 +1768,13 @@ exitCode:: ExitStatus.Success //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts","./anotherModule.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4]},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5]},"version":"FakeTSVersion"} @@ -1856,7 +1867,7 @@ var someClass2 = /** @class */ (function () { //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-22243974128-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClassNew { }\nclass someClass2 { }","signature":"-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./anotherModule.ts","originalFileName":"./anotherModule.ts","path":2,"resolvedPath":2,"version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":3,"resolvedPath":3,"version":"-22243974128-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClassNew { }\nclass someClass2 { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./some_decl.d.ts","originalFileName":"./some_decl.d.ts","path":4,"resolvedPath":4,"version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts","./anotherModule.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-22243974128-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClassNew { }\nclass someClass2 { }","signature":"-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":3,"originalFileName":3,"path":3,"resolvedPath":3,"version":"-22243974128-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClassNew { }\nclass someClass2 { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1865,7 +1876,8 @@ var someClass2 = /** @class */ (function () { "../../lib/lib.d.ts", "./anothermodule.ts", "./index.ts", - "./some_decl.d.ts" + "./some_decl.d.ts", + "./anotherModule.ts" ], "fileInfos": { "../../lib/lib.d.ts": { @@ -1970,14 +1982,14 @@ var someClass2 = /** @class */ (function () { } }, "version": "FakeTSVersion", - "size": 3034 + "size": 2923 } //// [/src/logic/index.d.ts] file written with same contents //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":5,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":6,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[7],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":7}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1988,6 +2000,8 @@ var someClass2 = /** @class */ (function () { "../core/anothermodule.d.ts", "./index.ts", "../core/index.ts", + "../core/anotherModule.d.ts", + "../core/anotherModule.ts", "../core/anothermodule.ts", "../core/tsconfig.json" ], @@ -2171,13 +2185,13 @@ var someClass2 = /** @class */ (function () { } }, "version": "FakeTSVersion", - "size": 4252 + "size": 4160 } //// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"../core/index.d.ts","originalFileName":"../core/index.ts","path":6,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":"../core/anotherModule.d.ts","originalFileName":"../core/anotherModule.ts","path":7,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":"../logic/index.d.ts","originalFileName":"../logic/index.ts","path":8,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":"./index.ts","originalFileName":"./index.ts","path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9,10],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":10},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[11,12],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2189,6 +2203,8 @@ var someClass2 = /** @class */ (function () { "../logic/index.d.ts", "./index.ts", "../core/index.ts", + "../core/anotherModule.d.ts", + "../core/anotherModule.ts", "../core/anothermodule.ts", "../logic/index.ts", "../core/tsconfig.json", @@ -2484,6 +2500,6 @@ var someClass2 = /** @class */ (function () { } }, "version": "FakeTSVersion", - "size": 5843 + "size": 5719 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index acdf0cd5a3ae0..4ea05566f28f9 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -28,7 +28,7 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics @@ -103,7 +103,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -112,7 +112,9 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -284,7 +286,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3452 + "size": 3315 } @@ -349,7 +351,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -358,7 +360,9 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -530,7 +534,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3478 + "size": 3341 } @@ -610,7 +614,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -620,7 +624,10 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -831,7 +838,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4026 + "size": 3874 } @@ -904,7 +911,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -915,7 +922,11 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1144,6 +1155,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4384 + "size": 4214 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js index 74e146f5cd309..13cce27f7d596 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -28,7 +28,7 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]]},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics @@ -103,7 +103,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -112,7 +112,9 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -338,7 +340,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3905 + "size": 3768 } @@ -404,7 +406,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -413,7 +415,9 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -636,7 +640,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3976 + "size": 3839 } @@ -718,7 +722,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -728,7 +732,10 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -996,7 +1003,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4581 + "size": 4429 } @@ -1070,7 +1077,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1081,7 +1088,11 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1373,6 +1384,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5004 + "size": 4834 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 9782196233560..96374dda47f4d 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -28,7 +28,7 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics @@ -146,7 +146,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -155,7 +155,9 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -327,7 +329,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3478 + "size": 3341 } @@ -407,7 +409,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -417,7 +419,10 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -628,7 +633,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4026 + "size": 3874 } @@ -701,7 +706,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -712,7 +717,11 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -941,6 +950,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4384 + "size": 4214 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index 7e2dfd3248bb4..10ef1ae7b9789 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -28,7 +28,7 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics @@ -147,7 +147,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -156,7 +156,9 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -379,7 +381,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3976 + "size": 3839 } @@ -461,7 +463,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -471,7 +473,10 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -739,7 +744,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4581 + "size": 4429 } @@ -813,7 +818,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -824,7 +829,11 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1116,6 +1125,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5004 + "size": 4834 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index ddc427b79b530..8080641f65555 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -100,7 +100,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -109,7 +109,9 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -281,7 +283,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3452 + "size": 3315 } @@ -346,7 +348,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -355,7 +357,9 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -527,7 +531,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3478 + "size": 3341 } @@ -607,7 +611,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -617,7 +621,10 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -828,7 +835,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4026 + "size": 3874 } @@ -901,7 +908,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -912,7 +919,11 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1141,6 +1152,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4384 + "size": 4214 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index b20dd6b2f6be1..b095de25b6429 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -104,7 +104,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -113,7 +113,9 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -339,7 +341,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3905 + "size": 3768 } @@ -405,7 +407,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -414,7 +416,9 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -637,7 +641,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3976 + "size": 3839 } @@ -719,7 +723,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -729,7 +733,10 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -997,7 +1004,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4581 + "size": 4429 } @@ -1071,7 +1078,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1082,7 +1089,11 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1374,6 +1385,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5004 + "size": 4834 } diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index d2b332158db29..5915635780609 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -104,7 +104,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":531,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":167,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":531,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":167,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -173,7 +173,9 @@ declare module "src/main" { } "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -344,7 +346,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 3807 + "size": 3686 } @@ -449,7 +451,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":597,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":167,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":597,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":167,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -519,7 +521,9 @@ declare module "src/main" { } "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -690,7 +694,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 3833 + "size": 3712 } @@ -783,7 +787,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":816,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":238,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":816,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":238,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -865,7 +869,10 @@ declare module "src/main" { } "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1075,7 +1082,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4400 + "size": 4264 } @@ -1171,7 +1178,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1265,7 +1272,11 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1493,7 +1504,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4783 + "size": 4629 } @@ -1508,7 +1519,7 @@ exitCode:: ExitStatus.Success //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} @@ -1610,7 +1621,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1704,7 +1715,11 @@ declare module "src/main" { } "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1943,7 +1958,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4777 + "size": 4623 } @@ -2014,7 +2029,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1100,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1100,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -2109,7 +2124,11 @@ declare module "src/main" { } "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -2348,6 +2367,6 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4801 + "size": 4647 } diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index a280bed231024..86b75d8452930 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -118,7 +118,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -127,7 +127,9 @@ define(["require", "exports"], function (require, exports) { "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -338,7 +340,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 3969 + "size": 3848 } @@ -428,7 +430,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -437,7 +439,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -645,7 +649,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4042 + "size": 3921 } @@ -719,7 +723,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -729,7 +733,10 @@ define(["require", "exports"], function (require, exports) { "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -978,7 +985,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 4643 + "size": 4507 } @@ -1042,7 +1049,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1053,7 +1060,11 @@ define(["require", "exports"], function (require, exports) { "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1322,7 +1333,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 5062 + "size": 4908 } @@ -1337,7 +1348,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5]},"version":"FakeTSVersion"} @@ -1398,7 +1409,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/src/main.d.ts] file written with same contents //// [/src/project/src/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1409,7 +1420,11 @@ Semantic diagnostics in builder refreshed for:: "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1661,7 +1676,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 4615 + "size": 4461 } @@ -1708,7 +1723,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":"../../lib/lib.d.ts","originalFileName":"../../lib/lib.d.ts","path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1719,7 +1734,11 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1971,6 +1990,6 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4639 + "size": 4485 } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index a0ca15c4383de..a9c967169a1ae 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -54,7 +54,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -146,7 +146,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -181,7 +181,9 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -354,7 +356,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3711 + "size": 3574 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -482,7 +484,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -517,7 +519,9 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -690,7 +694,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 3737 + "size": 3600 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -853,7 +857,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -890,7 +894,10 @@ declare module "src/main" { } "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1102,7 +1109,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4304 + "size": 4152 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1277,7 +1284,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1316,7 +1323,11 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1546,7 +1557,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4687 + "size": 4517 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js index 9e93fec89c817..6aaa26011a0b9 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -64,7 +64,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -154,7 +154,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -163,7 +163,9 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -376,7 +378,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3873 + "size": 3736 } @@ -460,7 +462,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -469,7 +471,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -679,7 +683,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 3944 + "size": 3807 } @@ -780,7 +784,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -790,7 +794,10 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1041,7 +1048,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4543 + "size": 4391 } //// [/user/username/projects/myproject/src/newFile.js] @@ -1145,7 +1152,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1156,7 +1163,11 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1427,7 +1438,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4960 + "size": 4790 } //// [/user/username/projects/myproject/src/fileNotFound.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index dc135cde7cc78..c2bf1166033e9 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -54,7 +54,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -125,7 +125,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -160,7 +160,9 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -333,7 +335,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3711 + "size": 3574 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -461,7 +463,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -496,7 +498,9 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -669,7 +673,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 3737 + "size": 3600 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -832,7 +836,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -869,7 +873,10 @@ declare module "src/main" { } "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1081,7 +1088,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4304 + "size": 4152 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1256,7 +1263,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1295,7 +1302,11 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1525,7 +1536,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4687 + "size": 4517 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index ff56739281ed3..9ac7ec15ecdd5 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -64,7 +64,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -213,7 +213,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -222,7 +222,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -432,7 +434,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 3944 + "size": 3807 } @@ -533,7 +535,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -543,7 +545,10 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -794,7 +799,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4543 + "size": 4391 } //// [/user/username/projects/myproject/src/newFile.js] @@ -898,7 +903,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -909,7 +914,11 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1180,7 +1189,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4960 + "size": 4790 } //// [/user/username/projects/myproject/src/fileNotFound.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 71d31b990fc2d..5fa13e76faaa1 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -141,7 +141,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -176,7 +176,9 @@ declare module "src/main" { } "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -349,7 +351,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 3711 + "size": 3574 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -477,7 +479,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -512,7 +514,9 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -685,7 +689,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 3737 + "size": 3600 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -848,7 +852,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -885,7 +889,10 @@ declare module "src/main" { } "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1097,7 +1104,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4304 + "size": 4152 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1272,7 +1279,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1311,7 +1318,11 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1541,7 +1552,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4687 + "size": 4517 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index 90dbffbdd1ecf..460e2b6a6b691 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -155,7 +155,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -164,7 +164,9 @@ export {}; "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -377,7 +379,7 @@ export {}; } }, "version": "FakeTSVersion", - "size": 3873 + "size": 3736 } @@ -461,7 +463,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -470,7 +472,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts" ], "fileNamesList": [ [ @@ -680,7 +684,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 3944 + "size": 3807 } @@ -781,7 +785,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -791,7 +795,10 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1042,7 +1049,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4543 + "size": 4391 } //// [/user/username/projects/myproject/src/newFile.js] @@ -1146,7 +1153,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":"../../../../a/lib/lib.d.ts","originalFileName":"../../../../a/lib/lib.d.ts","path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":"./src/filePresent.ts","originalFileName":"./src/filePresent.ts","path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":"./src/anotherFileReusingResolution.ts","originalFileName":"./src/anotherFileReusingResolution.ts","path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":"./src/fileNotFound.ts","originalFileName":"./src/fileNotFound.ts","path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":"./src/newFile.ts","originalFileName":"./src/newFile.ts","path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":"./src/main.ts","originalFileName":"./src/main.ts","path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1157,7 +1164,11 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/newfile.ts", - "./src/main.ts" + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -1428,7 +1439,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4960 + "size": 4790 } //// [/user/username/projects/myproject/src/fileNotFound.js] From 63490b4575bf16a57d0f27666000e8e643a018fb Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 19 Mar 2021 15:32:56 -0700 Subject: [PATCH 26/48] ProjectReference and ResolvedProjectReference mapping --- src/compiler/builder.ts | 38 ++++++------- src/testRunner/unittests/tsbuild/helpers.ts | 12 +++- .../initial-build/persistResolutions.js | 55 ++++++++++++------- 3 files changed, 62 insertions(+), 43 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index 42faab847cc47..94d0d8c0b73a5 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -881,11 +881,17 @@ namespace ts { args?: (string | number | undefined)[]; } export type PersistedProgramFilePreprocessingDiagnostic = PersistedProgramFilePreprocessingReferencedDiagnostic | PersistedProgramFilePreprocessingFileExplainingDiagnostic; + export interface PersistedProgramProjectReference { + path: ProgramBuildInfoAbsoluteFileId; + originalPath?: string; + prepend?: boolean; + circular?: boolean; + } export interface PersistedProgramResolvedProjectReference { commandLine: { - fileNames: readonly string[] | undefined; + fileNames: readonly ProgramBuildInfoAbsoluteFileId[] | undefined; options: CompilerOptions; - projectReferences: readonly ProjectReference[] | undefined; + projectReferences: readonly PersistedProgramProjectReference[] | undefined; }; sourceFile: { version: string; path: ProgramBuildInfoFileId; }; references: readonly (PersistedProgramResolvedProjectReference | undefined)[] | undefined; @@ -894,7 +900,7 @@ namespace ts { files: readonly PersistedProgramSourceFile[] | undefined; rootFileNames: readonly string[] | undefined; filesByName: readonly PersistedProgramFileByNameEntry[] | undefined; - projectReferences: readonly ProjectReference[] | undefined; + projectReferences: readonly PersistedProgramProjectReference[] | undefined; resolvedProjectReferences: readonly (PersistedProgramResolvedProjectReference | undefined)[] | undefined; missingPaths: readonly ProgramBuildInfoFileId[] | undefined; resolvedTypeReferenceDirectives: MapLike | undefined; @@ -1006,7 +1012,7 @@ namespace ts { files, rootFileNames: mapToReadonlyArrayOrUndefined(program.getRootFileNames(), relativeToBuildInfoEnsuringAbsolutePath), filesByName, - projectReferences: program.getProjectReferences()?.map(toProjectReference), + projectReferences: program.getProjectReferences()?.map(toPersistedProgramProjectReference), resolvedProjectReferences: program.getResolvedProjectReferences()?.map(toPersistedProgramResolvedProjectReference), missingPaths: mapToReadonlyArrayOrUndefined(program.getMissingFilePaths(), toFileId), resolvedTypeReferenceDirectives: toPersistedProgramResolutionMap(program.getResolvedTypeReferenceDirectives()), @@ -1120,22 +1126,17 @@ namespace ts { function toPersistedProgramResolvedProjectReference(ref: ResolvedProjectReference | undefined): PersistedProgramResolvedProjectReference | undefined { return ref && { commandLine: { - fileNames: mapToReadonlyArrayOrUndefined(ref.commandLine.fileNames, relativeToBuildInfoEnsuringAbsolutePath), + fileNames: mapToReadonlyArrayOrUndefined(ref.commandLine.fileNames, toAbsoluteFileId), options: convertToProgramBuildInfoCompilerOptions(ref.commandLine.options, relativeToBuildInfoEnsuringAbsolutePath, /*filterOptions*/ false)!, - projectReferences: mapToReadonlyArrayOrUndefined(ref.commandLine.projectReferences, toProjectReference) + projectReferences: mapToReadonlyArrayOrUndefined(ref.commandLine.projectReferences, toPersistedProgramProjectReference) }, sourceFile: { version: ref.sourceFile.version, path: toFileId(ref.sourceFile.path) }, references: mapToReadonlyArrayOrUndefined(ref.references, toPersistedProgramResolvedProjectReference) }; } - function toProjectReference(ref: ProjectReference): ProjectReference { - return { - path: relativeToBuildInfoEnsuringAbsolutePath(ref.path), - originalPath: ref.originalPath, - prepend: ref.prepend, - circular: ref.circular - }; + function toPersistedProgramProjectReference(ref: ProjectReference): PersistedProgramProjectReference { + return { ...ref, path: toAbsoluteFileId(ref.path) }; } function isResolvedModule(r: ResolvedModuleWithFailedLookupLocations | ResolvedTypeReferenceDirectiveWithFailedLookupLocations): r is ResolvedModuleWithFailedLookupLocations { @@ -1779,19 +1780,14 @@ namespace ts { }; } - function toProjectReference(ref: ProjectReference): ProjectReference { - return { - path: toAbsolutePath(ref.path), - originalPath: ref.originalPath, - prepend: ref.prepend, - circular: ref.circular - }; + function toProjectReference(ref: PersistedProgramProjectReference): ProjectReference { + return { ...ref, path: toFileAbsolutePath(ref.path) }; } function toResolvedProjectReference(ref: PersistedProgramResolvedProjectReference | undefined): ResolvedProjectReferenceOfProgramFromBuildInfo | undefined { return ref && { commandLine: { - fileNames: ref.commandLine.fileNames?.map(toAbsolutePath) || [], + fileNames: ref.commandLine.fileNames?.map(toFileAbsolutePath) || [], options: convertToOptionsWithAbsolutePaths(ref.commandLine.options, toAbsolutePath), projectReferences: ref.commandLine.projectReferences?.map(toProjectReference) }, diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index f56953b980bd3..9e15a3c24b3bd 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -357,7 +357,7 @@ interface Symbol { ...buildInfo.program.peristedProgram, files: buildInfo.program.peristedProgram.files?.map(toReadablePersistedProgramSourceFile), filesByName, - projectReferences: buildInfo.program.peristedProgram.projectReferences, + projectReferences: buildInfo.program.peristedProgram.projectReferences?.map(toProjectReference), resolvedProjectReferences: buildInfo.program.peristedProgram.resolvedProjectReferences?.map(toReadablePersistedProgramResolvedProjectReference), missingPaths: buildInfo.program.peristedProgram.missingPaths?.map(toFileName), fileProcessingDiagnostics: buildInfo.program.peristedProgram.fileProcessingDiagnostics?.map(toReadablePersistedProgramFilePreprocessingDiagnostic), @@ -432,11 +432,19 @@ interface Symbol { function toReadablePersistedProgramResolvedProjectReference(ref: PersistedProgramResolvedProjectReference | undefined): ReadablePersistedProgramResolvedProjectReference | undefined { return ref && { - commandLine: ref.commandLine, + commandLine: { + fileNames: ref.commandLine.fileNames?.map(toFileName), + options: ref.commandLine.options, + projectReferences: ref.commandLine.projectReferences?.map(toProjectReference) + }, sourceFile: { ...ref.sourceFile, path: toFileName(ref.sourceFile.path) }, references: ref.references?.map(toReadablePersistedProgramResolvedProjectReference) }; } + + function toProjectReference(ref: PersistedProgramProjectReference): ProjectReference { + return { ...ref, path: toFileName(ref.path) }; + } } export function toPathWithSystem(sys: System, fileName: string): Path { diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js index 0dca265f22afa..e8f5f6fb5dae0 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js @@ -333,7 +333,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json","../core","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9],"projectReferences":[{"path":10,"originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[7,5,11],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -347,7 +347,9 @@ exports.m = mod; "../core/anotherModule.d.ts", "../core/anotherModule.ts", "../core/anothermodule.ts", - "../core/tsconfig.json" + "../core/tsconfig.json", + "../core", + "../core/some_decl.d.ts" ], "fileNamesList": [ [ @@ -527,7 +529,7 @@ exports.m = mod; } }, "version": "FakeTSVersion", - "size": 3889 + "size": 3853 } //// [/src/tests/index.d.ts] @@ -548,7 +550,7 @@ exports.m = mod; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[11,12],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json","../core","../logic","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[11,12],"projectReferences":[{"path":13,"originalPath":"../core"},{"path":14,"originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":[10],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":13,"originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -565,7 +567,10 @@ exports.m = mod; "../core/anothermodule.ts", "../logic/index.ts", "../core/tsconfig.json", - "../logic/tsconfig.json" + "../logic/tsconfig.json", + "../core", + "../logic", + "../core/some_decl.d.ts" ], "fileNamesList": [ [ @@ -859,7 +864,7 @@ exports.m = mod; } }, "version": "FakeTSVersion", - "size": 5509 + "size": 5388 } @@ -1069,7 +1074,7 @@ exports.someClass = someClass; //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json","../core","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9],"projectReferences":[{"path":10,"originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[7,5,11],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1083,7 +1088,9 @@ exports.someClass = someClass; "../core/anotherModule.d.ts", "../core/anotherModule.ts", "../core/anothermodule.ts", - "../core/tsconfig.json" + "../core/tsconfig.json", + "../core", + "../core/some_decl.d.ts" ], "fileNamesList": [ [ @@ -1265,13 +1272,13 @@ exports.someClass = someClass; } }, "version": "FakeTSVersion", - "size": 4154 + "size": 4118 } //// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[11,12],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json","../core","../logic","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[11,12],"projectReferences":[{"path":13,"originalPath":"../core"},{"path":14,"originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":[10],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":13,"originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1288,7 +1295,10 @@ exports.someClass = someClass; "../core/anothermodule.ts", "../logic/index.ts", "../core/tsconfig.json", - "../logic/tsconfig.json" + "../logic/tsconfig.json", + "../core", + "../logic", + "../core/some_decl.d.ts" ], "fileNamesList": [ [ @@ -1580,7 +1590,7 @@ exports.someClass = someClass; } }, "version": "FakeTSVersion", - "size": 5713 + "size": 5592 } @@ -1771,10 +1781,10 @@ exitCode:: ExitStatus.Success {"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts","./anotherModule.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json","../core","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4]},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json","../core","../logic","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5]},"version":"FakeTSVersion"} @@ -1989,7 +1999,7 @@ var someClass2 = /** @class */ (function () { //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9],"projectReferences":[{"path":"../core","originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json","../core","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9],"projectReferences":[{"path":10,"originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[7,5,11],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2003,7 +2013,9 @@ var someClass2 = /** @class */ (function () { "../core/anotherModule.d.ts", "../core/anotherModule.ts", "../core/anothermodule.ts", - "../core/tsconfig.json" + "../core/tsconfig.json", + "../core", + "../core/some_decl.d.ts" ], "fileNamesList": [ [ @@ -2185,13 +2197,13 @@ var someClass2 = /** @class */ (function () { } }, "version": "FakeTSVersion", - "size": 4160 + "size": 4124 } //// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[11,12],"projectReferences":[{"path":"../core","originalPath":"../core"},{"path":"../logic","originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":["../logic/index.ts"],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":"../core","originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":["../core/anotherModule.ts","../core/index.ts","../core/some_decl.d.ts"],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json","../core","../logic","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[11,12],"projectReferences":[{"path":13,"originalPath":"../core"},{"path":14,"originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":[10],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":13,"originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2208,7 +2220,10 @@ var someClass2 = /** @class */ (function () { "../core/anothermodule.ts", "../logic/index.ts", "../core/tsconfig.json", - "../logic/tsconfig.json" + "../logic/tsconfig.json", + "../core", + "../logic", + "../core/some_decl.d.ts" ], "fileNamesList": [ [ @@ -2500,6 +2515,6 @@ var someClass2 = /** @class */ (function () { } }, "version": "FakeTSVersion", - "size": 5719 + "size": 5598 } From 59c8b62fd100095bdcf406045c22e198a9f2bf7d Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 19 Mar 2021 16:00:48 -0700 Subject: [PATCH 27/48] rootFileNames and redirectTargets mapping --- src/compiler/builder.ts | 12 +++--- src/testRunner/unittests/tsbuild/helpers.ts | 2 + ...nd-uses-it-for-new-program-with-outFile.js | 24 +++++------ ...-resolution-and-uses-it-for-new-program.js | 24 +++++------ .../initial-build/persistResolutions.js | 40 +++++++++---------- ...er-resolutions-are-cleaned-with-outFile.js | 16 ++++---- ...can-build-after-resolutions-are-cleaned.js | 16 ++++---- ...-saved-in-tsbuildinfo-file-with-outFile.js | 14 +++---- ...ons-have-been-saved-in-tsbuildinfo-file.js | 14 +++---- ...nd-uses-it-for-new-program-with-outFile.js | 16 ++++---- ...-resolution-and-uses-it-for-new-program.js | 16 ++++---- ...nd-uses-it-for-new-program-with-outFile.js | 24 +++++------ ...-resolution-and-uses-it-for-new-program.js | 24 +++++------ ...er-resolutions-are-cleaned-with-outFile.js | 16 ++++---- ...can-build-after-resolutions-are-cleaned.js | 16 ++++---- ...-saved-in-tsbuildinfo-file-with-outFile.js | 18 ++++----- ...ons-have-been-saved-in-tsbuildinfo-file.js | 14 +++---- ...nd-uses-it-for-new-program-with-outFile.js | 16 ++++---- ...-resolution-and-uses-it-for-new-program.js | 16 ++++---- 19 files changed, 170 insertions(+), 168 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index 94d0d8c0b73a5..7495e99d6a2d1 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -845,7 +845,7 @@ namespace ts { includeReasons: readonly PersistedProgramFileIncludeReason[]; isSourceFileFromExternalLibraryPath?: true; - redirectTargets?: readonly string[]; + redirectTargets?: readonly ProgramBuildInfoAbsoluteFileId[]; packageName?: string; } /** If key and value are same, just use ProgramBuildInfoFileId otherwise pair of key followed by value */ @@ -898,7 +898,7 @@ namespace ts { } export interface PersistedProgram { files: readonly PersistedProgramSourceFile[] | undefined; - rootFileNames: readonly string[] | undefined; + rootFileNames: readonly ProgramBuildInfoAbsoluteFileId[] | undefined; filesByName: readonly PersistedProgramFileByNameEntry[] | undefined; projectReferences: readonly PersistedProgramProjectReference[] | undefined; resolvedProjectReferences: readonly (PersistedProgramResolvedProjectReference | undefined)[] | undefined; @@ -1010,7 +1010,7 @@ namespace ts { } peristedProgram = { files, - rootFileNames: mapToReadonlyArrayOrUndefined(program.getRootFileNames(), relativeToBuildInfoEnsuringAbsolutePath), + rootFileNames: mapToReadonlyArrayOrUndefined(program.getRootFileNames(), toAbsoluteFileId), filesByName, projectReferences: program.getProjectReferences()?.map(toPersistedProgramProjectReference), resolvedProjectReferences: program.getResolvedProjectReferences()?.map(toPersistedProgramResolvedProjectReference), @@ -1088,7 +1088,7 @@ namespace ts { redirectInfo: sourceFile.redirectInfo && { redirectTarget: { path: toFileId(sourceFile.redirectInfo.redirectTarget.path) } }, resolvedModules: toPersistedProgramResolutionMap(sourceFile.resolvedModules), resolvedTypeReferenceDirectiveNames: toPersistedProgramResolutionMap(sourceFile.resolvedTypeReferenceDirectiveNames), - redirectTargets: mapToReadonlyArrayOrUndefined(program.redirectTargetsMap.get(sourceFile.path), relativeToBuildInfoEnsuringAbsolutePath), + redirectTargets: mapToReadonlyArrayOrUndefined(program.redirectTargetsMap.get(sourceFile.path), toAbsoluteFileId), includeReasons: program.getFileIncludeReasons().get(sourceFile.path)!.map(toPersistedProgramFileIncludeReason), isSourceFileFromExternalLibraryPath: program.isSourceFileFromExternalLibraryPath(sourceFile.path) ? true : undefined, packageName: program.sourceFileToPackageName.get(sourceFile.path), @@ -1668,7 +1668,7 @@ namespace ts { const files = mapToReadonlyArray(program.peristedProgram.files, toSourceFileOfProgramFromBuildInfo); state.persistedProgramInfo = { files, - rootFileNames: mapToReadonlyArray(program.peristedProgram.rootFileNames, toAbsolutePath), + rootFileNames: mapToReadonlyArray(program.peristedProgram.rootFileNames, toFileAbsolutePath), filesByName, fileIncludeReasons, sourceFileFromExternalLibraryPath, @@ -1688,7 +1688,7 @@ namespace ts { fileIncludeReasons.set(path, file.includeReasons.map(toFileIncludeReason)); if (file.isSourceFileFromExternalLibraryPath) (sourceFileFromExternalLibraryPath ||= new Set()).add(path); - if (file.redirectTargets) redirectTargetsMap.set(path, file.redirectTargets.map(toAbsolutePath)); + if (file.redirectTargets) redirectTargetsMap.set(path, file.redirectTargets.map(toFileAbsolutePath)); if (file.packageName) sourceFileToPackageName.set(path, file.packageName); const sourceFile: SourceFileOfProgramFromBuildInfo = { diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index 9e15a3c24b3bd..3a58dbdc80bc8 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -356,6 +356,7 @@ interface Symbol { peristedProgram: buildInfo.program.peristedProgram && { ...buildInfo.program.peristedProgram, files: buildInfo.program.peristedProgram.files?.map(toReadablePersistedProgramSourceFile), + rootFileNames: buildInfo.program.peristedProgram.rootFileNames?.map(toFileName), filesByName, projectReferences: buildInfo.program.peristedProgram.projectReferences?.map(toProjectReference), resolvedProjectReferences: buildInfo.program.peristedProgram.resolvedProjectReferences?.map(toReadablePersistedProgramResolvedProjectReference), @@ -398,6 +399,7 @@ interface Symbol { path: toFileName(file.path), resolvedPath: toFileName(file.resolvedPath), redirectInfo: file.redirectInfo && { redirectTarget: { path: toFileName(file.redirectInfo.redirectTarget.path) } }, + redirectTargets: file.redirectTargets?.map(toFileName), includeReasons: file.includeReasons.map(toReadablePersistedProgramFileIncludeReason), }; } diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 4dc3c6f16c75f..7258483d22b8b 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -78,7 +78,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -259,7 +259,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 3427 + "size": 3354 } @@ -339,7 +339,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -520,7 +520,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 3453 + "size": 3380 } @@ -576,7 +576,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -798,7 +798,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 3986 + "size": 3896 } @@ -847,7 +847,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1089,7 +1089,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 4326 + "size": 4215 } @@ -1206,7 +1206,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1542,7 +1542,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4608 + "size": 4497 } @@ -1613,7 +1613,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1100,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1100,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1950,6 +1950,6 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4632 + "size": 4521 } diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 175dbf0e4c0de..d98a3df7100d8 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -82,7 +82,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -317,7 +317,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 3880 + "size": 3807 } @@ -398,7 +398,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -630,7 +630,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 3953 + "size": 3880 } @@ -688,7 +688,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -967,7 +967,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 4545 + "size": 4455 } @@ -1017,7 +1017,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1322,7 +1322,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 4952 + "size": 4841 } @@ -1459,7 +1459,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1725,7 +1725,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 4446 + "size": 4335 } @@ -1772,7 +1772,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2038,6 +2038,6 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4470 + "size": 4359 } diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js index e8f5f6fb5dae0..66dab53c31f6d 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js @@ -192,7 +192,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts","./anotherModule.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n","-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":3,"originalFileName":3,"path":3,"resolvedPath":3,"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts","./anotherModule.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n","-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":3,"originalFileName":3,"path":3,"resolvedPath":3,"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[5,3,4]}},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -307,7 +307,7 @@ exports.multiply = multiply; } }, "version": "FakeTSVersion", - "size": 2556 + "size": 2509 } //// [/src/logic/index.d.ts] @@ -333,7 +333,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json","../core","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9],"projectReferences":[{"path":10,"originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[7,5,11],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json","../core","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":[4],"filesByName":[9],"projectReferences":[{"path":10,"originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[7,5,11],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -529,7 +529,7 @@ exports.m = mod; } }, "version": "FakeTSVersion", - "size": 3853 + "size": 3842 } //// [/src/tests/index.d.ts] @@ -550,7 +550,7 @@ exports.m = mod; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json","../core","../logic","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[11,12],"projectReferences":[{"path":13,"originalPath":"../core"},{"path":14,"originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":[10],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":13,"originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json","../core","../logic","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":[5],"filesByName":[11,12],"projectReferences":[{"path":13,"originalPath":"../core"},{"path":14,"originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":[10],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":13,"originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -864,7 +864,7 @@ exports.m = mod; } }, "version": "FakeTSVersion", - "size": 5388 + "size": 5377 } @@ -952,7 +952,7 @@ exports.someClass = someClass; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts","./anotherModule.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":3,"originalFileName":3,"path":3,"resolvedPath":3,"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts","./anotherModule.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":3,"originalFileName":3,"path":3,"resolvedPath":3,"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[5,3,4]}},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1067,14 +1067,14 @@ exports.someClass = someClass; } }, "version": "FakeTSVersion", - "size": 2870 + "size": 2823 } //// [/src/logic/index.d.ts] file written with same contents //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json","../core","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9],"projectReferences":[{"path":10,"originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[7,5,11],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json","../core","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":[4],"filesByName":[9],"projectReferences":[{"path":10,"originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[7,5,11],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1272,13 +1272,13 @@ exports.someClass = someClass; } }, "version": "FakeTSVersion", - "size": 4118 + "size": 4107 } //// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json","../core","../logic","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[11,12],"projectReferences":[{"path":13,"originalPath":"../core"},{"path":14,"originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":[10],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":13,"originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json","../core","../logic","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":[5],"filesByName":[11,12],"projectReferences":[{"path":13,"originalPath":"../core"},{"path":14,"originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":[10],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":13,"originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1590,7 +1590,7 @@ exports.someClass = someClass; } }, "version": "FakeTSVersion", - "size": 5592 + "size": 5581 } @@ -1648,7 +1648,7 @@ var someClass2 = /** @class */ (function () { //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts","./anotherModule.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":3,"originalFileName":3,"path":3,"resolvedPath":3,"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts","./anotherModule.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-14636110300-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":3,"originalFileName":3,"path":3,"resolvedPath":3,"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[5,3,4]}},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1763,7 +1763,7 @@ var someClass2 = /** @class */ (function () { } }, "version": "FakeTSVersion", - "size": 2914 + "size": 2867 } @@ -1877,7 +1877,7 @@ var someClass2 = /** @class */ (function () { //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts","./anotherModule.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-22243974128-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClassNew { }\nclass someClass2 { }","signature":"-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":3,"originalFileName":3,"path":3,"resolvedPath":3,"version":"-22243974128-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClassNew { }\nclass someClass2 { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./anotherModule.ts","./index.ts","./some_decl.d.ts"]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts","./anotherModule.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-22243974128-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClassNew { }\nclass someClass2 { }","signature":"-11313403026-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"-2676574883-export const World = \"hello\";\r\n","flags":0,"includeReasons":[{"kind":0,"index":0}]},{"fileName":3,"originalFileName":3,"path":3,"resolvedPath":3,"version":"-22243974128-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClassNew { }\nclass someClass2 { }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9253692965-declare const dts: any;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[5,3,4]}},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1992,14 +1992,14 @@ var someClass2 = /** @class */ (function () { } }, "version": "FakeTSVersion", - "size": 2923 + "size": 2876 } //// [/src/logic/index.d.ts] file written with same contents //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json","../core","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[9],"projectReferences":[{"path":10,"originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[7,5,11],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json","../core","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":[4],"filesByName":[9],"projectReferences":[{"path":10,"originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[7,5,11],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2197,13 +2197,13 @@ var someClass2 = /** @class */ (function () { } }, "version": "FakeTSVersion", - "size": 4124 + "size": 4113 } //// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json","../core","../logic","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":["./index.ts"],"filesByName":[11,12],"projectReferences":[{"path":13,"originalPath":"../core"},{"path":14,"originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":[10],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":13,"originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json","../core","../logic","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":[5],"filesByName":[11,12],"projectReferences":[{"path":13,"originalPath":"../core"},{"path":14,"originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":[10],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":13,"originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2515,6 +2515,6 @@ var someClass2 = /** @class */ (function () { } }, "version": "FakeTSVersion", - "size": 5598 + "size": 5587 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index 4ea05566f28f9..e787268931668 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -103,7 +103,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -286,7 +286,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3315 + "size": 3242 } @@ -351,7 +351,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -534,7 +534,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3341 + "size": 3268 } @@ -614,7 +614,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -838,7 +838,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3874 + "size": 3784 } @@ -911,7 +911,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1155,6 +1155,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4214 + "size": 4103 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js index 13cce27f7d596..4790c1296f444 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -103,7 +103,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -340,7 +340,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3768 + "size": 3695 } @@ -406,7 +406,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -640,7 +640,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3839 + "size": 3766 } @@ -722,7 +722,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1003,7 +1003,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4429 + "size": 4339 } @@ -1077,7 +1077,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1384,6 +1384,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4834 + "size": 4723 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 96374dda47f4d..5d4b1816a4c39 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -28,7 +28,7 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics @@ -146,7 +146,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -329,7 +329,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3341 + "size": 3268 } @@ -409,7 +409,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -633,7 +633,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3874 + "size": 3784 } @@ -706,7 +706,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -950,6 +950,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4214 + "size": 4103 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index 10ef1ae7b9789..f293f4a48f1bf 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -28,7 +28,7 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics @@ -147,7 +147,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -381,7 +381,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3839 + "size": 3766 } @@ -463,7 +463,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -744,7 +744,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4429 + "size": 4339 } @@ -818,7 +818,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1125,6 +1125,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4834 + "size": 4723 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 8080641f65555..f692033f775bb 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -100,7 +100,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -283,7 +283,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3315 + "size": 3242 } @@ -348,7 +348,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -531,7 +531,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3341 + "size": 3268 } @@ -611,7 +611,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -835,7 +835,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3874 + "size": 3784 } @@ -908,7 +908,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1152,6 +1152,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4214 + "size": 4103 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index b095de25b6429..3c74dc9f6b7a6 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -104,7 +104,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -341,7 +341,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3768 + "size": 3695 } @@ -407,7 +407,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -641,7 +641,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3839 + "size": 3766 } @@ -723,7 +723,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1004,7 +1004,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4429 + "size": 4339 } @@ -1078,7 +1078,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1385,6 +1385,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4834 + "size": 4723 } diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 5915635780609..2ed1dd31c5cc8 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -104,7 +104,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":531,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":167,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":531,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":167,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -346,7 +346,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 3686 + "size": 3613 } @@ -451,7 +451,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":597,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":167,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":597,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":167,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -694,7 +694,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 3712 + "size": 3639 } @@ -787,7 +787,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":816,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":238,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":816,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":238,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1082,7 +1082,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4264 + "size": 4174 } @@ -1178,7 +1178,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1504,7 +1504,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4629 + "size": 4518 } @@ -1621,7 +1621,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1958,7 +1958,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4623 + "size": 4512 } @@ -2029,7 +2029,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1100,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1100,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -2367,6 +2367,6 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4647 + "size": 4536 } diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 86b75d8452930..8b00f5b51f85b 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -118,7 +118,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -340,7 +340,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 3848 + "size": 3775 } @@ -430,7 +430,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -649,7 +649,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 3921 + "size": 3848 } @@ -723,7 +723,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -985,7 +985,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 4507 + "size": 4417 } @@ -1049,7 +1049,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1333,7 +1333,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 4908 + "size": 4797 } @@ -1409,7 +1409,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/src/main.d.ts] file written with same contents //// [/src/project/src/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1676,7 +1676,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 4461 + "size": 4350 } @@ -1723,7 +1723,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1990,6 +1990,6 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4485 + "size": 4374 } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index a9c967169a1ae..73c2bec329655 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -146,7 +146,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -356,7 +356,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3574 + "size": 3501 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -484,7 +484,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -694,7 +694,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 3600 + "size": 3527 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -857,7 +857,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1109,7 +1109,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4152 + "size": 4062 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1284,7 +1284,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1557,7 +1557,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4517 + "size": 4406 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js index 6aaa26011a0b9..041d600a85b1f 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -154,7 +154,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -378,7 +378,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3736 + "size": 3663 } @@ -462,7 +462,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -683,7 +683,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 3807 + "size": 3734 } @@ -784,7 +784,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1048,7 +1048,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4391 + "size": 4301 } //// [/user/username/projects/myproject/src/newFile.js] @@ -1152,7 +1152,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1438,7 +1438,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4790 + "size": 4679 } //// [/user/username/projects/myproject/src/fileNotFound.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index c2bf1166033e9..98366daeb5f62 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -54,7 +54,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -125,7 +125,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -335,7 +335,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3574 + "size": 3501 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -463,7 +463,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -673,7 +673,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 3600 + "size": 3527 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -836,7 +836,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1088,7 +1088,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4152 + "size": 4062 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1263,7 +1263,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1536,7 +1536,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4517 + "size": 4406 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index 9ac7ec15ecdd5..ac67601c5aacc 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -64,7 +64,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -213,7 +213,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -434,7 +434,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 3807 + "size": 3734 } @@ -535,7 +535,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -799,7 +799,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4391 + "size": 4301 } //// [/user/username/projects/myproject/src/newFile.js] @@ -903,7 +903,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1189,7 +1189,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4790 + "size": 4679 } //// [/user/username/projects/myproject/src/fileNotFound.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 5fa13e76faaa1..bbf86c68b084a 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -141,7 +141,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -351,7 +351,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 3574 + "size": 3501 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -479,7 +479,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -689,7 +689,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 3600 + "size": 3527 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -852,7 +852,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1104,7 +1104,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4152 + "size": 4062 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1279,7 +1279,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1552,7 +1552,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4517 + "size": 4406 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index 460e2b6a6b691..f7290880b1f67 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -155,7 +155,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -379,7 +379,7 @@ export {}; } }, "version": "FakeTSVersion", - "size": 3736 + "size": 3663 } @@ -463,7 +463,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -684,7 +684,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 3807 + "size": 3734 } @@ -785,7 +785,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1049,7 +1049,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4391 + "size": 4301 } //// [/user/username/projects/myproject/src/newFile.js] @@ -1153,7 +1153,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":["./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/filePresent.ts","./src/main.ts","./src/newFile.ts"],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1439,7 +1439,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4790 + "size": 4679 } //// [/user/username/projects/myproject/src/fileNotFound.js] From 986cd6177d998b22859c7907fe75a663ac31fe11 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 3 Mar 2021 17:49:07 -0800 Subject: [PATCH 28/48] Make `cleanPersistedProgram` option internal --- src/compiler/types.ts | 2 +- tests/baselines/reference/api/tsserverlibrary.d.ts | 1 - tests/baselines/reference/api/typescript.d.ts | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 818d9db65db66..e2f147af164cd 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -6105,7 +6105,7 @@ namespace ts { incremental?: boolean; tsBuildInfoFile?: string; persistResolutions?: string; - cleanPersistedProgram?: boolean; + /*@internal*/ cleanPersistedProgram?: boolean; removeComments?: boolean; rootDir?: string; rootDirs?: string[]; diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index a2aa59547a6e0..8657c0a7dc7c2 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -2902,7 +2902,6 @@ declare namespace ts { incremental?: boolean; tsBuildInfoFile?: string; persistResolutions?: string; - cleanPersistedProgram?: boolean; removeComments?: boolean; rootDir?: string; rootDirs?: string[]; diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index be12ae5cd4439..e3b19990ee622 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -2902,7 +2902,6 @@ declare namespace ts { incremental?: boolean; tsBuildInfoFile?: string; persistResolutions?: string; - cleanPersistedProgram?: boolean; removeComments?: boolean; rootDir?: string; rootDirs?: string[]; From 5c1598b570da2d849f3f31d91b1e25077645172e Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 4 Mar 2021 14:17:04 -0800 Subject: [PATCH 29/48] Ensure that the diagnostic message keys get converted correctly --- src/compiler/builder.ts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index 7495e99d6a2d1..8f1d92eb5341e 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -178,6 +178,19 @@ namespace ts { persistedProgramInfo?: PersistedProgramState; } + let diagnosticKeyMap: Map | undefined; + function ensureDiagnosticKeyMap(): Map { + if (!diagnosticKeyMap) { + diagnosticKeyMap = new Map(); + for (const propName in Diagnostics) { + if (Diagnostics.hasOwnProperty(propName)) { + diagnosticKeyMap.set(Diagnostics[propName as keyof typeof Diagnostics].key, propName as keyof typeof Diagnostics); + } + } + } + return diagnosticKeyMap; + } + function hasSameKeys(map1: ReadonlyCollection | undefined, map2: ReadonlyCollection | undefined): boolean { // Has same size and every key is present in both maps return map1 === map2 || map1 !== undefined && map2 !== undefined && map1.size === map2.size && !forEachKey(map1, key => !map2.has(key)); @@ -1108,14 +1121,14 @@ namespace ts { case FilePreprocessingDiagnosticsKind.FilePreprocessingFileExplainingDiagnostic: return { ...d, - diagnostic: d.diagnostic.key as keyof typeof Diagnostics, + diagnostic: ensureDiagnosticKeyMap().get(d.diagnostic.key)!, file: d.file && toFileId(d.file), fileProcessingReason: toPersistedProgramFileIncludeReason(d.fileProcessingReason), }; case FilePreprocessingDiagnosticsKind.FilePreprocessingReferencedDiagnostic: return { ...d, - diagnostic: d.diagnostic.key as keyof typeof Diagnostics, + diagnostic: ensureDiagnosticKeyMap().get(d.diagnostic.key)!, reason: toPersistedProgramReferencedFile(d.reason), }; default: From d847b00d25a7e3c2cb757dc6d17236a28516ffe6 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 19 Mar 2021 16:10:49 -0700 Subject: [PATCH 30/48] Handle typeref, reference directives and lib directives --- src/compiler/builder.ts | 8 +- .../unittests/tsbuild/persistResolutions.ts | 6 + .../tsbuildWatch/persistResolutions.ts | 8 + .../unittests/tsc/persistResolutions.ts | 2 + .../unittests/tscWatch/persistResolutions.ts | 8 + ...nd-uses-it-for-new-program-with-outFile.js | 450 +++++++++++++-- ...-resolution-and-uses-it-for-new-program.js | 530 ++++++++++++++++-- ...er-resolutions-are-cleaned-with-outFile.js | 314 +++++++++-- ...can-build-after-resolutions-are-cleaned.js | 382 +++++++++++-- ...-saved-in-tsbuildinfo-file-with-outFile.js | 250 ++++++++- ...ons-have-been-saved-in-tsbuildinfo-file.js | 301 +++++++++- ...nd-uses-it-for-new-program-with-outFile.js | 312 +++++++++-- ...-resolution-and-uses-it-for-new-program.js | 382 +++++++++++-- ...nd-uses-it-for-new-program-with-outFile.js | 512 +++++++++++++++-- ...-resolution-and-uses-it-for-new-program.js | 498 ++++++++++++++-- ...er-resolutions-are-cleaned-with-outFile.js | 384 +++++++++++-- ...can-build-after-resolutions-are-cleaned.js | 374 ++++++++++-- ...-saved-in-tsbuildinfo-file-with-outFile.js | 384 +++++++++++-- ...ons-have-been-saved-in-tsbuildinfo-file.js | 301 ++++++++-- ...nd-uses-it-for-new-program-with-outFile.js | 382 +++++++++++-- ...-resolution-and-uses-it-for-new-program.js | 374 ++++++++++-- 21 files changed, 5487 insertions(+), 675 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index 8f1d92eb5341e..21c23ff67d417 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -1201,7 +1201,7 @@ namespace ts { } function toPersistedProgramFileReference(f: FileReference) { - return relativeToBuildInfoEnsuringAbsolutePath(f.fileName); + return f.fileName; } } @@ -1711,9 +1711,9 @@ namespace ts { resolvedPath, flags: file.flags, version: file.version, - typeReferenceDirectives: mapToReadonlyArray(file.typeReferenceDirectives, toAbsolutePath), - libReferenceDirectives: mapToReadonlyArray(file.libReferenceDirectives, toAbsolutePath), - referencedFiles: mapToReadonlyArray(file.referencedFiles, toAbsolutePath), + typeReferenceDirectives: file.typeReferenceDirectives || emptyArray, + libReferenceDirectives: file.libReferenceDirectives || emptyArray, + referencedFiles: file.referencedFiles || emptyArray, imports: file.imports || emptyArray, moduleAugmentations: file.moduleAugmentations || emptyArray, ambientModuleNames: file.ambientModuleNames || emptyArray, diff --git a/src/testRunner/unittests/tsbuild/persistResolutions.ts b/src/testRunner/unittests/tsbuild/persistResolutions.ts index 2de5a525476de..38688febbd553 100644 --- a/src/testRunner/unittests/tsbuild/persistResolutions.ts +++ b/src/testRunner/unittests/tsbuild/persistResolutions.ts @@ -10,6 +10,8 @@ namespace ts { import { something } from "./filePresent"; import { something2 } from "./fileNotFound";`, "/src/project/src/filePresent.ts": `export function something() { return 10; }`, + "/src/project/src/fileWithRef.ts": `/// `, + "/src/project/src/types.ts": `interface SomeType {}`, "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { module: "amd", @@ -60,6 +62,10 @@ namespace ts { [`/src/project/src/main.d.ts`, CleanBuildDescrepancy.CleanFilePresent], [`/src/project/src/newfile.js`, CleanBuildDescrepancy.CleanFilePresent], [`/src/project/src/newfile.d.ts`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/types.js`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/types.d.ts`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/filewithref.js`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/filewithref.d.ts`, CleanBuildDescrepancy.CleanFilePresent], [`/src/project/tsconfig.tsbuildinfo`, CleanBuildDescrepancy.CleanFileTextDifferent], ]), }, diff --git a/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts b/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts index 10a0b1182bb5b..01ba311c0d91f 100644 --- a/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts +++ b/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts @@ -19,6 +19,14 @@ namespace ts.tscWatch { path: `${projectRoot}/src/filePresent.ts`, content: `export function something() { return 10; }`, }, + { + path: `${projectRoot}/src/fileWithRef.ts`, + content: `/// `, + }, + { + path: `${projectRoot}/src/types.ts`, + content: `interface SomeType {}`, + }, { path: `${projectRoot}/tsconfig.json`, content: JSON.stringify({ diff --git a/src/testRunner/unittests/tsc/persistResolutions.ts b/src/testRunner/unittests/tsc/persistResolutions.ts index a6fad095c2d36..bd21a379f6f52 100644 --- a/src/testRunner/unittests/tsc/persistResolutions.ts +++ b/src/testRunner/unittests/tsc/persistResolutions.ts @@ -10,6 +10,8 @@ namespace ts { import { something } from "./filePresent"; import { something2 } from "./fileNotFound";`, "/src/project/src/filePresent.ts": `export function something() { return 10; }`, + "/src/project/src/fileWithRef.ts": `/// `, + "/src/project/src/types.ts": `interface SomeType {}`, "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { module: "amd", diff --git a/src/testRunner/unittests/tscWatch/persistResolutions.ts b/src/testRunner/unittests/tscWatch/persistResolutions.ts index 843bb67cb9dde..3233a06a8faab 100644 --- a/src/testRunner/unittests/tscWatch/persistResolutions.ts +++ b/src/testRunner/unittests/tscWatch/persistResolutions.ts @@ -19,6 +19,14 @@ namespace ts.tscWatch { path: `${projectRoot}/src/filePresent.ts`, content: `export function something() { return 10; }`, }, + { + path: `${projectRoot}/src/fileWithRef.ts`, + content: `/// `, + }, + { + path: `${projectRoot}/src/types.ts`, + content: `interface SomeType {}`, + }, { path: `${projectRoot}/tsconfig.json`, content: JSON.stringify({ diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 7258483d22b8b..7bd4a59ddce1b 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -21,11 +21,17 @@ import { something2 } from "./fileNotFound"; //// [/src/project/src/filePresent.ts] export function something() { return 10; } +//// [/src/project/src/fileWithRef.ts] +/// + //// [/src/project/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; +//// [/src/project/src/types.ts] +interface SomeType {} + //// [/src/project/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -65,20 +71,22 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/main.ts No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -87,13 +95,19 @@ No cached semantic diagnostics in the builder:: "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -107,6 +121,13 @@ No cached semantic diagnostics in the builder:: "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } @@ -123,6 +144,9 @@ No cached semantic diagnostics in the builder:: "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -201,6 +225,42 @@ No cached semantic diagnostics in the builder:: } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -229,7 +289,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -237,7 +297,9 @@ No cached semantic diagnostics in the builder:: "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -259,7 +321,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 3354 + "size": 4000 } @@ -284,13 +346,15 @@ Output:: Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/main.ts No cached semantic diagnostics in the builder:: @@ -326,20 +390,22 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/main.ts No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -348,13 +414,19 @@ No cached semantic diagnostics in the builder:: "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -368,6 +440,13 @@ No cached semantic diagnostics in the builder:: "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } @@ -384,6 +463,9 @@ No cached semantic diagnostics in the builder:: "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -462,6 +544,42 @@ No cached semantic diagnostics in the builder:: } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -490,7 +608,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -498,7 +616,9 @@ No cached semantic diagnostics in the builder:: "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -520,7 +640,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 3380 + "size": 4026 } @@ -562,13 +682,15 @@ File '/src/project/src/newFile.ts' exist - use it as a name resolution result. Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -576,7 +698,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -585,16 +707,22 @@ No cached semantic diagnostics in the builder:: "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -611,6 +739,13 @@ No cached semantic diagnostics in the builder:: "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -630,6 +765,9 @@ No cached semantic diagnostics in the builder:: "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -709,6 +847,42 @@ No cached semantic diagnostics in the builder:: } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 5 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -724,7 +898,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": 0, - "index": 3 + "index": 4 } ] }, @@ -761,7 +935,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -769,8 +943,10 @@ No cached semantic diagnostics in the builder:: "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -798,7 +974,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 3896 + "size": 4548 } @@ -832,7 +1008,7 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -840,6 +1016,8 @@ Program files:: /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/fileNotFound.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -847,7 +1025,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -857,17 +1035,23 @@ No cached semantic diagnostics in the builder:: "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -887,6 +1071,13 @@ No cached semantic diagnostics in the builder:: "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -906,6 +1097,9 @@ No cached semantic diagnostics in the builder:: "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -999,6 +1193,42 @@ No cached semantic diagnostics in the builder:: } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1014,7 +1244,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1051,7 +1281,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1060,8 +1290,10 @@ No cached semantic diagnostics in the builder:: "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1089,7 +1321,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 4215 + "size": 4870 } @@ -1104,7 +1336,7 @@ exitCode:: ExitStatus.Success //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[]},"version":"FakeTSVersion"} @@ -1144,7 +1376,7 @@ Resolution for module './filePresent' was found in cache from location '/src/pro Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: @@ -1152,6 +1384,8 @@ Program files:: /src/project/src/filePresent.ts /src/project/src/fileNotFound.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -1166,6 +1400,8 @@ declare module "src/fileNotFound" { export function something2(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } @@ -1191,6 +1427,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1206,13 +1443,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1104,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-1068) +text: (0-1104) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1231,6 +1468,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1248,7 +1486,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-321) +text: (0-346) declare module "src/filePresent" { export function something(): number; } @@ -1256,6 +1494,8 @@ declare module "src/fileNotFound" { export function something2(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } @@ -1271,6 +1511,8 @@ declare module "src/main" { } "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -1278,7 +1520,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1068, + "end": 1104, "kind": "text" } ] @@ -1287,7 +1529,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 321, + "end": 346, "kind": "text" } ] @@ -1299,11 +1541,14 @@ declare module "src/main" { } "./src/filepresent.ts", "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ @@ -1311,6 +1556,9 @@ declare module "src/main" { } "./src/filepresent.ts", "./src/filenotfound.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -1331,6 +1579,13 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -1351,6 +1606,9 @@ declare module "src/main" { } "./src/filepresent.ts", "./src/filenotfound.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -1455,6 +1713,42 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1470,7 +1764,7 @@ declare module "src/main" { } }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1507,7 +1801,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1516,8 +1810,10 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1542,7 +1838,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4497 + "size": 5192 } @@ -1563,7 +1859,7 @@ Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: @@ -1571,6 +1867,8 @@ Program files:: /src/project/src/filePresent.ts /src/project/src/fileNotFound.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -1597,6 +1895,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1613,13 +1912,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1100,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1136,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-1100) +text: (0-1136) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1638,6 +1937,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1656,7 +1956,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-321) +text: (0-346) declare module "src/filePresent" { export function something(): number; } @@ -1664,6 +1964,8 @@ declare module "src/fileNotFound" { export function something2(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } @@ -1679,6 +1981,8 @@ declare module "src/main" { } "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -1686,7 +1990,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1100, + "end": 1136, "kind": "text" } ] @@ -1695,7 +1999,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 321, + "end": 346, "kind": "text" } ] @@ -1707,11 +2011,14 @@ declare module "src/main" { } "./src/filepresent.ts", "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ @@ -1719,6 +2026,9 @@ declare module "src/main" { } "./src/filepresent.ts", "./src/filenotfound.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -1739,6 +2049,13 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -1759,6 +2076,9 @@ declare module "src/main" { } "./src/filepresent.ts", "./src/filenotfound.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -1863,6 +2183,42 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1878,7 +2234,7 @@ declare module "src/main" { } }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1915,7 +2271,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1924,8 +2280,10 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1950,6 +2308,6 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4521 + "size": 5216 } diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index d98a3df7100d8..8838e57073319 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -21,11 +21,17 @@ import { something2 } from "./fileNotFound"; //// [/src/project/src/filePresent.ts] export function something() { return 10; } +//// [/src/project/src/fileWithRef.ts] +/// + //// [/src/project/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; +//// [/src/project/src/types.ts] +interface SomeType {} + //// [/src/project/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -65,24 +71,28 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/main.ts //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -91,13 +101,19 @@ Semantic diagnostics in builder refreshed for:: "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -114,6 +130,15 @@ Semantic diagnostics in builder refreshed for:: "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" @@ -130,6 +155,9 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -138,6 +166,9 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -158,6 +189,7 @@ Semantic diagnostics in builder refreshed for:: ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -170,7 +202,8 @@ Semantic diagnostics in builder refreshed for:: "code": 2792 } ] - ] + ], + "./src/types.ts" ], "affectedFilesPendingEmit": [ [ @@ -181,9 +214,17 @@ Semantic diagnostics in builder refreshed for:: "./src/filepresent.ts", "Full" ], + [ + "./src/filewithref.ts", + "Full" + ], [ "./src/main.ts", "Full" + ], + [ + "./src/types.ts", + "Full" ] ], "peristedProgram": { @@ -259,6 +300,42 @@ Semantic diagnostics in builder refreshed for:: } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -287,7 +364,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -295,7 +372,9 @@ Semantic diagnostics in builder refreshed for:: "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -317,7 +396,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 3807 + "size": 4427 } @@ -342,13 +421,15 @@ Output:: Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -384,13 +465,15 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -398,7 +481,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -407,13 +490,19 @@ Semantic diagnostics in builder refreshed for:: "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -430,6 +519,15 @@ Semantic diagnostics in builder refreshed for:: "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-4882119183-export {};\r\n" @@ -446,6 +544,9 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -453,6 +554,9 @@ Semantic diagnostics in builder refreshed for:: "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -471,6 +575,7 @@ Semantic diagnostics in builder refreshed for:: ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -483,7 +588,8 @@ Semantic diagnostics in builder refreshed for:: "code": 2792 } ] - ] + ], + "./src/types.ts" ], "affectedFilesPendingEmit": [ [ @@ -494,9 +600,17 @@ Semantic diagnostics in builder refreshed for:: "./src/filepresent.ts", "Full" ], + [ + "./src/filewithref.ts", + "Full" + ], [ "./src/main.ts", "Full" + ], + [ + "./src/types.ts", + "Full" ] ], "peristedProgram": { @@ -572,6 +686,42 @@ Semantic diagnostics in builder refreshed for:: } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -600,7 +750,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -608,7 +758,9 @@ Semantic diagnostics in builder refreshed for:: "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -630,7 +782,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 3880 + "size": 4500 } @@ -672,13 +824,15 @@ File '/src/project/src/newFile.ts' exist - use it as a name resolution result. Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -688,7 +842,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -697,16 +851,22 @@ Semantic diagnostics in builder refreshed for:: "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -726,6 +886,15 @@ Semantic diagnostics in builder refreshed for:: "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-3405156953-export declare function foo(): number;\r\n" @@ -746,6 +915,9 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -754,6 +926,9 @@ Semantic diagnostics in builder refreshed for:: "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -772,6 +947,7 @@ Semantic diagnostics in builder refreshed for:: ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -785,7 +961,8 @@ Semantic diagnostics in builder refreshed for:: } ] ], - "./src/newfile.ts" + "./src/newfile.ts", + "./src/types.ts" ], "affectedFilesPendingEmit": [ [ @@ -796,6 +973,10 @@ Semantic diagnostics in builder refreshed for:: "./src/filepresent.ts", "Full" ], + [ + "./src/filewithref.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -803,6 +984,10 @@ Semantic diagnostics in builder refreshed for:: [ "./src/newfile.ts", "Full" + ], + [ + "./src/types.ts", + "Full" ] ], "peristedProgram": { @@ -878,6 +1063,42 @@ Semantic diagnostics in builder refreshed for:: } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 5 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -893,7 +1114,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": 0, - "index": 3 + "index": 4 } ] }, @@ -930,7 +1151,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -938,8 +1159,10 @@ Semantic diagnostics in builder refreshed for:: "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -967,7 +1190,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 4455 + "size": 5081 } @@ -1001,7 +1224,7 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1009,6 +1232,8 @@ Program files:: /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/fileNotFound.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -1017,7 +1242,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[8,1],[7,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1027,17 +1252,23 @@ Semantic diagnostics in builder refreshed for:: "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1061,6 +1292,15 @@ Semantic diagnostics in builder refreshed for:: "version": "-497034637-export function something2() { return 20; }", "signature": "-13705775197-export declare function something2(): number;\r\n" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-3405156953-export declare function foo(): number;\r\n" @@ -1081,6 +1321,9 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1089,6 +1332,9 @@ Semantic diagnostics in builder refreshed for:: "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -1108,6 +1354,7 @@ Semantic diagnostics in builder refreshed for:: ], "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -1121,7 +1368,8 @@ Semantic diagnostics in builder refreshed for:: } ] ], - "./src/newfile.ts" + "./src/newfile.ts", + "./src/types.ts" ], "affectedFilesPendingEmit": [ [ @@ -1136,6 +1384,10 @@ Semantic diagnostics in builder refreshed for:: "./src/filepresent.ts", "Full" ], + [ + "./src/filewithref.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -1143,6 +1395,10 @@ Semantic diagnostics in builder refreshed for:: [ "./src/newfile.ts", "Full" + ], + [ + "./src/types.ts", + "Full" ] ], "peristedProgram": { @@ -1232,6 +1488,42 @@ Semantic diagnostics in builder refreshed for:: } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1247,7 +1539,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1284,7 +1576,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1293,8 +1585,10 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1322,7 +1616,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 4841 + "size": 5470 } @@ -1337,7 +1631,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[8,1],[7,1],[5,1]]},"version":"FakeTSVersion"} @@ -1377,7 +1671,7 @@ Resolution for module './filePresent' was found in cache from location '/src/pro Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: @@ -1385,6 +1679,8 @@ Program files:: /src/project/src/filePresent.ts /src/project/src/fileNotFound.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -1432,6 +1728,14 @@ define(["require", "exports"], function (require, exports) { }); +//// [/src/project/src/fileWithRef.d.ts] +/// + + +//// [/src/project/src/fileWithRef.js] +/// + + //// [/src/project/src/main.d.ts] export {}; @@ -1458,8 +1762,16 @@ define(["require", "exports"], function (require, exports) { }); +//// [/src/project/src/types.d.ts] +interface SomeType { +} + + +//// [/src/project/src/types.js] + + //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[[6,2]],"semanticDiagnosticsPerFile":[1,4,3,2,6,8,7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1469,11 +1781,14 @@ define(["require", "exports"], function (require, exports) { "./src/filepresent.ts", "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ @@ -1481,6 +1796,9 @@ define(["require", "exports"], function (require, exports) { "./src/filepresent.ts", "./src/filenotfound.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -1505,6 +1823,15 @@ define(["require", "exports"], function (require, exports) { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-4882119183-export {};\r\n" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-3405156953-export declare function foo(): number;\r\n" @@ -1526,20 +1853,29 @@ define(["require", "exports"], function (require, exports) { "./src/filepresent.ts", "./src/filenotfound.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/filewithref.ts": [ + "./src/types.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filewithref.ts", "./src/main.ts", - "./src/newfile.ts" + "./src/newfile.ts", + "./src/types.ts" ], "peristedProgram": { "files": [ @@ -1638,6 +1974,42 @@ define(["require", "exports"], function (require, exports) { } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1653,7 +2025,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1690,7 +2062,7 @@ define(["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1699,8 +2071,10 @@ define(["require", "exports"], function (require, exports) { "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1725,7 +2099,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 4335 + "size": 4951 } @@ -1746,7 +2120,7 @@ Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: @@ -1754,6 +2128,8 @@ Program files:: /src/project/src/filePresent.ts /src/project/src/fileNotFound.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -1772,7 +2148,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[[6,2]],"semanticDiagnosticsPerFile":[1,4,3,2,6,8,7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1782,11 +2158,14 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/filepresent.ts", "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ @@ -1794,6 +2173,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/filepresent.ts", "./src/filenotfound.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -1818,6 +2200,15 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-4882119183-export {};\r\n" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-3405156953-export declare function foo(): number;\r\n" @@ -1839,20 +2230,29 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/filepresent.ts", "./src/filenotfound.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/filewithref.ts": [ + "./src/types.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filewithref.ts", "./src/main.ts", - "./src/newfile.ts" + "./src/newfile.ts", + "./src/types.ts" ], "peristedProgram": { "files": [ @@ -1951,6 +2351,42 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1966,7 +2402,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -2003,7 +2439,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -2012,8 +2448,10 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -2038,6 +2476,6 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4359 + "size": 4975 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index e787268931668..c8b2ae14489b8 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -11,6 +11,12 @@ import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } +//// [/user/username/projects/myproject/src/fileWithRef.ts] +/// + +//// [/user/username/projects/myproject/src/types.ts] +interface SomeType {} + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -28,12 +34,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:32 AM] Starting compilation in watch mode... +[12:00:36 AM] Starting compilation in watch mode... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -63,23 +69,27 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:38 AM] Found 2 errors. Watching for file changes. +[12:00:42 AM] Found 2 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -91,8 +101,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} FsWatches:: @@ -103,7 +117,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -112,13 +126,19 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -132,6 +152,13 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } @@ -150,6 +177,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -228,6 +258,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -256,7 +322,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -264,7 +330,9 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -286,7 +354,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3242 + "size": 3888 } @@ -302,7 +370,7 @@ import { something2 } from "./fileNotFound";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:41 AM] File change detected. Starting incremental compilation... +[12:00:45 AM] File change detected. Starting incremental compilation... Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -317,17 +385,19 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:48 AM] Found 2 errors. Watching for file changes. +[12:00:52 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -339,8 +409,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} FsWatches:: @@ -351,7 +425,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -360,13 +434,19 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -380,6 +460,13 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } @@ -398,6 +485,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -476,6 +566,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -504,7 +630,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -512,7 +638,9 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -534,7 +662,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3268 + "size": 3914 } @@ -555,7 +683,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:53 AM] File change detected. Starting incremental compilation... +[12:00:57 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -577,17 +705,19 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:00 AM] Found 2 errors. Watching for file changes. +[12:01:04 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -600,8 +730,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} @@ -614,7 +748,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -623,16 +757,22 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -649,6 +789,13 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -670,6 +817,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -749,6 +899,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 5 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -764,7 +950,7 @@ exitCode:: ExitStatus.undefined }, { "kind": 0, - "index": 3 + "index": 4 } ] }, @@ -801,7 +987,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -809,8 +995,10 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -838,7 +1026,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3784 + "size": 4436 } @@ -852,7 +1040,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:03 AM] File change detected. Starting incremental compilation... +[12:01:07 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -871,11 +1059,11 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:10 AM] Found 2 errors. Watching for file changes. +[12:01:14 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -883,6 +1071,8 @@ Program files:: /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -895,8 +1085,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.ts: @@ -911,7 +1105,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -921,17 +1115,23 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -951,6 +1151,13 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -972,6 +1179,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1065,6 +1275,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1080,7 +1326,7 @@ exitCode:: ExitStatus.undefined }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1117,7 +1363,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1126,8 +1372,10 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1155,6 +1403,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4103 + "size": 4758 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js index 4790c1296f444..873ff1fec6cbc 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -11,6 +11,12 @@ import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } +//// [/user/username/projects/myproject/src/fileWithRef.ts] +/// + +//// [/user/username/projects/myproject/src/types.ts] +interface SomeType {} + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -28,12 +34,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]]},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:32 AM] Starting compilation in watch mode... +[12:00:36 AM] Starting compilation in watch mode... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -63,23 +69,27 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:38 AM] Found 2 errors. Watching for file changes. +[12:00:42 AM] Found 2 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -91,8 +101,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} FsWatches:: @@ -103,7 +117,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -112,13 +126,19 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -135,6 +155,15 @@ exitCode:: ExitStatus.undefined "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" @@ -153,6 +182,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -161,6 +193,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -181,6 +216,7 @@ exitCode:: ExitStatus.undefined ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -193,7 +229,8 @@ exitCode:: ExitStatus.undefined "code": 2792 } ] - ] + ], + "./src/types.ts" ], "affectedFilesPendingEmit": [ [ @@ -204,9 +241,17 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "Full" ], + [ + "./src/filewithref.ts", + "Full" + ], [ "./src/main.ts", "Full" + ], + [ + "./src/types.ts", + "Full" ] ], "peristedProgram": { @@ -282,6 +327,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -310,7 +391,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -318,7 +399,9 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -340,7 +423,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3695 + "size": 4315 } @@ -356,7 +439,7 @@ import { something2 } from "./fileNotFound";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:41 AM] File change detected. Starting incremental compilation... +[12:00:45 AM] File change detected. Starting incremental compilation... Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -371,17 +454,19 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:48 AM] Found 2 errors. Watching for file changes. +[12:00:52 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -394,8 +479,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} FsWatches:: @@ -406,7 +495,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -415,13 +504,19 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -438,6 +533,15 @@ exitCode:: ExitStatus.undefined "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" @@ -456,6 +560,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -463,6 +570,9 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -481,6 +591,7 @@ exitCode:: ExitStatus.undefined ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -493,7 +604,8 @@ exitCode:: ExitStatus.undefined "code": 2792 } ] - ] + ], + "./src/types.ts" ], "affectedFilesPendingEmit": [ [ @@ -504,9 +616,17 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "Full" ], + [ + "./src/filewithref.ts", + "Full" + ], [ "./src/main.ts", "Full" + ], + [ + "./src/types.ts", + "Full" ] ], "peristedProgram": { @@ -582,6 +702,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -610,7 +766,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -618,7 +774,9 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -640,7 +798,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3766 + "size": 4386 } @@ -661,7 +819,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:53 AM] File change detected. Starting incremental compilation... +[12:00:57 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -683,17 +841,19 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:00 AM] Found 2 errors. Watching for file changes. +[12:01:04 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -708,8 +868,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} @@ -722,7 +886,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -731,16 +895,22 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -760,6 +930,15 @@ exitCode:: ExitStatus.undefined "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" @@ -782,6 +961,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -790,6 +972,9 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -808,6 +993,7 @@ exitCode:: ExitStatus.undefined ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -821,7 +1007,8 @@ exitCode:: ExitStatus.undefined } ] ], - "./src/newfile.ts" + "./src/newfile.ts", + "./src/types.ts" ], "affectedFilesPendingEmit": [ [ @@ -832,6 +1019,10 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "Full" ], + [ + "./src/filewithref.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -839,6 +1030,10 @@ exitCode:: ExitStatus.undefined [ "./src/newfile.ts", "Full" + ], + [ + "./src/types.ts", + "Full" ] ], "peristedProgram": { @@ -914,6 +1109,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 5 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -929,7 +1160,7 @@ exitCode:: ExitStatus.undefined }, { "kind": 0, - "index": 3 + "index": 4 } ] }, @@ -966,7 +1197,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -974,8 +1205,10 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1003,7 +1236,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4339 + "size": 4965 } @@ -1017,7 +1250,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:03 AM] File change detected. Starting incremental compilation... +[12:01:07 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -1036,11 +1269,11 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:10 AM] Found 2 errors. Watching for file changes. +[12:01:14 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1048,6 +1281,8 @@ Program files:: /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1061,8 +1296,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.ts: @@ -1077,7 +1316,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[8,1],[7,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1087,17 +1326,23 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1121,6 +1366,15 @@ exitCode:: ExitStatus.undefined "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" @@ -1143,6 +1397,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1151,6 +1408,9 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -1170,6 +1430,7 @@ exitCode:: ExitStatus.undefined ], "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -1183,7 +1444,8 @@ exitCode:: ExitStatus.undefined } ] ], - "./src/newfile.ts" + "./src/newfile.ts", + "./src/types.ts" ], "affectedFilesPendingEmit": [ [ @@ -1198,6 +1460,10 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "Full" ], + [ + "./src/filewithref.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -1205,6 +1471,10 @@ exitCode:: ExitStatus.undefined [ "./src/newfile.ts", "Full" + ], + [ + "./src/types.ts", + "Full" ] ], "peristedProgram": { @@ -1294,6 +1564,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1309,7 +1615,7 @@ exitCode:: ExitStatus.undefined }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1346,7 +1652,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1355,8 +1661,10 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1384,6 +1692,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4723 + "size": 5352 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 5d4b1816a4c39..b3212279bcf41 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -11,6 +11,12 @@ import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } +//// [/user/username/projects/myproject/src/fileWithRef.ts] +/// + +//// [/user/username/projects/myproject/src/types.ts] +interface SomeType {} + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -28,12 +34,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:29 AM] Starting compilation in watch mode... +[12:00:33 AM] Starting compilation in watch mode... src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -45,23 +51,27 @@ Output:: 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:30 AM] Found 2 errors. Watching for file changes. +[12:00:34 AM] Found 2 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -73,8 +83,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} FsWatches:: @@ -97,7 +111,7 @@ import { something2 } from "./fileNotFound";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:33 AM] File change detected. Starting incremental compilation... +[12:00:37 AM] File change detected. Starting incremental compilation... Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -112,17 +126,19 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:39 AM] Found 2 errors. Watching for file changes. +[12:00:43 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -134,8 +150,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} FsWatches:: @@ -146,7 +166,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -155,13 +175,19 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -175,6 +201,13 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } @@ -193,6 +226,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -271,6 +307,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -299,7 +371,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -307,7 +379,9 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -329,7 +403,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3268 + "size": 3914 } @@ -350,7 +424,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:44 AM] File change detected. Starting incremental compilation... +[12:00:48 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -372,17 +446,19 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:51 AM] Found 2 errors. Watching for file changes. +[12:00:55 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -395,8 +471,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} @@ -409,7 +489,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -418,16 +498,22 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -444,6 +530,13 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -465,6 +558,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -544,6 +640,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 5 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -559,7 +691,7 @@ exitCode:: ExitStatus.undefined }, { "kind": 0, - "index": 3 + "index": 4 } ] }, @@ -596,7 +728,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -604,8 +736,10 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -633,7 +767,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3784 + "size": 4436 } @@ -647,7 +781,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:00:54 AM] File change detected. Starting incremental compilation... +[12:00:58 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -666,11 +800,11 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:01 AM] Found 2 errors. Watching for file changes. +[12:01:05 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -678,6 +812,8 @@ Program files:: /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -690,8 +826,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.ts: @@ -706,7 +846,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -716,17 +856,23 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -746,6 +892,13 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -767,6 +920,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -860,6 +1016,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -875,7 +1067,7 @@ exitCode:: ExitStatus.undefined }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -912,7 +1104,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -921,8 +1113,10 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -950,6 +1144,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4103 + "size": 4758 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index f293f4a48f1bf..25c1052a25a3e 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -11,6 +11,12 @@ import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } +//// [/user/username/projects/myproject/src/fileWithRef.ts] +/// + +//// [/user/username/projects/myproject/src/types.ts] +interface SomeType {} + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -28,12 +34,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:29 AM] Starting compilation in watch mode... +[12:00:33 AM] Starting compilation in watch mode... src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -45,23 +51,27 @@ Output:: 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:30 AM] Found 2 errors. Watching for file changes. +[12:00:34 AM] Found 2 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -73,8 +83,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} FsWatches:: @@ -97,7 +111,7 @@ import { something2 } from "./fileNotFound";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:33 AM] File change detected. Starting incremental compilation... +[12:00:37 AM] File change detected. Starting incremental compilation... Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -112,17 +126,19 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:39 AM] Found 2 errors. Watching for file changes. +[12:00:43 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -135,8 +151,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} FsWatches:: @@ -147,7 +167,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -156,13 +176,19 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -179,6 +205,15 @@ exitCode:: ExitStatus.undefined "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" @@ -197,6 +232,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -204,6 +242,9 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -222,6 +263,7 @@ exitCode:: ExitStatus.undefined ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -234,7 +276,8 @@ exitCode:: ExitStatus.undefined "code": 2792 } ] - ] + ], + "./src/types.ts" ], "affectedFilesPendingEmit": [ [ @@ -245,9 +288,17 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "Full" ], + [ + "./src/filewithref.ts", + "Full" + ], [ "./src/main.ts", "Full" + ], + [ + "./src/types.ts", + "Full" ] ], "peristedProgram": { @@ -323,6 +374,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -351,7 +438,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -359,7 +446,9 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -381,7 +470,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3766 + "size": 4386 } @@ -402,7 +491,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:44 AM] File change detected. Starting incremental compilation... +[12:00:48 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -424,17 +513,19 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:51 AM] Found 2 errors. Watching for file changes. +[12:00:55 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -449,8 +540,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} @@ -463,7 +558,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -472,16 +567,22 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -501,6 +602,15 @@ exitCode:: ExitStatus.undefined "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" @@ -523,6 +633,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -531,6 +644,9 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -549,6 +665,7 @@ exitCode:: ExitStatus.undefined ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -562,7 +679,8 @@ exitCode:: ExitStatus.undefined } ] ], - "./src/newfile.ts" + "./src/newfile.ts", + "./src/types.ts" ], "affectedFilesPendingEmit": [ [ @@ -573,6 +691,10 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "Full" ], + [ + "./src/filewithref.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -580,6 +702,10 @@ exitCode:: ExitStatus.undefined [ "./src/newfile.ts", "Full" + ], + [ + "./src/types.ts", + "Full" ] ], "peristedProgram": { @@ -655,6 +781,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 5 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -670,7 +832,7 @@ exitCode:: ExitStatus.undefined }, { "kind": 0, - "index": 3 + "index": 4 } ] }, @@ -707,7 +869,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -715,8 +877,10 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -744,7 +908,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4339 + "size": 4965 } @@ -758,7 +922,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:00:54 AM] File change detected. Starting incremental compilation... +[12:00:58 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -777,11 +941,11 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:01 AM] Found 2 errors. Watching for file changes. +[12:01:05 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -789,6 +953,8 @@ Program files:: /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -802,8 +968,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.ts: @@ -818,7 +988,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[8,1],[7,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -828,17 +998,23 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -862,6 +1038,15 @@ exitCode:: ExitStatus.undefined "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" @@ -884,6 +1069,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -892,6 +1080,9 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -911,6 +1102,7 @@ exitCode:: ExitStatus.undefined ], "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -924,7 +1116,8 @@ exitCode:: ExitStatus.undefined } ] ], - "./src/newfile.ts" + "./src/newfile.ts", + "./src/types.ts" ], "affectedFilesPendingEmit": [ [ @@ -939,6 +1132,10 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "Full" ], + [ + "./src/filewithref.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -946,6 +1143,10 @@ exitCode:: ExitStatus.undefined [ "./src/newfile.ts", "Full" + ], + [ + "./src/types.ts", + "Full" ] ], "peristedProgram": { @@ -1035,6 +1236,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1050,7 +1287,7 @@ exitCode:: ExitStatus.undefined }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1087,7 +1324,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1096,8 +1333,10 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1125,6 +1364,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4723 + "size": 5352 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index f692033f775bb..6a8fb90534f94 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -11,6 +11,12 @@ import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } +//// [/user/username/projects/myproject/src/fileWithRef.ts] +/// + +//// [/user/username/projects/myproject/src/types.ts] +interface SomeType {} + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -30,7 +36,7 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:27 AM] Starting compilation in watch mode... +[12:00:31 AM] Starting compilation in watch mode... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -60,23 +66,27 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:32 AM] Found 2 errors. Watching for file changes. +[12:00:36 AM] Found 2 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -88,8 +98,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} FsWatches:: @@ -100,7 +114,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -109,13 +123,19 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -129,6 +149,13 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } @@ -147,6 +174,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -225,6 +255,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -253,7 +319,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -261,7 +327,9 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -283,7 +351,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3242 + "size": 3888 } @@ -299,7 +367,7 @@ import { something2 } from "./fileNotFound";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:35 AM] File change detected. Starting incremental compilation... +[12:00:39 AM] File change detected. Starting incremental compilation... Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -314,17 +382,19 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:42 AM] Found 2 errors. Watching for file changes. +[12:00:46 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -336,8 +406,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} FsWatches:: @@ -348,7 +422,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -357,13 +431,19 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -377,6 +457,13 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } @@ -395,6 +482,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -473,6 +563,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -501,7 +627,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -509,7 +635,9 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -531,7 +659,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3268 + "size": 3914 } @@ -552,7 +680,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:47 AM] File change detected. Starting incremental compilation... +[12:00:51 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -574,17 +702,19 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:54 AM] Found 2 errors. Watching for file changes. +[12:00:58 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -597,8 +727,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} @@ -611,7 +745,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -620,16 +754,22 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -646,6 +786,13 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -667,6 +814,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -746,6 +896,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 5 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -761,7 +947,7 @@ exitCode:: ExitStatus.undefined }, { "kind": 0, - "index": 3 + "index": 4 } ] }, @@ -798,7 +984,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -806,8 +992,10 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -835,7 +1023,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3784 + "size": 4436 } @@ -849,7 +1037,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:00:57 AM] File change detected. Starting incremental compilation... +[12:01:01 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -868,11 +1056,11 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:04 AM] Found 2 errors. Watching for file changes. +[12:01:08 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -880,6 +1068,8 @@ Program files:: /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -892,8 +1082,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.ts: @@ -908,7 +1102,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -918,17 +1112,23 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -948,6 +1148,13 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -969,6 +1176,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1062,6 +1272,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1077,7 +1323,7 @@ exitCode:: ExitStatus.undefined }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1114,7 +1360,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1123,8 +1369,10 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1152,6 +1400,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4103 + "size": 4758 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index 3c74dc9f6b7a6..edda3a232c5e0 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -11,6 +11,12 @@ import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } +//// [/user/username/projects/myproject/src/fileWithRef.ts] +/// + +//// [/user/username/projects/myproject/src/types.ts] +interface SomeType {} + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -30,7 +36,7 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:27 AM] Starting compilation in watch mode... +[12:00:31 AM] Starting compilation in watch mode... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -60,29 +66,35 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:32 AM] Found 2 errors. Watching for file changes. +[12:00:36 AM] Found 2 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts WatchedFiles:: @@ -92,8 +104,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} FsWatches:: @@ -104,7 +120,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -113,13 +129,19 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -136,6 +158,15 @@ exitCode:: ExitStatus.undefined "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" @@ -154,6 +185,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -162,6 +196,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -182,6 +219,7 @@ exitCode:: ExitStatus.undefined ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -194,7 +232,8 @@ exitCode:: ExitStatus.undefined "code": 2792 } ] - ] + ], + "./src/types.ts" ], "affectedFilesPendingEmit": [ [ @@ -205,9 +244,17 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "Full" ], + [ + "./src/filewithref.ts", + "Full" + ], [ "./src/main.ts", "Full" + ], + [ + "./src/types.ts", + "Full" ] ], "peristedProgram": { @@ -283,6 +330,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -311,7 +394,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -319,7 +402,9 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -341,7 +426,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3695 + "size": 4315 } @@ -357,7 +442,7 @@ import { something2 } from "./fileNotFound";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:35 AM] File change detected. Starting incremental compilation... +[12:00:39 AM] File change detected. Starting incremental compilation... Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -372,17 +457,19 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:42 AM] Found 2 errors. Watching for file changes. +[12:00:46 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -395,8 +482,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} FsWatches:: @@ -407,7 +498,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"affectedFilesPendingEmit":[[3,1],[2,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -416,13 +507,19 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -439,6 +536,15 @@ exitCode:: ExitStatus.undefined "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" @@ -457,6 +563,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -464,6 +573,9 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -482,6 +594,7 @@ exitCode:: ExitStatus.undefined ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -494,7 +607,8 @@ exitCode:: ExitStatus.undefined "code": 2792 } ] - ] + ], + "./src/types.ts" ], "affectedFilesPendingEmit": [ [ @@ -505,9 +619,17 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "Full" ], + [ + "./src/filewithref.ts", + "Full" + ], [ "./src/main.ts", "Full" + ], + [ + "./src/types.ts", + "Full" ] ], "peristedProgram": { @@ -583,6 +705,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -611,7 +769,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -619,7 +777,9 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -641,7 +801,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3766 + "size": 4386 } @@ -662,7 +822,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:47 AM] File change detected. Starting incremental compilation... +[12:00:51 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -684,17 +844,19 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:54 AM] Found 2 errors. Watching for file changes. +[12:00:58 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -709,8 +871,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} @@ -723,7 +889,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -732,16 +898,22 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -761,6 +933,15 @@ exitCode:: ExitStatus.undefined "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" @@ -783,6 +964,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -791,6 +975,9 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -809,6 +996,7 @@ exitCode:: ExitStatus.undefined ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -822,7 +1010,8 @@ exitCode:: ExitStatus.undefined } ] ], - "./src/newfile.ts" + "./src/newfile.ts", + "./src/types.ts" ], "affectedFilesPendingEmit": [ [ @@ -833,6 +1022,10 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "Full" ], + [ + "./src/filewithref.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -840,6 +1033,10 @@ exitCode:: ExitStatus.undefined [ "./src/newfile.ts", "Full" + ], + [ + "./src/types.ts", + "Full" ] ], "peristedProgram": { @@ -915,6 +1112,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 5 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -930,7 +1163,7 @@ exitCode:: ExitStatus.undefined }, { "kind": 0, - "index": 3 + "index": 4 } ] }, @@ -967,7 +1200,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -975,8 +1208,10 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1004,7 +1239,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4339 + "size": 4965 } @@ -1018,7 +1253,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:00:57 AM] File change detected. Starting incremental compilation... +[12:01:01 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -1037,11 +1272,11 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:04 AM] Found 2 errors. Watching for file changes. +[12:01:08 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1049,6 +1284,8 @@ Program files:: /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1062,8 +1299,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.ts: @@ -1078,7 +1319,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[8,1],[7,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1088,17 +1329,23 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1122,6 +1369,15 @@ exitCode:: ExitStatus.undefined "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" @@ -1144,6 +1400,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1152,6 +1411,9 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -1171,6 +1433,7 @@ exitCode:: ExitStatus.undefined ], "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -1184,7 +1447,8 @@ exitCode:: ExitStatus.undefined } ] ], - "./src/newfile.ts" + "./src/newfile.ts", + "./src/types.ts" ], "affectedFilesPendingEmit": [ [ @@ -1199,6 +1463,10 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "Full" ], + [ + "./src/filewithref.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -1206,6 +1474,10 @@ exitCode:: ExitStatus.undefined [ "./src/newfile.ts", "Full" + ], + [ + "./src/types.ts", + "Full" ] ], "peristedProgram": { @@ -1295,6 +1567,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1310,7 +1618,7 @@ exitCode:: ExitStatus.undefined }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1347,7 +1655,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1356,8 +1664,10 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1385,6 +1695,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4723 + "size": 5352 } diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 2ed1dd31c5cc8..ff09a0f57ca72 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -21,11 +21,17 @@ import { something2 } from "./fileNotFound"; //// [/src/project/src/filePresent.ts] export function something() { return 10; } +//// [/src/project/src/fileWithRef.ts] +/// + //// [/src/project/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; +//// [/src/project/src/types.ts] +interface SomeType {} + //// [/src/project/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -65,13 +71,15 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/main.ts No cached semantic diagnostics in the builder:: @@ -82,6 +90,8 @@ declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/main" { } @@ -97,6 +107,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -104,13 +115,13 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":531,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":167,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":567,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-531) +text: (0-567) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -122,6 +133,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -131,11 +143,13 @@ define("src/main", ["require", "exports"], function (require, exports) { ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-167) +text: (0-192) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/main" { } ====================================================================== @@ -147,13 +161,15 @@ declare module "src/main" { } "sourceFiles": [ "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 531, + "end": 567, "kind": "text" } ] @@ -162,7 +178,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 167, + "end": 192, "kind": "text" } ] @@ -173,13 +189,19 @@ declare module "src/main" { } "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -193,6 +215,13 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } @@ -210,6 +239,9 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -288,6 +320,42 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -316,7 +384,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -324,7 +392,9 @@ declare module "src/main" { } "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -346,7 +416,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 3613 + "size": 4299 } @@ -371,13 +441,15 @@ Output:: Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/main.ts No cached semantic diagnostics in the builder:: @@ -418,13 +490,15 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/main.ts No cached semantic diagnostics in the builder:: @@ -443,6 +517,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -451,13 +526,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":597,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":167,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":633,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-597) +text: (0-633) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -469,6 +544,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -479,11 +555,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-167) +text: (0-192) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/main" { } ====================================================================== @@ -495,13 +573,15 @@ declare module "src/main" { } "sourceFiles": [ "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 597, + "end": 633, "kind": "text" } ] @@ -510,7 +590,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 167, + "end": 192, "kind": "text" } ] @@ -521,13 +601,19 @@ declare module "src/main" { } "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -541,6 +627,13 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } @@ -558,6 +651,9 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -636,6 +732,42 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -664,7 +796,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -672,7 +804,9 @@ declare module "src/main" { } "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -694,7 +828,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 3639 + "size": 4325 } @@ -736,13 +870,15 @@ File '/src/project/src/newFile.ts' exist - use it as a name resolution result. Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -754,6 +890,8 @@ declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } @@ -772,6 +910,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -787,13 +926,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":816,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":238,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":852,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":263,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-816) +text: (0-852) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -805,6 +944,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -822,11 +962,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-238) +text: (0-263) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } @@ -841,6 +983,8 @@ declare module "src/main" { } "sourceFiles": [ "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -848,7 +992,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 816, + "end": 852, "kind": "text" } ] @@ -857,7 +1001,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 238, + "end": 263, "kind": "text" } ] @@ -868,16 +1012,22 @@ declare module "src/main" { } "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -894,6 +1044,13 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -914,6 +1071,9 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -993,6 +1153,42 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 5 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1008,7 +1204,7 @@ declare module "src/main" { } }, { "kind": 0, - "index": 3 + "index": 4 } ] }, @@ -1045,7 +1241,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -1053,8 +1249,10 @@ declare module "src/main" { } "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1082,7 +1280,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4174 + "size": 4866 } @@ -1116,7 +1314,7 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1124,6 +1322,8 @@ Program files:: /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/fileNotFound.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -1138,6 +1338,8 @@ declare module "src/anotherFileReusingResolution" { } declare module "src/fileNotFound" { export function something2(): number; } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } @@ -1163,6 +1365,7 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1178,13 +1381,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1104,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-1068) +text: (0-1104) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1203,6 +1406,7 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1220,7 +1424,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-321) +text: (0-346) declare module "src/filePresent" { export function something(): number; } @@ -1228,6 +1432,8 @@ declare module "src/anotherFileReusingResolution" { } declare module "src/fileNotFound" { export function something2(): number; } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } @@ -1243,6 +1449,8 @@ declare module "src/main" { } "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/types.ts", + "./src/fileWithRef.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -1250,7 +1458,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1068, + "end": 1104, "kind": "text" } ] @@ -1259,7 +1467,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 321, + "end": 346, "kind": "text" } ] @@ -1271,17 +1479,23 @@ declare module "src/main" { } "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1301,6 +1515,13 @@ declare module "src/main" { } "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -1321,6 +1542,9 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1414,6 +1638,42 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1429,7 +1689,7 @@ declare module "src/main" { } }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1466,7 +1726,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1475,8 +1735,10 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1504,7 +1766,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4518 + "size": 5213 } @@ -1519,7 +1781,7 @@ exitCode:: ExitStatus.Success //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1104,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[]},"version":"FakeTSVersion"} @@ -1559,7 +1821,7 @@ Resolution for module './filePresent' was found in cache from location '/src/pro Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: @@ -1567,6 +1829,8 @@ Program files:: /src/project/src/filePresent.ts /src/project/src/fileNotFound.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -1581,6 +1845,8 @@ declare module "src/fileNotFound" { export function something2(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } @@ -1606,6 +1872,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1621,13 +1888,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1068,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1104,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-1068) +text: (0-1104) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1646,6 +1913,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1663,7 +1931,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-321) +text: (0-346) declare module "src/filePresent" { export function something(): number; } @@ -1671,6 +1939,8 @@ declare module "src/fileNotFound" { export function something2(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } @@ -1686,6 +1956,8 @@ declare module "src/main" { } "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -1693,7 +1965,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1068, + "end": 1104, "kind": "text" } ] @@ -1702,7 +1974,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 321, + "end": 346, "kind": "text" } ] @@ -1714,11 +1986,14 @@ declare module "src/main" { } "./src/filepresent.ts", "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ @@ -1726,6 +2001,9 @@ declare module "src/main" { } "./src/filepresent.ts", "./src/filenotfound.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -1746,6 +2024,13 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -1767,6 +2052,9 @@ declare module "src/main" { } "./src/filepresent.ts", "./src/filenotfound.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -1871,6 +2159,42 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1886,7 +2210,7 @@ declare module "src/main" { } }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1923,7 +2247,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1932,8 +2256,10 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1958,7 +2284,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4512 + "size": 5207 } @@ -1979,7 +2305,7 @@ Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: @@ -1987,6 +2313,8 @@ Program files:: /src/project/src/filePresent.ts /src/project/src/fileNotFound.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -2013,6 +2341,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -2029,13 +2358,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1100,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":321,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1136,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-1100) +text: (0-1136) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -2054,6 +2383,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -2072,7 +2402,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-321) +text: (0-346) declare module "src/filePresent" { export function something(): number; } @@ -2080,6 +2410,8 @@ declare module "src/fileNotFound" { export function something2(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } @@ -2095,6 +2427,8 @@ declare module "src/main" { } "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -2102,7 +2436,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1100, + "end": 1136, "kind": "text" } ] @@ -2111,7 +2445,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 321, + "end": 346, "kind": "text" } ] @@ -2123,11 +2457,14 @@ declare module "src/main" { } "./src/filepresent.ts", "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ @@ -2135,6 +2472,9 @@ declare module "src/main" { } "./src/filepresent.ts", "./src/filenotfound.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -2155,6 +2495,13 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -2176,6 +2523,9 @@ declare module "src/main" { } "./src/filepresent.ts", "./src/filenotfound.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -2280,6 +2630,42 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -2295,7 +2681,7 @@ declare module "src/main" { } }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -2332,7 +2718,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -2341,8 +2727,10 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -2367,6 +2755,6 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4536 + "size": 5231 } diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 8b00f5b51f85b..0d481bfe0876e 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -21,11 +21,17 @@ import { something2 } from "./fileNotFound"; //// [/src/project/src/filePresent.ts] export function something() { return 10; } +//// [/src/project/src/fileWithRef.ts] +/// + //// [/src/project/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; +//// [/src/project/src/types.ts] +interface SomeType {} + //// [/src/project/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -65,19 +71,23 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/main.ts @@ -106,6 +116,14 @@ define(["require", "exports"], function (require, exports) { }); +//// [/src/project/src/fileWithRef.d.ts] +/// + + +//// [/src/project/src/fileWithRef.js] +/// + + //// [/src/project/src/main.d.ts] export {}; @@ -117,8 +135,16 @@ define(["require", "exports"], function (require, exports) { }); +//// [/src/project/src/types.d.ts] +interface SomeType { +} + + +//// [/src/project/src/types.js] + + //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -127,13 +153,19 @@ define(["require", "exports"], function (require, exports) { "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -150,6 +182,15 @@ define(["require", "exports"], function (require, exports) { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" @@ -167,6 +208,9 @@ define(["require", "exports"], function (require, exports) { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -175,6 +219,9 @@ define(["require", "exports"], function (require, exports) { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -195,6 +242,7 @@ define(["require", "exports"], function (require, exports) { ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -207,7 +255,8 @@ define(["require", "exports"], function (require, exports) { "code": 2792 } ] - ] + ], + "./src/types.ts" ], "peristedProgram": { "files": [ @@ -282,6 +331,42 @@ define(["require", "exports"], function (require, exports) { } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -310,7 +395,7 @@ define(["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -318,7 +403,9 @@ define(["require", "exports"], function (require, exports) { "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -340,7 +427,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 3775 + "size": 4383 } @@ -365,13 +452,15 @@ Output:: Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -407,13 +496,15 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -430,7 +521,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -439,13 +530,19 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -462,6 +559,15 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-4882119183-export {};\r\n" @@ -479,6 +585,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -486,6 +595,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -504,6 +616,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -516,7 +629,8 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "code": 2792 } ] - ] + ], + "./src/types.ts" ], "peristedProgram": { "files": [ @@ -591,6 +705,42 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -619,7 +769,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -627,7 +777,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -649,7 +801,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 3848 + "size": 4456 } @@ -691,13 +843,15 @@ File '/src/project/src/newFile.ts' exist - use it as a name resolution result. Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -723,7 +877,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -732,16 +886,22 @@ define(["require", "exports"], function (require, exports) { "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -761,6 +921,15 @@ define(["require", "exports"], function (require, exports) { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-3405156953-export declare function foo(): number;\r\n" @@ -782,6 +951,9 @@ define(["require", "exports"], function (require, exports) { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -790,6 +962,9 @@ define(["require", "exports"], function (require, exports) { "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -808,6 +983,7 @@ define(["require", "exports"], function (require, exports) { ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -821,7 +997,8 @@ define(["require", "exports"], function (require, exports) { } ] ], - "./src/newfile.ts" + "./src/newfile.ts", + "./src/types.ts" ], "peristedProgram": { "files": [ @@ -896,6 +1073,42 @@ define(["require", "exports"], function (require, exports) { } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 5 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -911,7 +1124,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": 0, - "index": 3 + "index": 4 } ] }, @@ -948,7 +1161,7 @@ define(["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -956,8 +1169,10 @@ define(["require", "exports"], function (require, exports) { "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -985,7 +1200,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 4417 + "size": 5031 } @@ -1019,7 +1234,7 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1027,6 +1242,8 @@ Program files:: /src/project/src/filePresent.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/fileNotFound.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -1049,7 +1266,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1059,17 +1276,23 @@ define(["require", "exports"], function (require, exports) { "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1093,6 +1316,15 @@ define(["require", "exports"], function (require, exports) { "version": "-497034637-export function something2() { return 20; }", "signature": "-13705775197-export declare function something2(): number;\r\n" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-3405156953-export declare function foo(): number;\r\n" @@ -1114,6 +1346,9 @@ define(["require", "exports"], function (require, exports) { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1122,6 +1357,9 @@ define(["require", "exports"], function (require, exports) { "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -1141,6 +1379,7 @@ define(["require", "exports"], function (require, exports) { ], "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -1154,7 +1393,8 @@ define(["require", "exports"], function (require, exports) { } ] ], - "./src/newfile.ts" + "./src/newfile.ts", + "./src/types.ts" ], "peristedProgram": { "files": [ @@ -1243,6 +1483,42 @@ define(["require", "exports"], function (require, exports) { } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1258,7 +1534,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1295,7 +1571,7 @@ define(["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1304,8 +1580,10 @@ define(["require", "exports"], function (require, exports) { "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1333,7 +1611,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 4797 + "size": 5414 } @@ -1348,7 +1626,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5]},"version":"FakeTSVersion"} @@ -1388,7 +1666,7 @@ Resolution for module './filePresent' was found in cache from location '/src/pro Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: @@ -1396,6 +1674,8 @@ Program files:: /src/project/src/filePresent.ts /src/project/src/fileNotFound.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -1409,7 +1689,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/src/main.d.ts] file written with same contents //// [/src/project/src/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[[6,2]],"semanticDiagnosticsPerFile":[1,4,3,2,6,8,7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1419,11 +1699,14 @@ Semantic diagnostics in builder refreshed for:: "./src/filepresent.ts", "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ @@ -1431,6 +1714,9 @@ Semantic diagnostics in builder refreshed for:: "./src/filepresent.ts", "./src/filenotfound.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -1455,6 +1741,15 @@ Semantic diagnostics in builder refreshed for:: "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-4882119183-export {};\r\n" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-3405156953-export declare function foo(): number;\r\n" @@ -1477,20 +1772,29 @@ Semantic diagnostics in builder refreshed for:: "./src/filepresent.ts", "./src/filenotfound.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/filewithref.ts": [ + "./src/types.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filewithref.ts", "./src/main.ts", - "./src/newfile.ts" + "./src/newfile.ts", + "./src/types.ts" ], "peristedProgram": { "files": [ @@ -1589,6 +1893,42 @@ Semantic diagnostics in builder refreshed for:: } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1604,7 +1944,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1641,7 +1981,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1650,8 +1990,10 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1676,7 +2018,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 4350 + "size": 4966 } @@ -1697,7 +2039,7 @@ Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: @@ -1705,6 +2047,8 @@ Program files:: /src/project/src/filePresent.ts /src/project/src/fileNotFound.ts /src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -1723,7 +2067,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[2,3,5]],"referencedMap":[[4,1],[6,2]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":6,"index":3}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[[6,2]],"semanticDiagnosticsPerFile":[1,4,3,2,6,8,7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1733,11 +2077,14 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/filepresent.ts", "./src/filenotfound.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ @@ -1745,6 +2092,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/filepresent.ts", "./src/filenotfound.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -1769,6 +2119,15 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-4882119183-export {};\r\n" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-3405156953-export declare function foo(): number;\r\n" @@ -1791,20 +2150,29 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/filepresent.ts", "./src/filenotfound.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {}, + "exportedModulesMap": { + "./src/filewithref.ts": [ + "./src/types.ts" + ] + }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filewithref.ts", "./src/main.ts", - "./src/newfile.ts" + "./src/newfile.ts", + "./src/types.ts" ], "peristedProgram": { "files": [ @@ -1903,6 +2271,42 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1918,7 +2322,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1955,7 +2359,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1964,8 +2368,10 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1990,6 +2396,6 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4374 + "size": 4990 } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index 73c2bec329655..cb577aaee6c3d 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -11,6 +11,12 @@ import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } +//// [/user/username/projects/myproject/src/fileWithRef.ts] +/// + +//// [/user/username/projects/myproject/src/types.ts] +interface SomeType {} + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -39,6 +45,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -50,22 +57,24 @@ declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":551,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:36 AM] Starting compilation in watch mode... +[12:00:40 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== @@ -81,6 +90,8 @@ File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. @@ -104,19 +115,21 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:46 AM] Found 2 errors. Watching for file changes. +[12:00:50 AM] Found 2 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -128,6 +141,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: @@ -146,7 +163,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":551,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -155,13 +172,15 @@ exitCode:: ExitStatus.undefined "sourceFiles": [ "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 516, + "end": 551, "kind": "text" } ] @@ -170,7 +189,7 @@ exitCode:: ExitStatus.undefined "sections": [ { "pos": 0, - "end": 162, + "end": 185, "kind": "text" } ] @@ -181,13 +200,19 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -201,6 +226,13 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } @@ -220,6 +252,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -298,6 +333,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -326,7 +397,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -334,7 +405,9 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -356,14 +429,14 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3501 + "size": 4187 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-516) +text: (0-551) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -375,6 +448,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -384,11 +458,13 @@ define("src/main", ["require", "exports"], function (require, exports) { ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-162) +text: (0-185) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/main" { } ====================================================================== @@ -407,11 +483,11 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:53 AM] File change detected. Starting incremental compilation... +[12:00:57 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -426,17 +502,19 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:03 AM] Found 2 errors. Watching for file changes. +[12:01:07 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -448,6 +526,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: @@ -475,6 +557,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -484,7 +567,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":616,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -493,13 +576,15 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "sourceFiles": [ "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 581, + "end": 616, "kind": "text" } ] @@ -508,7 +593,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "sections": [ { "pos": 0, - "end": 162, + "end": 185, "kind": "text" } ] @@ -519,13 +604,19 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -539,6 +630,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } @@ -558,6 +656,9 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -636,6 +737,42 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -664,7 +801,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -672,7 +809,9 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -694,14 +833,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 3527 + "size": 4213 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-581) +text: (0-616) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -713,6 +852,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -723,11 +863,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-162) +text: (0-185) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/main" { } ====================================================================== @@ -752,12 +894,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:01:14 AM] File change detected. Starting incremental compilation... +[12:01:18 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -779,17 +921,19 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.t 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:24 AM] Found 2 errors. Watching for file changes. +[12:01:28 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -802,6 +946,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: @@ -831,6 +979,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -850,6 +999,8 @@ declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } @@ -857,7 +1008,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":828,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":253,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -866,6 +1017,8 @@ declare module "src/main" { } "sourceFiles": [ "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -873,7 +1026,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 793, + "end": 828, "kind": "text" } ] @@ -882,7 +1035,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 230, + "end": 253, "kind": "text" } ] @@ -893,16 +1046,22 @@ declare module "src/main" { } "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -919,6 +1078,13 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -941,6 +1107,9 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1020,6 +1189,42 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 5 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1035,7 +1240,7 @@ declare module "src/main" { } }, { "kind": 0, - "index": 3 + "index": 4 } ] }, @@ -1072,7 +1277,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -1080,8 +1285,10 @@ declare module "src/main" { } "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1109,14 +1316,14 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4062 + "size": 4754 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-793) +text: (0-828) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1128,6 +1335,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1145,11 +1353,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-230) +text: (0-253) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } @@ -1169,12 +1379,12 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:33 AM] File change detected. Starting incremental compilation... +[12:01:37 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -1193,11 +1403,11 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:43 AM] Found 2 errors. Watching for file changes. +[12:01:47 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1205,6 +1415,8 @@ Program files:: /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1217,6 +1429,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: @@ -1255,6 +1471,7 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1277,6 +1494,8 @@ declare module "src/anotherFileReusingResolution" { } declare module "src/fileNotFound" { export function something2(): number; } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } @@ -1284,7 +1503,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1073,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":333,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1294,6 +1513,8 @@ declare module "src/main" { } "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/types.ts", + "./src/fileWithRef.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -1301,7 +1522,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1038, + "end": 1073, "kind": "text" } ] @@ -1310,7 +1531,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 310, + "end": 333, "kind": "text" } ] @@ -1322,17 +1543,23 @@ declare module "src/main" { } "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1352,6 +1579,13 @@ declare module "src/main" { } "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -1374,6 +1608,9 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1467,6 +1704,42 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1482,7 +1755,7 @@ declare module "src/main" { } }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1519,7 +1792,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1528,8 +1801,10 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1557,14 +1832,14 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4406 + "size": 5101 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-1038) +text: (0-1073) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1583,6 +1858,7 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1600,7 +1876,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-310) +text: (0-333) declare module "src/filePresent" { export function something(): number; } @@ -1608,6 +1884,8 @@ declare module "src/anotherFileReusingResolution" { } declare module "src/fileNotFound" { export function something2(): number; } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js index 041d600a85b1f..ea605c9dba717 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -11,6 +11,12 @@ import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } +//// [/user/username/projects/myproject/src/fileWithRef.ts] +/// + +//// [/user/username/projects/myproject/src/types.ts] +interface SomeType {} + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -52,6 +58,22 @@ define(["require", "exports"], function (require, exports) { export {}; +//// [/user/username/projects/myproject/src/types.js] + + +//// [/user/username/projects/myproject/src/types.d.ts] +interface SomeType { +} + + +//// [/user/username/projects/myproject/src/fileWithRef.js] +/// + + +//// [/user/username/projects/myproject/src/fileWithRef.d.ts] +/// + + //// [/user/username/projects/myproject/src/main.js] define(["require", "exports"], function (require, exports) { "use strict"; @@ -64,18 +86,18 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:44 AM] Starting compilation in watch mode... +[12:00:56 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== @@ -91,6 +113,8 @@ File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. @@ -114,19 +138,21 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:48 AM] Found 2 errors. Watching for file changes. +[12:01:00 AM] Found 2 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -138,6 +164,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: @@ -154,7 +184,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -163,13 +193,19 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -186,6 +222,15 @@ exitCode:: ExitStatus.undefined "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" @@ -205,6 +250,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -213,6 +261,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -233,6 +284,7 @@ exitCode:: ExitStatus.undefined ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -245,7 +297,8 @@ exitCode:: ExitStatus.undefined "code": 2792 } ] - ] + ], + "./src/types.ts" ], "peristedProgram": { "files": [ @@ -320,6 +373,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -348,7 +437,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -356,7 +445,9 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -378,7 +469,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3663 + "size": 4271 } @@ -395,11 +486,11 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:53 AM] File change detected. Starting incremental compilation... +[12:01:05 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -414,17 +505,19 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:03 AM] Found 2 errors. Watching for file changes. +[12:01:15 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -437,6 +530,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: @@ -462,7 +559,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -471,13 +568,19 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -494,6 +597,15 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" @@ -513,6 +625,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -520,6 +635,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -538,6 +656,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -550,7 +669,8 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "code": 2792 } ] - ] + ], + "./src/types.ts" ], "peristedProgram": { "files": [ @@ -625,6 +745,42 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -653,7 +809,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -661,7 +817,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -683,7 +841,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 3734 + "size": 4342 } @@ -706,12 +864,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:01:11 AM] File change detected. Starting incremental compilation... +[12:01:23 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -739,17 +897,19 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:25 AM] Found 2 errors. Watching for file changes. +[12:01:37 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -764,6 +924,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: @@ -784,7 +948,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -793,16 +957,22 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -822,6 +992,15 @@ exitCode:: ExitStatus.undefined "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" @@ -845,6 +1024,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -853,6 +1035,9 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -871,6 +1056,7 @@ exitCode:: ExitStatus.undefined ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -884,7 +1070,8 @@ exitCode:: ExitStatus.undefined } ] ], - "./src/newfile.ts" + "./src/newfile.ts", + "./src/types.ts" ], "peristedProgram": { "files": [ @@ -959,6 +1146,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 5 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -974,7 +1197,7 @@ exitCode:: ExitStatus.undefined }, { "kind": 0, - "index": 3 + "index": 4 } ] }, @@ -1011,7 +1234,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -1019,8 +1242,10 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1048,7 +1273,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4301 + "size": 4915 } //// [/user/username/projects/myproject/src/newFile.js] @@ -1077,12 +1302,12 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:31 AM] File change detected. Starting incremental compilation... +[12:01:43 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -1107,11 +1332,11 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:39 AM] Found 2 errors. Watching for file changes. +[12:01:51 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1119,6 +1344,8 @@ Program files:: /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1132,6 +1359,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: @@ -1152,7 +1383,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1162,17 +1393,23 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1196,6 +1433,15 @@ exitCode:: ExitStatus.undefined "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" @@ -1219,6 +1465,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1227,6 +1476,9 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -1246,6 +1498,7 @@ exitCode:: ExitStatus.undefined ], "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -1259,7 +1512,8 @@ exitCode:: ExitStatus.undefined } ] ], - "./src/newfile.ts" + "./src/newfile.ts", + "./src/types.ts" ], "peristedProgram": { "files": [ @@ -1348,6 +1602,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1363,7 +1653,7 @@ exitCode:: ExitStatus.undefined }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1400,7 +1690,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1409,8 +1699,10 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1438,7 +1730,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4679 + "size": 5296 } //// [/user/username/projects/myproject/src/fileNotFound.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 98366daeb5f62..9a29922417695 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -11,6 +11,12 @@ import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } +//// [/user/username/projects/myproject/src/fileWithRef.ts] +/// + +//// [/user/username/projects/myproject/src/types.ts] +interface SomeType {} + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -39,6 +45,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -50,26 +57,30 @@ declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":551,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:33 AM] Starting compilation in watch mode... +[12:00:37 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots @@ -83,19 +94,21 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:43 AM] Found 2 errors. Watching for file changes. +[12:00:47 AM] Found 2 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -109,6 +122,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} @@ -125,7 +142,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":551,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -134,13 +151,15 @@ exitCode:: ExitStatus.undefined "sourceFiles": [ "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 516, + "end": 551, "kind": "text" } ] @@ -149,7 +168,7 @@ exitCode:: ExitStatus.undefined "sections": [ { "pos": 0, - "end": 162, + "end": 185, "kind": "text" } ] @@ -160,13 +179,19 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -180,6 +205,13 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } @@ -199,6 +231,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -277,6 +312,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -305,7 +376,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -313,7 +384,9 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -335,14 +408,14 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3501 + "size": 4187 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-516) +text: (0-551) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -354,6 +427,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -363,11 +437,13 @@ define("src/main", ["require", "exports"], function (require, exports) { ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-162) +text: (0-185) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/main" { } ====================================================================== @@ -386,11 +462,11 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:50 AM] File change detected. Starting incremental compilation... +[12:00:54 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -405,17 +481,19 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:00 AM] Found 2 errors. Watching for file changes. +[12:01:04 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -429,6 +507,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} @@ -454,6 +536,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -463,7 +546,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":616,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -472,13 +555,15 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "sourceFiles": [ "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 581, + "end": 616, "kind": "text" } ] @@ -487,7 +572,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "sections": [ { "pos": 0, - "end": 162, + "end": 185, "kind": "text" } ] @@ -498,13 +583,19 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -518,6 +609,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } @@ -537,6 +635,9 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -615,6 +716,42 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -643,7 +780,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -651,7 +788,9 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -673,14 +812,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 3527 + "size": 4213 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-581) +text: (0-616) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -692,6 +831,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -702,11 +842,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-162) +text: (0-185) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/main" { } ====================================================================== @@ -731,12 +873,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:01:11 AM] File change detected. Starting incremental compilation... +[12:01:15 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -758,17 +900,19 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.t 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:21 AM] Found 2 errors. Watching for file changes. +[12:01:25 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -783,6 +927,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: @@ -810,6 +958,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -829,6 +978,8 @@ declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } @@ -836,7 +987,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":828,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":253,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -845,6 +996,8 @@ declare module "src/main" { } "sourceFiles": [ "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -852,7 +1005,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 793, + "end": 828, "kind": "text" } ] @@ -861,7 +1014,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 230, + "end": 253, "kind": "text" } ] @@ -872,16 +1025,22 @@ declare module "src/main" { } "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -898,6 +1057,13 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -920,6 +1086,9 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -999,6 +1168,42 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 5 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1014,7 +1219,7 @@ declare module "src/main" { } }, { "kind": 0, - "index": 3 + "index": 4 } ] }, @@ -1051,7 +1256,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -1059,8 +1264,10 @@ declare module "src/main" { } "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1088,14 +1295,14 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4062 + "size": 4754 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-793) +text: (0-828) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1107,6 +1314,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1124,11 +1332,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-230) +text: (0-253) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } @@ -1148,12 +1358,12 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:30 AM] File change detected. Starting incremental compilation... +[12:01:34 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -1172,11 +1382,11 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:40 AM] Found 2 errors. Watching for file changes. +[12:01:44 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1184,6 +1394,8 @@ Program files:: /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1198,6 +1410,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: @@ -1234,6 +1450,7 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1256,6 +1473,8 @@ declare module "src/anotherFileReusingResolution" { } declare module "src/fileNotFound" { export function something2(): number; } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } @@ -1263,7 +1482,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1073,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":333,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1273,6 +1492,8 @@ declare module "src/main" { } "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/types.ts", + "./src/fileWithRef.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -1280,7 +1501,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1038, + "end": 1073, "kind": "text" } ] @@ -1289,7 +1510,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 310, + "end": 333, "kind": "text" } ] @@ -1301,17 +1522,23 @@ declare module "src/main" { } "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1331,6 +1558,13 @@ declare module "src/main" { } "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -1353,6 +1587,9 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1446,6 +1683,42 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1461,7 +1734,7 @@ declare module "src/main" { } }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1498,7 +1771,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1507,8 +1780,10 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1536,14 +1811,14 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4406 + "size": 5101 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-1038) +text: (0-1073) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1562,6 +1837,7 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1579,7 +1855,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-310) +text: (0-333) declare module "src/filePresent" { export function something(): number; } @@ -1587,6 +1863,8 @@ declare module "src/anotherFileReusingResolution" { } declare module "src/fileNotFound" { export function something2(): number; } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index ac67601c5aacc..a1f602eb9b93c 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -11,6 +11,12 @@ import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } +//// [/user/username/projects/myproject/src/fileWithRef.ts] +/// + +//// [/user/username/projects/myproject/src/types.ts] +interface SomeType {} + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -52,6 +58,22 @@ define(["require", "exports"], function (require, exports) { export {}; +//// [/user/username/projects/myproject/src/types.js] + + +//// [/user/username/projects/myproject/src/types.d.ts] +interface SomeType { +} + + +//// [/user/username/projects/myproject/src/fileWithRef.js] +/// + + +//// [/user/username/projects/myproject/src/fileWithRef.d.ts] +/// + + //// [/user/username/projects/myproject/src/main.js] define(["require", "exports"], function (require, exports) { "use strict"; @@ -64,22 +86,24 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:41 AM] Starting compilation in watch mode... +[12:00:53 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots @@ -93,19 +117,21 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:42 AM] Found 2 errors. Watching for file changes. +[12:00:54 AM] Found 2 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -119,6 +145,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} @@ -146,11 +176,11 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:45 AM] File change detected. Starting incremental compilation... +[12:00:57 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -165,17 +195,19 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:55 AM] Found 2 errors. Watching for file changes. +[12:01:07 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -190,6 +222,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} @@ -213,7 +249,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -222,13 +258,19 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -245,6 +287,15 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" @@ -264,6 +315,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -271,6 +325,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -289,6 +346,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -301,7 +359,8 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "code": 2792 } ] - ] + ], + "./src/types.ts" ], "peristedProgram": { "files": [ @@ -376,6 +435,42 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -404,7 +499,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -412,7 +507,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -434,7 +531,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 3734 + "size": 4342 } @@ -457,12 +554,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:01:02 AM] File change detected. Starting incremental compilation... +[12:01:14 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -490,17 +587,19 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:16 AM] Found 2 errors. Watching for file changes. +[12:01:28 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -517,6 +616,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: @@ -535,7 +638,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -544,16 +647,22 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -573,6 +682,15 @@ exitCode:: ExitStatus.undefined "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" @@ -596,6 +714,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -604,6 +725,9 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -622,6 +746,7 @@ exitCode:: ExitStatus.undefined ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -635,7 +760,8 @@ exitCode:: ExitStatus.undefined } ] ], - "./src/newfile.ts" + "./src/newfile.ts", + "./src/types.ts" ], "peristedProgram": { "files": [ @@ -710,6 +836,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 5 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -725,7 +887,7 @@ exitCode:: ExitStatus.undefined }, { "kind": 0, - "index": 3 + "index": 4 } ] }, @@ -762,7 +924,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -770,8 +932,10 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -799,7 +963,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4301 + "size": 4915 } //// [/user/username/projects/myproject/src/newFile.js] @@ -828,12 +992,12 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:22 AM] File change detected. Starting incremental compilation... +[12:01:34 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -858,11 +1022,11 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:30 AM] Found 2 errors. Watching for file changes. +[12:01:42 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -870,6 +1034,8 @@ Program files:: /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -885,6 +1051,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: @@ -903,7 +1073,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -913,17 +1083,23 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -947,6 +1123,15 @@ exitCode:: ExitStatus.undefined "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" @@ -970,6 +1155,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -978,6 +1166,9 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -997,6 +1188,7 @@ exitCode:: ExitStatus.undefined ], "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -1010,7 +1202,8 @@ exitCode:: ExitStatus.undefined } ] ], - "./src/newfile.ts" + "./src/newfile.ts", + "./src/types.ts" ], "peristedProgram": { "files": [ @@ -1099,6 +1292,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1114,7 +1343,7 @@ exitCode:: ExitStatus.undefined }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1151,7 +1380,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1160,8 +1389,10 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1189,7 +1420,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4679 + "size": 5296 } //// [/user/username/projects/myproject/src/fileNotFound.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index bbf86c68b084a..4de7933fb7ce0 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -11,6 +11,12 @@ import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } +//// [/user/username/projects/myproject/src/fileWithRef.ts] +/// + +//// [/user/username/projects/myproject/src/types.ts] +interface SomeType {} + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -30,13 +36,13 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:27 AM] Starting compilation in watch mode... +[12:00:31 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== @@ -52,6 +58,8 @@ File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. @@ -75,19 +83,21 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:34 AM] Found 2 errors. Watching for file changes. +[12:00:38 AM] Found 2 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -99,6 +109,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: @@ -126,6 +140,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -137,11 +152,13 @@ declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":516,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":551,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -150,13 +167,15 @@ declare module "src/main" { } "sourceFiles": [ "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 516, + "end": 551, "kind": "text" } ] @@ -165,7 +184,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 162, + "end": 185, "kind": "text" } ] @@ -176,13 +195,19 @@ declare module "src/main" { } "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -196,6 +221,13 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } @@ -215,6 +247,9 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -293,6 +328,42 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -321,7 +392,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -329,7 +400,9 @@ declare module "src/main" { } "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -351,14 +424,14 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 3501 + "size": 4187 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-516) +text: (0-551) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -370,6 +443,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -379,11 +453,13 @@ define("src/main", ["require", "exports"], function (require, exports) { ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-162) +text: (0-185) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/main" { } ====================================================================== @@ -402,11 +478,11 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:41 AM] File change detected. Starting incremental compilation... +[12:00:45 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -421,17 +497,19 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:51 AM] Found 2 errors. Watching for file changes. +[12:00:55 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -443,6 +521,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: @@ -470,6 +552,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -479,7 +562,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":581,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":162,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":616,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -488,13 +571,15 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "sourceFiles": [ "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 581, + "end": 616, "kind": "text" } ] @@ -503,7 +588,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "sections": [ { "pos": 0, - "end": 162, + "end": 185, "kind": "text" } ] @@ -514,13 +599,19 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -534,6 +625,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } @@ -553,6 +651,9 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -631,6 +732,42 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -659,7 +796,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -667,7 +804,9 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -689,14 +828,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 3527 + "size": 4213 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-581) +text: (0-616) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -708,6 +847,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -718,11 +858,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-162) +text: (0-185) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/main" { } ====================================================================== @@ -747,12 +889,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:01:02 AM] File change detected. Starting incremental compilation... +[12:01:06 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -774,17 +916,19 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.t 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:12 AM] Found 2 errors. Watching for file changes. +[12:01:16 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -797,6 +941,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: @@ -826,6 +974,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -845,6 +994,8 @@ declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } @@ -852,7 +1003,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":793,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":230,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":828,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":253,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -861,6 +1012,8 @@ declare module "src/main" { } "sourceFiles": [ "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -868,7 +1021,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 793, + "end": 828, "kind": "text" } ] @@ -877,7 +1030,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 230, + "end": 253, "kind": "text" } ] @@ -888,16 +1041,22 @@ declare module "src/main" { } "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -914,6 +1073,13 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -936,6 +1102,9 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1015,6 +1184,42 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 5 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1030,7 +1235,7 @@ declare module "src/main" { } }, { "kind": 0, - "index": 3 + "index": 4 } ] }, @@ -1067,7 +1272,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -1075,8 +1280,10 @@ declare module "src/main" { } "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1104,14 +1311,14 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4062 + "size": 4754 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-793) +text: (0-828) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1123,6 +1330,7 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1140,11 +1348,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-230) +text: (0-253) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } @@ -1164,12 +1374,12 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:21 AM] File change detected. Starting incremental compilation... +[12:01:25 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -1188,11 +1398,11 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:31 AM] Found 2 errors. Watching for file changes. +[12:01:35 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1200,6 +1410,8 @@ Program files:: /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1212,6 +1424,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: @@ -1250,6 +1466,7 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1272,6 +1489,8 @@ declare module "src/anotherFileReusingResolution" { } declare module "src/fileNotFound" { export function something2(): number; } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } @@ -1279,7 +1498,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1038,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":310,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1073,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":333,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1289,6 +1508,8 @@ declare module "src/main" { } "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/types.ts", + "./src/fileWithRef.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -1296,7 +1517,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1038, + "end": 1073, "kind": "text" } ] @@ -1305,7 +1526,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 310, + "end": 333, "kind": "text" } ] @@ -1317,17 +1538,23 @@ declare module "src/main" { } "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1347,6 +1574,13 @@ declare module "src/main" { } "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -1369,6 +1603,9 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1462,6 +1699,42 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1477,7 +1750,7 @@ declare module "src/main" { } }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1514,7 +1787,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1523,8 +1796,10 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1552,14 +1827,14 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4406 + "size": 5101 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-1038) +text: (0-1073) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1578,6 +1853,7 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); +/// define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1595,7 +1871,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-310) +text: (0-333) declare module "src/filePresent" { export function something(): number; } @@ -1603,6 +1879,8 @@ declare module "src/anotherFileReusingResolution" { } declare module "src/fileNotFound" { export function something2(): number; } +interface SomeType { +} declare module "src/newFile" { export function foo(): number; } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index f7290880b1f67..c09e4a13dd48d 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -11,6 +11,12 @@ import { something2 } from "./fileNotFound"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } +//// [/user/username/projects/myproject/src/fileWithRef.ts] +/// + +//// [/user/username/projects/myproject/src/types.ts] +interface SomeType {} + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -30,13 +36,13 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:27 AM] Starting compilation in watch mode... +[12:00:31 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== @@ -52,6 +58,8 @@ File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. @@ -75,25 +83,29 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:42 AM] Found 2 errors. Watching for file changes. +[12:00:54 AM] Found 2 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts WatchedFiles:: @@ -103,6 +115,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: @@ -143,6 +159,22 @@ define(["require", "exports"], function (require, exports) { export {}; +//// [/user/username/projects/myproject/src/types.js] + + +//// [/user/username/projects/myproject/src/types.d.ts] +interface SomeType { +} + + +//// [/user/username/projects/myproject/src/fileWithRef.js] +/// + + +//// [/user/username/projects/myproject/src/fileWithRef.d.ts] +/// + + //// [/user/username/projects/myproject/src/main.js] define(["require", "exports"], function (require, exports) { "use strict"; @@ -155,7 +187,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1],[4,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -164,13 +196,19 @@ export {}; "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -187,6 +225,15 @@ export {}; "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" @@ -206,6 +253,9 @@ export {}; "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -214,6 +264,9 @@ export {}; "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -234,6 +287,7 @@ export {}; ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -246,7 +300,8 @@ export {}; "code": 2792 } ] - ] + ], + "./src/types.ts" ], "peristedProgram": { "files": [ @@ -321,6 +376,42 @@ export {}; } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -349,7 +440,7 @@ export {}; "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -357,7 +448,9 @@ export {}; "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -379,7 +472,7 @@ export {}; } }, "version": "FakeTSVersion", - "size": 3663 + "size": 4271 } @@ -396,11 +489,11 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:47 AM] File change detected. Starting incremental compilation... +[12:00:59 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -415,17 +508,19 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:57 AM] Found 2 errors. Watching for file changes. +[12:01:09 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -438,6 +533,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: @@ -463,7 +562,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2]],"referencedMap":[[3,1],[4,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[4,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":5,"originalFileName":5,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":4,"index":0},{"kind":3,"file":4,"index":1}]},{"fileName":6,"originalFileName":6,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[6,5,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -472,13 +571,19 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts" + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" + ], + [ + "./src/types.ts" ] ], "fileInfos": { @@ -495,6 +600,15 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", "signature": "-3531856636-export {};\n" @@ -514,6 +628,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -521,6 +638,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -539,6 +659,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -551,7 +672,8 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "code": 2792 } ] - ] + ], + "./src/types.ts" ], "peristedProgram": { "files": [ @@ -626,6 +748,42 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 4 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -654,7 +812,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -662,7 +820,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", - "./src/main.ts" + "./src/fileWithRef.ts", + "./src/main.ts", + "./src/types.ts" ], "resolutions": [ { @@ -684,7 +844,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 3734 + "size": 4342 } @@ -707,12 +867,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:01:05 AM] File change detected. Starting incremental compilation... +[12:01:17 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -740,17 +900,19 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:19 AM] Found 2 errors. Watching for file changes. +[12:01:31 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -765,6 +927,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: @@ -785,7 +951,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,4]],"referencedMap":[[3,1],[5,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,[5,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":6,"originalFileName":6,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":5,"index":1},{"kind":3,"file":5,"index":2}]},{"fileName":7,"originalFileName":7,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":8,"originalFileName":8,"path":4,"resolvedPath":4,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":2}]}],"rootFileNames":[7,6,5,8],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -794,16 +960,22 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -823,6 +995,15 @@ exitCode:: ExitStatus.undefined "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" @@ -846,6 +1027,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -854,6 +1038,9 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -872,6 +1059,7 @@ exitCode:: ExitStatus.undefined ] ], "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -885,7 +1073,8 @@ exitCode:: ExitStatus.undefined } ] ], - "./src/newfile.ts" + "./src/newfile.ts", + "./src/types.ts" ], "peristedProgram": { "files": [ @@ -960,6 +1149,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 5 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 2 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -975,7 +1200,7 @@ exitCode:: ExitStatus.undefined }, { "kind": 0, - "index": 3 + "index": 4 } ] }, @@ -1012,7 +1237,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 2 + "index": 3 } ] } @@ -1020,8 +1245,10 @@ exitCode:: ExitStatus.undefined "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1049,7 +1276,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4301 + "size": 4915 } //// [/user/username/projects/myproject/src/newFile.js] @@ -1078,12 +1305,12 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:25 AM] File change detected. Starting incremental compilation... +[12:01:37 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -1108,11 +1335,11 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:33 AM] Found 2 errors. Watching for file changes. +[12:01:45 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1120,6 +1347,8 @@ Program files:: /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1133,6 +1362,10 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: @@ -1153,7 +1386,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[2,5]],"referencedMap":[[3,1],[6,2]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,[6,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":6,"index":1},{"kind":3,"file":6,"index":2}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":9,"originalFileName":9,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,9,7,6,10],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1163,17 +1396,23 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/fileWithRef.ts", "./src/newFile.ts" ], "fileNamesList": [ [ "./src/filepresent.ts" ], + [ + "./src/types.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1197,6 +1436,15 @@ exitCode:: ExitStatus.undefined "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-4788605446-export declare function foo(): number;\n" @@ -1220,6 +1468,9 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1228,6 +1479,9 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -1247,6 +1501,7 @@ exitCode:: ExitStatus.undefined ], "./src/filenotfound.ts", "./src/filepresent.ts", + "./src/filewithref.ts", [ "./src/main.ts", [ @@ -1260,7 +1515,8 @@ exitCode:: ExitStatus.undefined } ] ], - "./src/newfile.ts" + "./src/newfile.ts", + "./src/types.ts" ], "peristedProgram": { "files": [ @@ -1349,6 +1605,42 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": 4, + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": 0, + "index": 6 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": 0, + "index": 3 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1364,7 +1656,7 @@ exitCode:: ExitStatus.undefined }, { "kind": 0, - "index": 4 + "index": 5 } ] }, @@ -1401,7 +1693,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": 0, - "index": 3 + "index": 4 } ] } @@ -1410,8 +1702,10 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", + "./src/fileWithRef.ts", "./src/main.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/types.ts" ], "resolutions": [ { @@ -1439,7 +1733,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4679 + "size": 5296 } //// [/user/username/projects/myproject/src/fileNotFound.js] From 03ee004b879953bf9627c591272b30bf5aad351b Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 19 Mar 2021 16:48:55 -0700 Subject: [PATCH 31/48] Baseline readable file include reason --- src/testRunner/unittests/tsbuild/helpers.ts | 42 ++++- ...nd-uses-it-for-new-program-with-outFile.js | 150 +++++++++--------- ...-resolution-and-uses-it-for-new-program.js | 150 +++++++++--------- .../initial-build/persistResolutions.js | 92 +++++------ ...er-resolutions-are-cleaned-with-outFile.js | 90 +++++------ ...can-build-after-resolutions-are-cleaned.js | 90 +++++------ ...-saved-in-tsbuildinfo-file-with-outFile.js | 70 ++++---- ...ons-have-been-saved-in-tsbuildinfo-file.js | 70 ++++---- ...nd-uses-it-for-new-program-with-outFile.js | 90 +++++------ ...-resolution-and-uses-it-for-new-program.js | 90 +++++------ ...nd-uses-it-for-new-program-with-outFile.js | 150 +++++++++--------- ...-resolution-and-uses-it-for-new-program.js | 150 +++++++++--------- ...er-resolutions-are-cleaned-with-outFile.js | 90 +++++------ ...can-build-after-resolutions-are-cleaned.js | 90 +++++------ ...-saved-in-tsbuildinfo-file-with-outFile.js | 90 +++++------ ...ons-have-been-saved-in-tsbuildinfo-file.js | 70 ++++---- ...nd-uses-it-for-new-program-with-outFile.js | 90 +++++------ ...-resolution-and-uses-it-for-new-program.js | 90 +++++------ 18 files changed, 893 insertions(+), 861 deletions(-) diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index 3a58dbdc80bc8..643042b7150a9 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -260,17 +260,33 @@ interface Symbol { redirectTargets?: readonly string[]; packageName?: string; } + enum ReadableFileIncludeKind { + RootFile = "RootFile", + SourceFromProjectReference = "SourceFromProjectReference", + OutputFromProjectReference = "OutputFromProjectReference", + Import = "Import", + ReferenceFile = "ReferenceFile", + TypeReferenceDirective = "TypeReferenceDirective", + LibFile = "LibFile", + LibReferenceDirective = "LibReferenceDirective", + AutomaticTypeDirectiveFile = "AutomaticTypeDirectiveFile", + } + type ReadableReferencedFileKind = ReadableFileIncludeKind.Import | + ReadableFileIncludeKind.ReferenceFile | + ReadableFileIncludeKind.TypeReferenceDirective | + ReadableFileIncludeKind.LibReferenceDirective; interface ReadablePersistedProgramReferencedFile { - kind: ReferencedFileKind; + kind: ReadableReferencedFileKind; file: string; index: number; } - type ReadablePersistedProgramFileIncludeReason = + type ReadablePersistedProgramFileIncludeReason = Omit<( RootFile | LibFile | ProjectReferenceFile | ReadablePersistedProgramReferencedFile | - AutomaticTypeDirectiveFile; + AutomaticTypeDirectiveFile + ), "kind"> & { kind: ReadableFileIncludeKind }; const enum ReadableFilePreprocessingDiagnosticsKind { FilePreprocessingReferencedDiagnostic = "FilePreprocessingReferencedDiagnostic", FilePreprocessingFileExplainingDiagnostic = "FilePreprocessingFileExplainingDiagnostic" @@ -404,12 +420,28 @@ interface Symbol { }; } + function toReadableFileIncludeKind(kind: FileIncludeKind): ReadableFileIncludeKind { + switch (kind) { + case FileIncludeKind.RootFile: return ReadableFileIncludeKind.RootFile; + case FileIncludeKind.SourceFromProjectReference: return ReadableFileIncludeKind.SourceFromProjectReference; + case FileIncludeKind.OutputFromProjectReference: return ReadableFileIncludeKind.OutputFromProjectReference; + case FileIncludeKind.Import: return ReadableFileIncludeKind.Import; + case FileIncludeKind.ReferenceFile: return ReadableFileIncludeKind.ReferenceFile; + case FileIncludeKind.TypeReferenceDirective: return ReadableFileIncludeKind.TypeReferenceDirective; + case FileIncludeKind.LibFile: return ReadableFileIncludeKind.LibFile; + case FileIncludeKind.LibReferenceDirective: return ReadableFileIncludeKind.LibReferenceDirective; + case FileIncludeKind.AutomaticTypeDirectiveFile: return ReadableFileIncludeKind.AutomaticTypeDirectiveFile; + default: + Debug.assertNever(kind); + } + } + function toReadablePersistedProgramReferencedFile(reason: PersistedProgramReferencedFile): ReadablePersistedProgramReferencedFile { - return { ...reason, file: toFileName(reason.file) }; + return { ...reason, kind: toReadableFileIncludeKind(reason.kind) as ReadableReferencedFileKind, file: toFileName(reason.file) }; } function toReadablePersistedProgramFileIncludeReason(reason: PersistedProgramFileIncludeReason): ReadablePersistedProgramFileIncludeReason { - return isReferencedFile(reason) ? toReadablePersistedProgramReferencedFile(reason) : reason; + return isReferencedFile(reason) ? toReadablePersistedProgramReferencedFile(reason) : { ...reason, kind: toReadableFileIncludeKind(reason.kind) }; } function toReadablePersistedProgramFilePreprocessingDiagnostic(d: PersistedProgramFilePreprocessingDiagnostic): ReadablePersistedProgramFilePreprocessingDiagnostic { diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 7bd4a59ddce1b..26f9300b35e88 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -164,7 +164,7 @@ No cached semantic diagnostics in the builder:: "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -177,21 +177,21 @@ No cached semantic diagnostics in the builder:: "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -220,7 +220,7 @@ No cached semantic diagnostics in the builder:: }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -234,12 +234,12 @@ No cached semantic diagnostics in the builder:: "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -256,7 +256,7 @@ No cached semantic diagnostics in the builder:: ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -288,7 +288,7 @@ No cached semantic diagnostics in the builder:: }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -483,7 +483,7 @@ No cached semantic diagnostics in the builder:: "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -496,21 +496,21 @@ No cached semantic diagnostics in the builder:: "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -539,7 +539,7 @@ No cached semantic diagnostics in the builder:: }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -553,12 +553,12 @@ No cached semantic diagnostics in the builder:: "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -575,7 +575,7 @@ No cached semantic diagnostics in the builder:: ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -607,7 +607,7 @@ No cached semantic diagnostics in the builder:: }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -786,7 +786,7 @@ No cached semantic diagnostics in the builder:: "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -799,21 +799,21 @@ No cached semantic diagnostics in the builder:: "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -842,7 +842,7 @@ No cached semantic diagnostics in the builder:: }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -856,12 +856,12 @@ No cached semantic diagnostics in the builder:: "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -878,7 +878,7 @@ No cached semantic diagnostics in the builder:: ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -892,12 +892,12 @@ No cached semantic diagnostics in the builder:: "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -934,7 +934,7 @@ No cached semantic diagnostics in the builder:: }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1118,7 +1118,7 @@ No cached semantic diagnostics in the builder:: "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1131,21 +1131,21 @@ No cached semantic diagnostics in the builder:: "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1174,7 +1174,7 @@ No cached semantic diagnostics in the builder:: }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1188,7 +1188,7 @@ No cached semantic diagnostics in the builder:: "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 1 } ] @@ -1202,12 +1202,12 @@ No cached semantic diagnostics in the builder:: "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -1224,7 +1224,7 @@ No cached semantic diagnostics in the builder:: ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1238,12 +1238,12 @@ No cached semantic diagnostics in the builder:: "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1280,7 +1280,7 @@ No cached semantic diagnostics in the builder:: }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -1628,7 +1628,7 @@ declare module "src/main" { } "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1641,21 +1641,21 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1670,16 +1670,16 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 1 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 3 } @@ -1708,7 +1708,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1722,12 +1722,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -1744,7 +1744,7 @@ declare module "src/main" { } ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1758,12 +1758,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1800,7 +1800,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -2098,7 +2098,7 @@ declare module "src/main" { } "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -2111,21 +2111,21 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -2140,16 +2140,16 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 1 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 3 } @@ -2178,7 +2178,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -2192,12 +2192,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -2214,7 +2214,7 @@ declare module "src/main" { } ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -2228,12 +2228,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -2270,7 +2270,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 8838e57073319..28d5191035040 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -239,7 +239,7 @@ Semantic diagnostics in builder refreshed for:: "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -252,21 +252,21 @@ Semantic diagnostics in builder refreshed for:: "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -295,7 +295,7 @@ Semantic diagnostics in builder refreshed for:: }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -309,12 +309,12 @@ Semantic diagnostics in builder refreshed for:: "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -331,7 +331,7 @@ Semantic diagnostics in builder refreshed for:: ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -363,7 +363,7 @@ Semantic diagnostics in builder refreshed for:: }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -625,7 +625,7 @@ Semantic diagnostics in builder refreshed for:: "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -638,21 +638,21 @@ Semantic diagnostics in builder refreshed for:: "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -681,7 +681,7 @@ Semantic diagnostics in builder refreshed for:: }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -695,12 +695,12 @@ Semantic diagnostics in builder refreshed for:: "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -717,7 +717,7 @@ Semantic diagnostics in builder refreshed for:: ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -749,7 +749,7 @@ Semantic diagnostics in builder refreshed for:: }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1002,7 +1002,7 @@ Semantic diagnostics in builder refreshed for:: "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1015,21 +1015,21 @@ Semantic diagnostics in builder refreshed for:: "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1058,7 +1058,7 @@ Semantic diagnostics in builder refreshed for:: }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1072,12 +1072,12 @@ Semantic diagnostics in builder refreshed for:: "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1094,7 +1094,7 @@ Semantic diagnostics in builder refreshed for:: ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -1108,12 +1108,12 @@ Semantic diagnostics in builder refreshed for:: "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -1150,7 +1150,7 @@ Semantic diagnostics in builder refreshed for:: }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1413,7 +1413,7 @@ Semantic diagnostics in builder refreshed for:: "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1426,21 +1426,21 @@ Semantic diagnostics in builder refreshed for:: "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1469,7 +1469,7 @@ Semantic diagnostics in builder refreshed for:: }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1483,7 +1483,7 @@ Semantic diagnostics in builder refreshed for:: "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 1 } ] @@ -1497,12 +1497,12 @@ Semantic diagnostics in builder refreshed for:: "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -1519,7 +1519,7 @@ Semantic diagnostics in builder refreshed for:: ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1533,12 +1533,12 @@ Semantic diagnostics in builder refreshed for:: "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1575,7 +1575,7 @@ Semantic diagnostics in builder refreshed for:: }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -1889,7 +1889,7 @@ interface SomeType { "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1902,21 +1902,21 @@ interface SomeType { "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1931,16 +1931,16 @@ interface SomeType { "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 1 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 3 } @@ -1969,7 +1969,7 @@ interface SomeType { }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1983,12 +1983,12 @@ interface SomeType { "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -2005,7 +2005,7 @@ interface SomeType { ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -2019,12 +2019,12 @@ interface SomeType { "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -2061,7 +2061,7 @@ interface SomeType { }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -2266,7 +2266,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -2279,21 +2279,21 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -2308,16 +2308,16 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 1 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 3 } @@ -2346,7 +2346,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -2360,12 +2360,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -2382,7 +2382,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -2396,12 +2396,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -2438,7 +2438,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js index 66dab53c31f6d..ade8d56ed5001 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js @@ -252,7 +252,7 @@ exports.multiply = multiply; "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -265,7 +265,7 @@ exports.multiply = multiply; "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -279,7 +279,7 @@ exports.multiply = multiply; "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 1 } ] @@ -293,7 +293,7 @@ exports.multiply = multiply; "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -415,7 +415,7 @@ exports.m = mod; "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -428,7 +428,7 @@ exports.m = mod; "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./index.ts", "index": 0 } @@ -443,7 +443,7 @@ exports.m = mod; "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./index.ts", "index": 1 } @@ -472,7 +472,7 @@ exports.m = mod; }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -652,7 +652,7 @@ exports.m = mod; "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -665,7 +665,7 @@ exports.m = mod; "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./index.ts", "index": 0 } @@ -680,12 +680,12 @@ exports.m = mod; "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "../logic/index.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./index.ts", "index": 2 } @@ -709,7 +709,7 @@ exports.m = mod; }, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./index.ts", "index": 1 } @@ -743,7 +743,7 @@ exports.m = mod; }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1012,7 +1012,7 @@ exports.someClass = someClass; "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1025,7 +1025,7 @@ exports.someClass = someClass; "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1039,7 +1039,7 @@ exports.someClass = someClass; "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 1 } ] @@ -1053,7 +1053,7 @@ exports.someClass = someClass; "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -1158,7 +1158,7 @@ exports.someClass = someClass; "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1171,7 +1171,7 @@ exports.someClass = someClass; "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./index.ts", "index": 0 } @@ -1186,7 +1186,7 @@ exports.someClass = someClass; "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./index.ts", "index": 1 } @@ -1215,7 +1215,7 @@ exports.someClass = someClass; }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1378,7 +1378,7 @@ exports.someClass = someClass; "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1391,7 +1391,7 @@ exports.someClass = someClass; "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./index.ts", "index": 0 } @@ -1406,12 +1406,12 @@ exports.someClass = someClass; "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "../logic/index.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./index.ts", "index": 2 } @@ -1435,7 +1435,7 @@ exports.someClass = someClass; }, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./index.ts", "index": 1 } @@ -1469,7 +1469,7 @@ exports.someClass = someClass; }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1708,7 +1708,7 @@ var someClass2 = /** @class */ (function () { "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1721,7 +1721,7 @@ var someClass2 = /** @class */ (function () { "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1735,7 +1735,7 @@ var someClass2 = /** @class */ (function () { "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 1 } ] @@ -1749,7 +1749,7 @@ var someClass2 = /** @class */ (function () { "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -1937,7 +1937,7 @@ var someClass2 = /** @class */ (function () { "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1950,7 +1950,7 @@ var someClass2 = /** @class */ (function () { "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1964,7 +1964,7 @@ var someClass2 = /** @class */ (function () { "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 1 } ] @@ -1978,7 +1978,7 @@ var someClass2 = /** @class */ (function () { "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -2083,7 +2083,7 @@ var someClass2 = /** @class */ (function () { "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -2096,7 +2096,7 @@ var someClass2 = /** @class */ (function () { "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./index.ts", "index": 0 } @@ -2111,7 +2111,7 @@ var someClass2 = /** @class */ (function () { "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./index.ts", "index": 1 } @@ -2140,7 +2140,7 @@ var someClass2 = /** @class */ (function () { }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -2303,7 +2303,7 @@ var someClass2 = /** @class */ (function () { "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -2316,7 +2316,7 @@ var someClass2 = /** @class */ (function () { "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./index.ts", "index": 0 } @@ -2331,12 +2331,12 @@ var someClass2 = /** @class */ (function () { "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "../logic/index.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./index.ts", "index": 2 } @@ -2360,7 +2360,7 @@ var someClass2 = /** @class */ (function () { }, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./index.ts", "index": 1 } @@ -2394,7 +2394,7 @@ var someClass2 = /** @class */ (function () { }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index c8b2ae14489b8..33ee69b47fb4f 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -197,7 +197,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -210,21 +210,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -253,7 +253,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -267,12 +267,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -289,7 +289,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -321,7 +321,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -505,7 +505,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -518,21 +518,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -561,7 +561,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -575,12 +575,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -597,7 +597,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -629,7 +629,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -838,7 +838,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -851,21 +851,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -894,7 +894,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -908,12 +908,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -930,7 +930,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -944,12 +944,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -986,7 +986,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1200,7 +1200,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1213,21 +1213,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1256,7 +1256,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1270,7 +1270,7 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 1 } ] @@ -1284,12 +1284,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -1306,7 +1306,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1320,12 +1320,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1362,7 +1362,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js index 873ff1fec6cbc..45a3ab7ca4ff3 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -266,7 +266,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -279,21 +279,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -322,7 +322,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -336,12 +336,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -358,7 +358,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -390,7 +390,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -641,7 +641,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -654,21 +654,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -697,7 +697,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -711,12 +711,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -733,7 +733,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -765,7 +765,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1048,7 +1048,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1061,21 +1061,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1104,7 +1104,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1118,12 +1118,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1140,7 +1140,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -1154,12 +1154,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -1196,7 +1196,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1489,7 +1489,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1502,21 +1502,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1545,7 +1545,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1559,7 +1559,7 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 1 } ] @@ -1573,12 +1573,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -1595,7 +1595,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1609,12 +1609,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1651,7 +1651,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index b3212279bcf41..80cff8db51415 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -246,7 +246,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -259,21 +259,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -302,7 +302,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -316,12 +316,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -338,7 +338,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -370,7 +370,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -579,7 +579,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -592,21 +592,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -635,7 +635,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -649,12 +649,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -671,7 +671,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -685,12 +685,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -727,7 +727,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -941,7 +941,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -954,21 +954,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -997,7 +997,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1011,7 +1011,7 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 1 } ] @@ -1025,12 +1025,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -1047,7 +1047,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1061,12 +1061,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1103,7 +1103,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index 25c1052a25a3e..90c055588aade 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -313,7 +313,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -326,21 +326,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -369,7 +369,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -383,12 +383,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -405,7 +405,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -437,7 +437,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -720,7 +720,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -733,21 +733,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -776,7 +776,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -790,12 +790,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -812,7 +812,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -826,12 +826,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -868,7 +868,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1161,7 +1161,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1174,21 +1174,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1217,7 +1217,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1231,7 +1231,7 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 1 } ] @@ -1245,12 +1245,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -1267,7 +1267,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1281,12 +1281,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1323,7 +1323,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 6a8fb90534f94..4f3338bedbbce 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -194,7 +194,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -207,21 +207,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -250,7 +250,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -264,12 +264,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -286,7 +286,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -318,7 +318,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -502,7 +502,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -515,21 +515,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -558,7 +558,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -572,12 +572,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -594,7 +594,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -626,7 +626,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -835,7 +835,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -848,21 +848,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -891,7 +891,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -905,12 +905,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -927,7 +927,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -941,12 +941,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -983,7 +983,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1197,7 +1197,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1210,21 +1210,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1253,7 +1253,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1267,7 +1267,7 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 1 } ] @@ -1281,12 +1281,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -1303,7 +1303,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1317,12 +1317,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1359,7 +1359,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index edda3a232c5e0..f0ae6dca9890a 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -269,7 +269,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -282,21 +282,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -325,7 +325,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -339,12 +339,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -361,7 +361,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -393,7 +393,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -644,7 +644,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -657,21 +657,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -700,7 +700,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -714,12 +714,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -736,7 +736,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -768,7 +768,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1051,7 +1051,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1064,21 +1064,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1107,7 +1107,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1121,12 +1121,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1143,7 +1143,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -1157,12 +1157,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -1199,7 +1199,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1492,7 +1492,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1505,21 +1505,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1548,7 +1548,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1562,7 +1562,7 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 1 } ] @@ -1576,12 +1576,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -1598,7 +1598,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1612,12 +1612,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1654,7 +1654,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index ff09a0f57ca72..a28e158b9c06c 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -259,7 +259,7 @@ declare module "src/main" { } "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -272,21 +272,21 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -315,7 +315,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -329,12 +329,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -351,7 +351,7 @@ declare module "src/main" { } ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -383,7 +383,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -671,7 +671,7 @@ declare module "src/main" { } "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -684,21 +684,21 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -727,7 +727,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -741,12 +741,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -763,7 +763,7 @@ declare module "src/main" { } ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -795,7 +795,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1092,7 +1092,7 @@ declare module "src/main" { } "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1105,21 +1105,21 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1148,7 +1148,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1162,12 +1162,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1184,7 +1184,7 @@ declare module "src/main" { } ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -1198,12 +1198,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -1240,7 +1240,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1563,7 +1563,7 @@ declare module "src/main" { } "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1576,21 +1576,21 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1619,7 +1619,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1633,7 +1633,7 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 1 } ] @@ -1647,12 +1647,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -1669,7 +1669,7 @@ declare module "src/main" { } ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1683,12 +1683,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1725,7 +1725,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -2074,7 +2074,7 @@ declare module "src/main" { } "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -2087,21 +2087,21 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -2116,16 +2116,16 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 1 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 3 } @@ -2154,7 +2154,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -2168,12 +2168,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -2190,7 +2190,7 @@ declare module "src/main" { } ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -2204,12 +2204,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -2246,7 +2246,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -2545,7 +2545,7 @@ declare module "src/main" { } "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -2558,21 +2558,21 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -2587,16 +2587,16 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 1 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 3 } @@ -2625,7 +2625,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -2639,12 +2639,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -2661,7 +2661,7 @@ declare module "src/main" { } ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -2675,12 +2675,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -2717,7 +2717,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 0d481bfe0876e..a36cb55396213 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -270,7 +270,7 @@ interface SomeType { "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -283,21 +283,21 @@ interface SomeType { "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -326,7 +326,7 @@ interface SomeType { }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -340,12 +340,12 @@ interface SomeType { "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -362,7 +362,7 @@ interface SomeType { ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -394,7 +394,7 @@ interface SomeType { }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -644,7 +644,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -657,21 +657,21 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -700,7 +700,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -714,12 +714,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -736,7 +736,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -768,7 +768,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1012,7 +1012,7 @@ define(["require", "exports"], function (require, exports) { "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1025,21 +1025,21 @@ define(["require", "exports"], function (require, exports) { "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1068,7 +1068,7 @@ define(["require", "exports"], function (require, exports) { }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1082,12 +1082,12 @@ define(["require", "exports"], function (require, exports) { "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1104,7 +1104,7 @@ define(["require", "exports"], function (require, exports) { ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -1118,12 +1118,12 @@ define(["require", "exports"], function (require, exports) { "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -1160,7 +1160,7 @@ define(["require", "exports"], function (require, exports) { }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1408,7 +1408,7 @@ define(["require", "exports"], function (require, exports) { "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1421,21 +1421,21 @@ define(["require", "exports"], function (require, exports) { "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1464,7 +1464,7 @@ define(["require", "exports"], function (require, exports) { }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1478,7 +1478,7 @@ define(["require", "exports"], function (require, exports) { "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 1 } ] @@ -1492,12 +1492,12 @@ define(["require", "exports"], function (require, exports) { "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -1514,7 +1514,7 @@ define(["require", "exports"], function (require, exports) { ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1528,12 +1528,12 @@ define(["require", "exports"], function (require, exports) { "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1570,7 +1570,7 @@ define(["require", "exports"], function (require, exports) { }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -1808,7 +1808,7 @@ Semantic diagnostics in builder refreshed for:: "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1821,21 +1821,21 @@ Semantic diagnostics in builder refreshed for:: "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1850,16 +1850,16 @@ Semantic diagnostics in builder refreshed for:: "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 1 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 3 } @@ -1888,7 +1888,7 @@ Semantic diagnostics in builder refreshed for:: }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1902,12 +1902,12 @@ Semantic diagnostics in builder refreshed for:: "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -1924,7 +1924,7 @@ Semantic diagnostics in builder refreshed for:: ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1938,12 +1938,12 @@ Semantic diagnostics in builder refreshed for:: "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1980,7 +1980,7 @@ Semantic diagnostics in builder refreshed for:: }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -2186,7 +2186,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -2199,21 +2199,21 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -2228,16 +2228,16 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 1 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 3 } @@ -2266,7 +2266,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -2280,12 +2280,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -2302,7 +2302,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -2316,12 +2316,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -2358,7 +2358,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index cb577aaee6c3d..108f638c5d629 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -272,7 +272,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -285,21 +285,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -328,7 +328,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -342,12 +342,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -364,7 +364,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -396,7 +396,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -676,7 +676,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -689,21 +689,21 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -732,7 +732,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -746,12 +746,12 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -768,7 +768,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -800,7 +800,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1128,7 +1128,7 @@ declare module "src/main" { } "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1141,21 +1141,21 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1184,7 +1184,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1198,12 +1198,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1220,7 +1220,7 @@ declare module "src/main" { } ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -1234,12 +1234,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -1276,7 +1276,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1629,7 +1629,7 @@ declare module "src/main" { } "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1642,21 +1642,21 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1685,7 +1685,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1699,7 +1699,7 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 1 } ] @@ -1713,12 +1713,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -1735,7 +1735,7 @@ declare module "src/main" { } ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1749,12 +1749,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1791,7 +1791,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js index ea605c9dba717..dcb35dd853ea9 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -312,7 +312,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -325,21 +325,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -368,7 +368,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -382,12 +382,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -404,7 +404,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -436,7 +436,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -684,7 +684,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -697,21 +697,21 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -740,7 +740,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -754,12 +754,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -776,7 +776,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -808,7 +808,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1085,7 +1085,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1098,21 +1098,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1141,7 +1141,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1155,12 +1155,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1177,7 +1177,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -1191,12 +1191,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -1233,7 +1233,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1527,7 +1527,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1540,21 +1540,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1583,7 +1583,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1597,7 +1597,7 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 1 } ] @@ -1611,12 +1611,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -1633,7 +1633,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1647,12 +1647,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1689,7 +1689,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 9a29922417695..9fc4cf5026555 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -251,7 +251,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -264,21 +264,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -307,7 +307,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -321,12 +321,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -343,7 +343,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -375,7 +375,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -655,7 +655,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -668,21 +668,21 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -711,7 +711,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -725,12 +725,12 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -747,7 +747,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -779,7 +779,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1107,7 +1107,7 @@ declare module "src/main" { } "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1120,21 +1120,21 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1163,7 +1163,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1177,12 +1177,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1199,7 +1199,7 @@ declare module "src/main" { } ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -1213,12 +1213,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -1255,7 +1255,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1608,7 +1608,7 @@ declare module "src/main" { } "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1621,21 +1621,21 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1664,7 +1664,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1678,7 +1678,7 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 1 } ] @@ -1692,12 +1692,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -1714,7 +1714,7 @@ declare module "src/main" { } ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1728,12 +1728,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1770,7 +1770,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index a1f602eb9b93c..759f5db0f4a29 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -374,7 +374,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -387,21 +387,21 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -430,7 +430,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -444,12 +444,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -466,7 +466,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -498,7 +498,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -775,7 +775,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -788,21 +788,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -831,7 +831,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -845,12 +845,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -867,7 +867,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -881,12 +881,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -923,7 +923,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1217,7 +1217,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1230,21 +1230,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1273,7 +1273,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1287,7 +1287,7 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 1 } ] @@ -1301,12 +1301,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -1323,7 +1323,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1337,12 +1337,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1379,7 +1379,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 4de7933fb7ce0..64d68a0c1861d 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -267,7 +267,7 @@ declare module "src/main" { } "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -280,21 +280,21 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -323,7 +323,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -337,12 +337,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -359,7 +359,7 @@ declare module "src/main" { } ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -391,7 +391,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -671,7 +671,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -684,21 +684,21 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -727,7 +727,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -741,12 +741,12 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -763,7 +763,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -795,7 +795,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1123,7 +1123,7 @@ declare module "src/main" { } "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1136,21 +1136,21 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1179,7 +1179,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1193,12 +1193,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1215,7 +1215,7 @@ declare module "src/main" { } ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -1229,12 +1229,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -1271,7 +1271,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1624,7 +1624,7 @@ declare module "src/main" { } "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1637,21 +1637,21 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1680,7 +1680,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1694,7 +1694,7 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 1 } ] @@ -1708,12 +1708,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -1730,7 +1730,7 @@ declare module "src/main" { } ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1744,12 +1744,12 @@ declare module "src/main" { } "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1786,7 +1786,7 @@ declare module "src/main" { } }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index c09e4a13dd48d..ffd47471ad557 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -315,7 +315,7 @@ export {}; "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -328,21 +328,21 @@ export {}; "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -371,7 +371,7 @@ export {}; }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -385,12 +385,12 @@ export {}; "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -407,7 +407,7 @@ export {}; ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -439,7 +439,7 @@ export {}; }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -687,7 +687,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -700,21 +700,21 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 } @@ -743,7 +743,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -757,12 +757,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -779,7 +779,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -811,7 +811,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1088,7 +1088,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1101,21 +1101,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1144,7 +1144,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1158,12 +1158,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1180,7 +1180,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 2 } ] @@ -1194,12 +1194,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 4 } ] @@ -1236,7 +1236,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1530,7 +1530,7 @@ exitCode:: ExitStatus.undefined "hasNoDefaultLib": true, "includeReasons": [ { - "kind": 6 + "kind": "LibFile" } ] }, @@ -1543,21 +1543,21 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 2 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 1 }, { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 2 } @@ -1586,7 +1586,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 0 } ] @@ -1600,7 +1600,7 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 1 } ] @@ -1614,12 +1614,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 4, + "kind": "ReferenceFile", "file": "./src/filewithref.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 6 } ] @@ -1636,7 +1636,7 @@ exitCode:: ExitStatus.undefined ], "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 3 } ] @@ -1650,12 +1650,12 @@ exitCode:: ExitStatus.undefined "flags": 0, "includeReasons": [ { - "kind": 3, + "kind": "Import", "file": "./src/main.ts", "index": 0 }, { - "kind": 0, + "kind": "RootFile", "index": 5 } ] @@ -1692,7 +1692,7 @@ exitCode:: ExitStatus.undefined }, "includeReasons": [ { - "kind": 0, + "kind": "RootFile", "index": 4 } ] From 00005be0dd133419bf6beda06885fe7c5ebe4798 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 19 Mar 2021 18:01:00 -0700 Subject: [PATCH 32/48] Map resolutions --- src/compiler/builder.ts | 91 ++-- src/testRunner/unittests/tsbuild/helpers.ts | 49 ++- ...nd-uses-it-for-new-program-with-outFile.js | 405 +++++++++++++++--- ...-resolution-and-uses-it-for-new-program.js | 405 +++++++++++++++--- .../initial-build/persistResolutions.js | 240 ++++++++--- ...er-resolutions-are-cleaned-with-outFile.js | 281 ++++++++++-- ...can-build-after-resolutions-are-cleaned.js | 281 ++++++++++-- ...-saved-in-tsbuildinfo-file-with-outFile.js | 216 ++++++++-- ...ons-have-been-saved-in-tsbuildinfo-file.js | 216 ++++++++-- ...nd-uses-it-for-new-program-with-outFile.js | 279 ++++++++++-- ...-resolution-and-uses-it-for-new-program.js | 279 ++++++++++-- ...nd-uses-it-for-new-program-with-outFile.js | 405 +++++++++++++++--- ...-resolution-and-uses-it-for-new-program.js | 405 +++++++++++++++--- ...er-resolutions-are-cleaned-with-outFile.js | 281 ++++++++++-- ...can-build-after-resolutions-are-cleaned.js | 281 ++++++++++-- ...-saved-in-tsbuildinfo-file-with-outFile.js | 281 ++++++++++-- ...ons-have-been-saved-in-tsbuildinfo-file.js | 216 ++++++++-- ...nd-uses-it-for-new-program-with-outFile.js | 279 ++++++++++-- ...-resolution-and-uses-it-for-new-program.js | 279 ++++++++++-- 19 files changed, 4270 insertions(+), 899 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index 21c23ff67d417..b647276530988 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -829,11 +829,31 @@ namespace ts { * ProgramBuildInfoFileInfo is string if FileInfo.version === FileInfo.signature && !FileInfo.affectsGlobalScope otherwise encoded FileInfo */ export type ProgramBuildInfoFileInfo = string | ProgramBuildInfoBuilderStateFileInfo; - export type ResolutionWithoutFailedLookupLocations = Omit; - export type PersistedProgramResolution = ResolutionWithoutFailedLookupLocations & - ResolutionWithoutFailedLookupLocations & { - failedLookupLocations?: readonly string[]; + export interface ResolutionWithFailedLookupLocations { + serializationIndex?: PersistedProgramResolutionId; + } + export interface ResolvedModuleWithFailedLookupLocations extends ResolutionWithFailedLookupLocations { } + export interface ResolvedTypeReferenceDirectiveWithFailedLookupLocations extends ResolutionWithFailedLookupLocations { } + export type PersistedProgramResolvedModuleFull = Omit & { + resolvedFileName: ProgramBuildInfoAbsoluteFileId; + isExternalLibraryImport?: true; + readonly originalPath?: ProgramBuildInfoAbsoluteFileId; }; + export interface PersistedProgramResolvedModuleWithFailedLookupLocations { + readonly resolvedModule: PersistedProgramResolvedModuleFull | undefined; + failedLookupLocations?: readonly ProgramBuildInfoAbsoluteFileId[]; + } + export type PersistedProgramResolvedTypeReferenceDirective = Omit & { + resolvedFileName: ProgramBuildInfoAbsoluteFileId | undefined; + isExternalLibraryImport?: true; + }; + export interface PersistedProgramResolvedTypeReferenceDirectiveWithFailedLookupLocations { + resolvedTypeReferenceDirective: PersistedProgramResolvedTypeReferenceDirective | undefined; + failedLookupLocations?: readonly ProgramBuildInfoAbsoluteFileId[]; + } + export type PersistedProgramResolution = PersistedProgramResolvedModuleWithFailedLookupLocations & PersistedProgramResolvedTypeReferenceDirectiveWithFailedLookupLocations; + export type PersistedProgramResolutionId = number & { __persistedProgramResolutionIdBrand: any }; + export type PersistedProgramResolutionEntry = [name: string, resolutionId: PersistedProgramResolutionId]; export interface PersistedProgramSourceFile { fileName: ProgramBuildInfoAbsoluteFileId; originalFileName: ProgramBuildInfoAbsoluteFileId; @@ -852,8 +872,8 @@ namespace ts { ambientModuleNames?: readonly string[]; hasNoDefaultLib?: true; - resolvedModules?: MapLike; - resolvedTypeReferenceDirectiveNames?: MapLike; + resolvedModules?: readonly PersistedProgramResolutionEntry[]; + resolvedTypeReferenceDirectiveNames?: readonly PersistedProgramResolutionEntry[]; redirectInfo?: { readonly redirectTarget: { readonly path: ProgramBuildInfoFileId; }; }; includeReasons: readonly PersistedProgramFileIncludeReason[]; @@ -863,10 +883,6 @@ namespace ts { } /** If key and value are same, just use ProgramBuildInfoFileId otherwise pair of key followed by value */ export type PersistedProgramFileByNameEntry = ProgramBuildInfoFileId | [fileId: ProgramBuildInfoFileId, file: ProgramBuildInfoFileId | typeof missingSourceOfProjectReferenceRedirect | typeof missingFile]; - - export interface ResolutionWithFailedLookupLocations { - serializationIndex?: number; - } export interface ResolvedModuleWithFailedLookupLocations extends ResolutionWithFailedLookupLocations { } export interface ResolvedTypeReferenceDirectiveWithFailedLookupLocations extends ResolutionWithFailedLookupLocations { } export interface PersistedProgramReferencedFile { @@ -916,7 +932,7 @@ namespace ts { projectReferences: readonly PersistedProgramProjectReference[] | undefined; resolvedProjectReferences: readonly (PersistedProgramResolvedProjectReference | undefined)[] | undefined; missingPaths: readonly ProgramBuildInfoFileId[] | undefined; - resolvedTypeReferenceDirectives: MapLike | undefined; + resolvedTypeReferenceDirectives: readonly PersistedProgramResolutionEntry[] | undefined; fileProcessingDiagnostics: readonly PersistedProgramFilePreprocessingDiagnostic[] | undefined; resolutions: readonly PersistedProgramResolution[] | undefined; } @@ -1163,33 +1179,30 @@ namespace ts { r.serializationIndex = undefined; return { resolvedModule: resolvedModule && { - resolvedFileName: relativeToBuildInfoEnsuringAbsolutePath(resolvedModule.resolvedFileName), + ...resolvedModule, + resolvedFileName: toAbsoluteFileId(resolvedModule.resolvedFileName), isExternalLibraryImport: resolvedModule.isExternalLibraryImport ? true : undefined, - originalPath: resolvedModule.originalPath && relativeToBuildInfoEnsuringAbsolutePath(resolvedModule.originalPath), - extension: resolvedModule.extension, - packageId: resolvedModule.packageId, + originalPath: resolvedModule.originalPath ? toAbsoluteFileId(resolvedModule.originalPath) : undefined, }, resolvedTypeReferenceDirective: resolvedTypeReferenceDirective && { - resolvedFileName: resolvedTypeReferenceDirective.resolvedFileName && relativeToBuildInfoEnsuringAbsolutePath(resolvedTypeReferenceDirective.resolvedFileName), - primary: resolvedTypeReferenceDirective.primary, + ...resolvedTypeReferenceDirective, + resolvedFileName: resolvedTypeReferenceDirective.resolvedFileName ? toAbsoluteFileId(resolvedTypeReferenceDirective.resolvedFileName) : undefined, isExternalLibraryImport: resolvedTypeReferenceDirective.isExternalLibraryImport ? true : undefined, - packageId: resolvedTypeReferenceDirective.packageId }, - failedLookupLocations: mapToReadonlyArrayOrUndefined(r.failedLookupLocations, relativeToBuildInfoEnsuringAbsolutePath), + failedLookupLocations: mapToReadonlyArrayOrUndefined(r.failedLookupLocations, toAbsoluteFileId), }; } - function toPersistedProgramResolutionMap(resolutionMap: ESMap | undefined) { - if (!resolutionMap || !resolutionMap.size) return undefined; - const mappedResult: MapLike = {}; - resolutionMap.forEach((resolution, key) => { + function toPersistedProgramResolutionMap(resolutionMap: ESMap | undefined): readonly PersistedProgramResolutionEntry[] | undefined { + let result: PersistedProgramResolutionEntry[] | undefined; + resolutionMap?.forEach((resolution, key) => { if (resolution.serializationIndex === undefined) { (resolutions ||= []).push(resolution); - resolution.serializationIndex = resolutions.length - 1; + resolution.serializationIndex = resolutions.length as PersistedProgramResolutionId; } - mappedResult[key] = resolution.serializationIndex; + (result ||= []).push([key, resolution.serializationIndex]); }); - return mappedResult; + return result; } function toStringLiteralLikeOfProgramFromBuildInfo(name: StringLiteralLike): StringLiteralLikeOfProgramFromBuildInfo { @@ -1728,15 +1741,9 @@ namespace ts { return sourceFile; } - function toResolutionMap(resolutionMap: MapLike | undefined) { + function toResolutionMap(resolutionMap: readonly PersistedProgramResolutionEntry[] | undefined) { if (!resolutionMap) return undefined; - const result = new Map(); - for (const key in resolutionMap) { - if (hasProperty(resolutionMap, key)) { - result.set(key, resolutions[resolutionMap[key]]); - } - } - return result; + return resolutionMap && arrayToMap(resolutionMap, value => value[0], value => resolutions[value[1] - 1]); } } @@ -1777,19 +1784,15 @@ namespace ts { function toResolution({ resolvedModule, resolvedTypeReferenceDirective, failedLookupLocations }: PersistedProgramResolution): ResolvedModuleWithFailedLookupLocations & ResolvedTypeReferenceDirectiveWithFailedLookupLocations { return { resolvedModule: resolvedModule && { - resolvedFileName: toAbsolutePath(resolvedModule.resolvedFileName), - isExternalLibraryImport: resolvedModule.isExternalLibraryImport ? true : undefined, - originalPath: resolvedModule.originalPath && toAbsolutePath(resolvedModule.originalPath), - extension: resolvedModule.extension, - packageId: resolvedModule.packageId, + ...resolvedModule, + resolvedFileName: toFileAbsolutePath(resolvedModule.resolvedFileName), + originalPath: resolvedModule.originalPath && toFileAbsolutePath(resolvedModule.originalPath), }, resolvedTypeReferenceDirective: resolvedTypeReferenceDirective && { - resolvedFileName: resolvedTypeReferenceDirective.resolvedFileName && toAbsolutePath(resolvedTypeReferenceDirective.resolvedFileName), - primary: resolvedTypeReferenceDirective.primary, - isExternalLibraryImport: resolvedTypeReferenceDirective.isExternalLibraryImport ? true : undefined, - packageId: resolvedTypeReferenceDirective.packageId + ...resolvedTypeReferenceDirective, + resolvedFileName: resolvedTypeReferenceDirective.resolvedFileName && toFileAbsolutePath(resolvedTypeReferenceDirective.resolvedFileName), }, - failedLookupLocations: failedLookupLocations ? failedLookupLocations.map(toAbsolutePath) : [] + failedLookupLocations: failedLookupLocations ? failedLookupLocations.map(toFileAbsolutePath) : [] }; } diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index 643042b7150a9..c2e9e6ce41ef5 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -238,6 +238,23 @@ interface Symbol { type ReadableProgramBuildInfoDiagnostic = string | [string, readonly ReusableDiagnostic[]]; type ReadableProgramBuilderInfoFilePendingEmit = [string, "DtsOnly" | "Full"]; + type ReadablePersistedProgramResolvedModuleFull = Omit & { + resolvedFileName: string; + readonly originalPath?: string; + }; + interface ReadablePersistedProgramResolvedModuleWithFailedLookupLocations { + readonly resolvedModule: ReadablePersistedProgramResolvedModuleFull | undefined; + failedLookupLocations?: readonly string[]; + } + type ReadablePersistedProgramResolvedTypeReferenceDirective = Omit & { + resolvedFileName: string | undefined; + }; + interface ReadablePersistedProgramResolvedTypeReferenceDirectiveWithFailedLookupLocations { + resolvedTypeReferenceDirective: ReadablePersistedProgramResolvedTypeReferenceDirective | undefined; + failedLookupLocations?: readonly string[]; + } + type ReadablePersistedProgramResolution = ReadablePersistedProgramResolvedModuleWithFailedLookupLocations & ReadablePersistedProgramResolvedTypeReferenceDirectiveWithFailedLookupLocations; + type ReadablePersistedProgramResolutionEntry = [name: string, resolution: ReadablePersistedProgramResolution]; interface ReadablePersistedProgramSourceFile { fileName: string; originalFileName: string; @@ -252,8 +269,8 @@ interface Symbol { moduleAugmentations?: readonly ModuleNameOfProgramFromBuildInfo[]; ambientModuleNames?: readonly string[]; hasNoDefaultLib?: true; - resolvedModules?: MapLike; - resolvedTypeReferenceDirectiveNames?: MapLike; + resolvedModules?: readonly ReadablePersistedProgramResolutionEntry[]; + resolvedTypeReferenceDirectiveNames?: readonly ReadablePersistedProgramResolutionEntry[]; redirectInfo?: { readonly redirectTarget: { readonly path: string }; }; includeReasons: readonly ReadablePersistedProgramFileIncludeReason[]; isSourceFileFromExternalLibraryPath?: true; @@ -321,9 +338,9 @@ interface Symbol { projectReferences: readonly ProjectReference[] | undefined; resolvedProjectReferences: readonly (ReadablePersistedProgramResolvedProjectReference | undefined)[] | undefined; missingPaths: readonly string[] | undefined; - resolvedTypeReferenceDirectives: MapLike | undefined; + resolvedTypeReferenceDirectives: readonly ReadablePersistedProgramResolutionEntry[] | undefined; fileProcessingDiagnostics: readonly ReadablePersistedProgramFilePreprocessingDiagnostic[] | undefined; - resolutions: readonly PersistedProgramResolution[] | undefined; + resolutions: readonly ReadablePersistedProgramResolution[] | undefined; } interface ReadableProgramBuildInfo { fileNames: readonly string[]; @@ -351,6 +368,7 @@ interface Symbol { filesByName![path] = path; } }); + const resolutions = buildInfo.program?.peristedProgram?.resolutions?.map(toReadablePersistedProgramResolution); const program: ReadableProgramBuildInfo | undefined = buildInfo.program && { fileNames: buildInfo.program.fileNames, fileNamesList, @@ -377,7 +395,9 @@ interface Symbol { projectReferences: buildInfo.program.peristedProgram.projectReferences?.map(toProjectReference), resolvedProjectReferences: buildInfo.program.peristedProgram.resolvedProjectReferences?.map(toReadablePersistedProgramResolvedProjectReference), missingPaths: buildInfo.program.peristedProgram.missingPaths?.map(toFileName), + resolvedTypeReferenceDirectives: buildInfo.program.peristedProgram.resolvedTypeReferenceDirectives?.map(toReadablePersistedProgramResolutionEntry), fileProcessingDiagnostics: buildInfo.program.peristedProgram.fileProcessingDiagnostics?.map(toReadablePersistedProgramFilePreprocessingDiagnostic), + resolutions }, }; const version = buildInfo.version === ts.version ? fakes.version : buildInfo.version; @@ -415,6 +435,8 @@ interface Symbol { path: toFileName(file.path), resolvedPath: toFileName(file.resolvedPath), redirectInfo: file.redirectInfo && { redirectTarget: { path: toFileName(file.redirectInfo.redirectTarget.path) } }, + resolvedModules: file.resolvedModules?.map(toReadablePersistedProgramResolutionEntry), + resolvedTypeReferenceDirectiveNames: file.resolvedTypeReferenceDirectiveNames?.map(toReadablePersistedProgramResolutionEntry), redirectTargets: file.redirectTargets?.map(toFileName), includeReasons: file.includeReasons.map(toReadablePersistedProgramFileIncludeReason), }; @@ -479,6 +501,25 @@ interface Symbol { function toProjectReference(ref: PersistedProgramProjectReference): ProjectReference { return { ...ref, path: toFileName(ref.path) }; } + + function toReadablePersistedProgramResolution(resolution: PersistedProgramResolution): ReadablePersistedProgramResolution { + return { + resolvedModule: resolution.resolvedModule && { + ...resolution.resolvedModule, + resolvedFileName: toFileName(resolution.resolvedModule.resolvedFileName), + originalPath: resolution.resolvedModule.originalPath ? toFileName(resolution.resolvedModule.originalPath) : undefined, + }, + resolvedTypeReferenceDirective: resolution.resolvedTypeReferenceDirective && { + ...resolution.resolvedTypeReferenceDirective, + resolvedFileName: resolution.resolvedTypeReferenceDirective.resolvedFileName ? toFileName(resolution.resolvedTypeReferenceDirective.resolvedFileName) : undefined, + }, + failedLookupLocations: resolution.failedLookupLocations?.map(toFileName) + }; + } + + function toReadablePersistedProgramResolutionEntry([name, resolutionId]: PersistedProgramResolutionEntry): ReadablePersistedProgramResolutionEntry { + return [name, resolutions![resolutionId - 1]]; + } } export function toPathWithSystem(sys: System, fileName: string): Path { diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 26f9300b35e88..3c303b50839e7 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -86,7 +86,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -100,7 +100,12 @@ No cached semantic diagnostics in the builder:: "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -214,10 +219,29 @@ No cached semantic diagnostics in the builder:: "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -282,10 +306,29 @@ No cached semantic diagnostics in the builder:: "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -321,7 +364,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 4000 + "size": 4002 } @@ -405,7 +448,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -419,7 +462,12 @@ No cached semantic diagnostics in the builder:: "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -533,10 +581,29 @@ No cached semantic diagnostics in the builder:: "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -601,10 +668,29 @@ No cached semantic diagnostics in the builder:: "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -640,7 +726,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 4026 + "size": 4028 } @@ -698,7 +784,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -714,7 +800,12 @@ No cached semantic diagnostics in the builder:: "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -836,10 +927,29 @@ No cached semantic diagnostics in the builder:: "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -927,11 +1037,38 @@ No cached semantic diagnostics in the builder:: "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -974,7 +1111,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 4548 + "size": 4536 } @@ -1025,7 +1162,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1043,7 +1180,11 @@ No cached semantic diagnostics in the builder:: "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1168,10 +1309,29 @@ No cached semantic diagnostics in the builder:: "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1273,11 +1433,38 @@ No cached semantic diagnostics in the builder:: "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1321,7 +1508,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 4870 + "size": 4834 } @@ -1336,7 +1523,7 @@ exitCode:: ExitStatus.Success //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[]},"version":"FakeTSVersion"} @@ -1443,7 +1630,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1104,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1104,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":10,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1702,10 +1889,26 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1793,11 +1996,35 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1838,7 +2065,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5192 + "size": 5144 } @@ -1912,7 +2139,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1136,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1136,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":10,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -2172,10 +2399,26 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -2263,11 +2506,35 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -2308,6 +2575,6 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5216 + "size": 5168 } diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 28d5191035040..70b0708fa9230 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -92,7 +92,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,7 +106,12 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -289,10 +294,29 @@ Semantic diagnostics in builder refreshed for:: "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -357,10 +381,29 @@ Semantic diagnostics in builder refreshed for:: "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -396,7 +439,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 4427 + "size": 4429 } @@ -481,7 +524,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -495,7 +538,12 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -675,10 +723,29 @@ Semantic diagnostics in builder refreshed for:: "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -743,10 +810,29 @@ Semantic diagnostics in builder refreshed for:: "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -782,7 +868,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 4500 + "size": 4502 } @@ -842,7 +928,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -858,7 +944,12 @@ Semantic diagnostics in builder refreshed for:: "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1052,10 +1143,29 @@ Semantic diagnostics in builder refreshed for:: "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1143,11 +1253,38 @@ Semantic diagnostics in builder refreshed for:: "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1190,7 +1327,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 5081 + "size": 5069 } @@ -1242,7 +1379,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[8,1],[7,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[8,1],[7,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1260,7 +1397,11 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1463,10 +1604,29 @@ Semantic diagnostics in builder refreshed for:: "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1568,11 +1728,38 @@ Semantic diagnostics in builder refreshed for:: "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1616,7 +1803,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 5470 + "size": 5434 } @@ -1631,7 +1818,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[8,1],[7,1],[5,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[8,1],[7,1],[5,1]]},"version":"FakeTSVersion"} @@ -1771,7 +1958,7 @@ interface SomeType { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[[6,2]],"semanticDiagnosticsPerFile":[1,4,3,2,6,8,7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[[6,2]],"semanticDiagnosticsPerFile":[1,4,3,2,6,8,7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":10,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1963,10 +2150,26 @@ interface SomeType { "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -2054,11 +2257,35 @@ interface SomeType { "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -2099,7 +2326,7 @@ interface SomeType { } }, "version": "FakeTSVersion", - "size": 4951 + "size": 4903 } @@ -2148,7 +2375,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[[6,2]],"semanticDiagnosticsPerFile":[1,4,3,2,6,8,7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[[6,2]],"semanticDiagnosticsPerFile":[1,4,3,2,6,8,7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":10,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2340,10 +2567,26 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -2431,11 +2674,35 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -2476,6 +2743,6 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4975 + "size": 4927 } diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js index ade8d56ed5001..4968fe3cfa355 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js @@ -333,7 +333,7 @@ exports.m = mod; {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json","../core","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":[4],"filesByName":[9],"projectReferences":[{"path":10,"originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[7,5,11],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json","../core","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":[["../core/index",1],["../core/anotherModule",2]],"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":[4],"filesByName":[9],"projectReferences":[{"path":10,"originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[7,5,11],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":5,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -466,10 +466,26 @@ exports.m = mod; "text": "../core/anotherModule" } ], - "resolvedModules": { - "../core/index": 0, - "../core/anotherModule": 1 - }, + "resolvedModules": [ + [ + "../core/index", + { + "resolvedModule": { + "resolvedFileName": "../core/index.ts", + "extension": ".ts" + } + } + ], + [ + "../core/anotherModule", + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -529,7 +545,7 @@ exports.m = mod; } }, "version": "FakeTSVersion", - "size": 3842 + "size": 3804 } //// [/src/tests/index.d.ts] @@ -550,7 +566,7 @@ exports.m = mod; //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json","../core","../logic","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":[5],"filesByName":[11,12],"projectReferences":[{"path":13,"originalPath":"../core"},{"path":14,"originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":[10],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":13,"originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json","../core","../logic","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":[["../core/anotherModule",1]],"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":[["../core/index",2],["../logic/index",3],["../core/anotherModule",4]],"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":[5],"filesByName":[11,12],"projectReferences":[{"path":13,"originalPath":"../core"},{"path":14,"originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":[10],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":13,"originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":6,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":10,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -704,9 +720,17 @@ exports.m = mod; "text": "../core/anotherModule" } ], - "resolvedModules": { - "../core/anotherModule": 0 - }, + "resolvedModules": [ + [ + "../core/anotherModule", + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "Import", @@ -736,11 +760,35 @@ exports.m = mod; "text": "../core/anotherModule" } ], - "resolvedModules": { - "../core/index": 1, - "../logic/index": 2, - "../core/anotherModule": 3 - }, + "resolvedModules": [ + [ + "../core/index", + { + "resolvedModule": { + "resolvedFileName": "../core/index.ts", + "extension": ".ts" + } + } + ], + [ + "../logic/index", + { + "resolvedModule": { + "resolvedFileName": "../logic/index.ts", + "extension": ".ts" + } + } + ], + [ + "../core/anotherModule", + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -864,7 +912,7 @@ exports.m = mod; } }, "version": "FakeTSVersion", - "size": 5377 + "size": 5301 } @@ -1074,7 +1122,7 @@ exports.someClass = someClass; //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json","../core","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":[4],"filesByName":[9],"projectReferences":[{"path":10,"originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[7,5,11],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json","../core","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":[["../core/index",1],["../core/anotherModule",2]],"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":[4],"filesByName":[9],"projectReferences":[{"path":10,"originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[7,5,11],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":5,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1209,10 +1257,26 @@ exports.someClass = someClass; "text": "../core/anotherModule" } ], - "resolvedModules": { - "../core/index": 0, - "../core/anotherModule": 1 - }, + "resolvedModules": [ + [ + "../core/index", + { + "resolvedModule": { + "resolvedFileName": "../core/index.ts", + "extension": ".ts" + } + } + ], + [ + "../core/anotherModule", + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1272,13 +1336,13 @@ exports.someClass = someClass; } }, "version": "FakeTSVersion", - "size": 4107 + "size": 4069 } //// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json","../core","../logic","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":[5],"filesByName":[11,12],"projectReferences":[{"path":13,"originalPath":"../core"},{"path":14,"originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":[10],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":13,"originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json","../core","../logic","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":[["../core/anotherModule",1]],"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":[["../core/index",2],["../logic/index",3],["../core/anotherModule",4]],"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":[5],"filesByName":[11,12],"projectReferences":[{"path":13,"originalPath":"../core"},{"path":14,"originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":[10],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":13,"originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":6,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":10,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1430,9 +1494,17 @@ exports.someClass = someClass; "text": "../core/anotherModule" } ], - "resolvedModules": { - "../core/anotherModule": 0 - }, + "resolvedModules": [ + [ + "../core/anotherModule", + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "Import", @@ -1462,11 +1534,35 @@ exports.someClass = someClass; "text": "../core/anotherModule" } ], - "resolvedModules": { - "../core/index": 1, - "../logic/index": 2, - "../core/anotherModule": 3 - }, + "resolvedModules": [ + [ + "../core/index", + { + "resolvedModule": { + "resolvedFileName": "../core/index.ts", + "extension": ".ts" + } + } + ], + [ + "../logic/index", + { + "resolvedModule": { + "resolvedFileName": "../logic/index.ts", + "extension": ".ts" + } + } + ], + [ + "../core/anotherModule", + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1590,7 +1686,7 @@ exports.someClass = someClass; } }, "version": "FakeTSVersion", - "size": 5581 + "size": 5505 } @@ -1999,7 +2095,7 @@ var someClass2 = /** @class */ (function () { //// [/src/logic/index.js] file written with same contents //// [/src/logic/index.js.map] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json","../core","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":0,"../core/anotherModule":1},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":[4],"filesByName":[9],"projectReferences":[{"path":10,"originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[7,5,11],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../core/tsconfig.json","../core","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":5,"path":5,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0}]},{"fileName":6,"originalFileName":7,"path":8,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":[["../core/index",1],["../core/anotherModule",2]],"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":[4],"filesByName":[9],"projectReferences":[{"path":10,"originalPath":"../core"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[7,5,11],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":9}}],"resolutions":[{"resolvedModule":{"resolvedFileName":5,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2134,10 +2230,26 @@ var someClass2 = /** @class */ (function () { "text": "../core/anotherModule" } ], - "resolvedModules": { - "../core/index": 0, - "../core/anotherModule": 1 - }, + "resolvedModules": [ + [ + "../core/index", + { + "resolvedModule": { + "resolvedFileName": "../core/index.ts", + "extension": ".ts" + } + } + ], + [ + "../core/anotherModule", + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -2197,13 +2309,13 @@ var someClass2 = /** @class */ (function () { } }, "version": "FakeTSVersion", - "size": 4113 + "size": 4075 } //// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json","../core","../logic","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/anotherModule":0},"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":{"../core/index":1,"../logic/index":2,"../core/anotherModule":3},"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":[5],"filesByName":[11,12],"projectReferences":[{"path":13,"originalPath":"../core"},{"path":14,"originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":[10],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":13,"originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../logic/index.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"../core/anotherModule.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts","../core/index.ts","../core/anotherModule.d.ts","../core/anotherModule.ts","../core/anothermodule.ts","../logic/index.ts","../core/tsconfig.json","../logic/tsconfig.json","../core","../logic","../core/some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":2,"originalFileName":6,"path":6,"resolvedPath":2,"version":"-9469451737-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClassNew {\r\n}\r\n//# sourceMappingURL=index.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0}]},{"fileName":7,"originalFileName":8,"path":9,"resolvedPath":3,"version":"7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","flags":0,"includeReasons":[{"kind":3,"file":10,"index":0},{"kind":3,"file":5,"index":2}]},{"fileName":4,"originalFileName":10,"path":10,"resolvedPath":4,"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":[["../core/anotherModule",1]],"includeReasons":[{"kind":3,"file":5,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","flags":0,"imports":[{"kind":10,"text":"../core/index"},{"kind":10,"text":"../logic/index"},{"kind":10,"text":"../core/anotherModule"}],"resolvedModules":[["../core/index",2],["../logic/index",3],["../core/anotherModule",4]],"includeReasons":[{"kind":0,"index":0}]}],"rootFileNames":[5],"filesByName":[11,12],"projectReferences":[{"path":13,"originalPath":"../core"},{"path":14,"originalPath":"../logic"}],"resolvedProjectReferences":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}},{"commandLine":{"fileNames":[10],"options":{"composite":true,"configFilePath":"../logic/tsconfig.json","declaration":true,"forceConsistentCasingInFileNames":true,"persistResolutions":true,"skipDefaultLibCheck":true,"sourceMap":true},"projectReferences":[{"path":13,"originalPath":"../core"}]},"sourceFile":{"path":12},"references":[{"commandLine":{"fileNames":[8,6,15],"options":{"composite":true,"configFilePath":"../core/tsconfig.json","declaration":true,"declarationMap":true,"persistResolutions":true,"skipDefaultLibCheck":true}},"sourceFile":{"path":11}}]}],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":6,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":10,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2355,9 +2467,17 @@ var someClass2 = /** @class */ (function () { "text": "../core/anotherModule" } ], - "resolvedModules": { - "../core/anotherModule": 0 - }, + "resolvedModules": [ + [ + "../core/anotherModule", + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "Import", @@ -2387,11 +2507,35 @@ var someClass2 = /** @class */ (function () { "text": "../core/anotherModule" } ], - "resolvedModules": { - "../core/index": 1, - "../logic/index": 2, - "../core/anotherModule": 3 - }, + "resolvedModules": [ + [ + "../core/index", + { + "resolvedModule": { + "resolvedFileName": "../core/index.ts", + "extension": ".ts" + } + } + ], + [ + "../logic/index", + { + "resolvedModule": { + "resolvedFileName": "../logic/index.ts", + "extension": ".ts" + } + } + ], + [ + "../core/anotherModule", + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -2515,6 +2659,6 @@ var someClass2 = /** @class */ (function () { } }, "version": "FakeTSVersion", - "size": 5587 + "size": 5511 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index 33ee69b47fb4f..9746e207d04f4 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -34,7 +34,7 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics @@ -117,7 +117,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -131,7 +131,12 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -247,10 +252,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -315,10 +339,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -354,7 +397,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3888 + "size": 3890 } @@ -425,7 +468,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -439,7 +482,12 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -555,10 +603,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -623,10 +690,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -662,7 +748,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3914 + "size": 3916 } @@ -748,7 +834,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -764,7 +850,12 @@ exitCode:: ExitStatus.undefined "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -888,10 +979,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -979,11 +1089,38 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1026,7 +1163,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4436 + "size": 4424 } @@ -1105,7 +1242,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1123,7 +1260,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1250,10 +1391,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1355,11 +1515,38 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1403,6 +1590,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4758 + "size": 4722 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js index 45a3ab7ca4ff3..4502424cf9cf0 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -34,7 +34,7 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]]},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics @@ -117,7 +117,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -131,7 +131,12 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -316,10 +321,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -384,10 +408,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -423,7 +466,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4315 + "size": 4317 } @@ -495,7 +538,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -509,7 +552,12 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -691,10 +739,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -759,10 +826,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -798,7 +884,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4386 + "size": 4388 } @@ -886,7 +972,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -902,7 +988,12 @@ exitCode:: ExitStatus.undefined "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1098,10 +1189,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1189,11 +1299,38 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1236,7 +1373,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4965 + "size": 4953 } @@ -1316,7 +1453,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[8,1],[7,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[8,1],[7,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1334,7 +1471,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1539,10 +1680,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1644,11 +1804,38 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1692,6 +1879,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5352 + "size": 5316 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 80cff8db51415..c4890642ff823 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -34,7 +34,7 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics @@ -166,7 +166,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -180,7 +180,12 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -296,10 +301,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -364,10 +388,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -403,7 +446,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3914 + "size": 3916 } @@ -489,7 +532,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -505,7 +548,12 @@ exitCode:: ExitStatus.undefined "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -629,10 +677,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -720,11 +787,38 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -767,7 +861,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4436 + "size": 4424 } @@ -846,7 +940,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -864,7 +958,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -991,10 +1089,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1096,11 +1213,38 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1144,6 +1288,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4758 + "size": 4722 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index 90c055588aade..c3e1c40fdec21 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -34,7 +34,7 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics @@ -167,7 +167,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -181,7 +181,12 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -363,10 +368,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -431,10 +455,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -470,7 +513,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4386 + "size": 4388 } @@ -558,7 +601,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -574,7 +617,12 @@ exitCode:: ExitStatus.undefined "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -770,10 +818,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -861,11 +928,38 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -908,7 +1002,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4965 + "size": 4953 } @@ -988,7 +1082,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[8,1],[7,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[8,1],[7,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1006,7 +1100,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1211,10 +1309,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1316,11 +1433,38 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1364,6 +1508,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5352 + "size": 5316 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 4f3338bedbbce..c94baccd6cad2 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -114,7 +114,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -128,7 +128,12 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -244,10 +249,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -312,10 +336,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -351,7 +394,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3888 + "size": 3890 } @@ -422,7 +465,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -436,7 +479,12 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -552,10 +600,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -620,10 +687,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -659,7 +745,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3914 + "size": 3916 } @@ -745,7 +831,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -761,7 +847,12 @@ exitCode:: ExitStatus.undefined "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -885,10 +976,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -976,11 +1086,38 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1023,7 +1160,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4436 + "size": 4424 } @@ -1102,7 +1239,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1120,7 +1257,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1247,10 +1388,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1352,11 +1512,38 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1400,6 +1587,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4758 + "size": 4722 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index f0ae6dca9890a..eb7d1bac86c0a 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -120,7 +120,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -134,7 +134,12 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -319,10 +324,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -387,10 +411,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -426,7 +469,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4315 + "size": 4317 } @@ -498,7 +541,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -512,7 +555,12 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -694,10 +742,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -762,10 +829,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -801,7 +887,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4386 + "size": 4388 } @@ -889,7 +975,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -905,7 +991,12 @@ exitCode:: ExitStatus.undefined "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1101,10 +1192,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1192,11 +1302,38 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1239,7 +1376,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4965 + "size": 4953 } @@ -1319,7 +1456,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[8,1],[7,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[8,1],[7,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1337,7 +1474,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1542,10 +1683,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1647,11 +1807,38 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1695,6 +1882,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5352 + "size": 5316 } diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index a28e158b9c06c..f69bbb9d2a541 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -115,7 +115,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":567,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":567,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -194,7 +194,12 @@ declare module "src/main" { } "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -309,10 +314,29 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -377,10 +401,29 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -416,7 +459,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4299 + "size": 4301 } @@ -526,7 +569,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":633,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":633,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -606,7 +649,12 @@ declare module "src/main" { } "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -721,10 +769,29 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -789,10 +856,29 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -828,7 +914,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4325 + "size": 4327 } @@ -926,7 +1012,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":852,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":263,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":852,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":263,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1019,7 +1105,12 @@ declare module "src/main" { } "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1142,10 +1233,29 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1233,11 +1343,38 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1280,7 +1417,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4866 + "size": 4854 } @@ -1381,7 +1518,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1104,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1104,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1487,7 +1624,11 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1613,10 +1754,29 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1718,11 +1878,38 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1766,7 +1953,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5213 + "size": 5177 } @@ -1781,7 +1968,7 @@ exitCode:: ExitStatus.Success //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1104,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1104,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[]},"version":"FakeTSVersion"} @@ -1888,7 +2075,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1104,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1104,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":10,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -2148,10 +2335,26 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -2239,11 +2442,35 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -2284,7 +2511,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5207 + "size": 5159 } @@ -2358,7 +2585,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1136,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1136,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":10,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -2619,10 +2846,26 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -2710,11 +2953,35 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -2755,6 +3022,6 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5231 + "size": 5183 } diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index a36cb55396213..9af0e617a984c 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -144,7 +144,7 @@ interface SomeType { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -158,7 +158,12 @@ interface SomeType { "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -320,10 +325,29 @@ interface SomeType { "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -388,10 +412,29 @@ interface SomeType { "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -427,7 +470,7 @@ interface SomeType { } }, "version": "FakeTSVersion", - "size": 4383 + "size": 4385 } @@ -521,7 +564,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -535,7 +578,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -694,10 +742,29 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -762,10 +829,29 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -801,7 +887,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4456 + "size": 4458 } @@ -877,7 +963,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -893,7 +979,12 @@ define(["require", "exports"], function (require, exports) { "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1062,10 +1153,29 @@ define(["require", "exports"], function (require, exports) { "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1153,11 +1263,38 @@ define(["require", "exports"], function (require, exports) { "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1200,7 +1337,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 5031 + "size": 5019 } @@ -1266,7 +1403,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1284,7 +1421,11 @@ define(["require", "exports"], function (require, exports) { "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1458,10 +1599,29 @@ define(["require", "exports"], function (require, exports) { "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1563,11 +1723,38 @@ define(["require", "exports"], function (require, exports) { "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1611,7 +1798,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 5414 + "size": 5378 } @@ -1626,7 +1813,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5]},"version":"FakeTSVersion"} @@ -1689,7 +1876,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/src/main.d.ts] file written with same contents //// [/src/project/src/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[[6,2]],"semanticDiagnosticsPerFile":[1,4,3,2,6,8,7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[[6,2]],"semanticDiagnosticsPerFile":[1,4,3,2,6,8,7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":10,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1882,10 +2069,26 @@ Semantic diagnostics in builder refreshed for:: "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1973,11 +2176,35 @@ Semantic diagnostics in builder refreshed for:: "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -2018,7 +2245,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 4966 + "size": 4918 } @@ -2067,7 +2294,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[[6,2]],"semanticDiagnosticsPerFile":[1,4,3,2,6,8,7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/fileNotFound.ts","extension":".ts"}},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[[6,2]],"semanticDiagnosticsPerFile":[1,4,3,2,6,8,7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":10,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2260,10 +2487,26 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -2351,11 +2594,35 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -2396,6 +2663,6 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4990 + "size": 4942 } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index 108f638c5d629..a87f559306d0a 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -63,7 +63,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":551,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":551,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -163,7 +163,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":551,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":551,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -205,7 +205,12 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -322,10 +327,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -390,10 +414,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -429,7 +472,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4187 + "size": 4189 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -567,7 +610,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":616,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":616,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -609,7 +652,12 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -726,10 +774,29 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -794,10 +861,29 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -833,7 +919,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 4213 + "size": 4215 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1008,7 +1094,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":828,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":253,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":828,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":253,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1053,7 +1139,12 @@ declare module "src/main" { } "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1178,10 +1269,29 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1269,11 +1379,38 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1316,7 +1453,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4754 + "size": 4742 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1503,7 +1640,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1073,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":333,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1073,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":333,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1551,7 +1688,11 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1679,10 +1820,29 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1784,11 +1944,38 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1832,7 +2019,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5101 + "size": 5065 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js index dcb35dd853ea9..868096e64f32a 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -86,7 +86,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -184,7 +184,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -198,7 +198,12 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -362,10 +367,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -430,10 +454,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -469,7 +512,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4271 + "size": 4273 } @@ -559,7 +602,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -573,7 +616,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -734,10 +782,29 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -802,10 +869,29 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -841,7 +927,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4342 + "size": 4344 } @@ -948,7 +1034,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -964,7 +1050,12 @@ exitCode:: ExitStatus.undefined "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1135,10 +1226,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1226,11 +1336,38 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1273,7 +1410,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4915 + "size": 4903 } //// [/user/username/projects/myproject/src/newFile.js] @@ -1383,7 +1520,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1401,7 +1538,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1577,10 +1718,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1682,11 +1842,38 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1730,7 +1917,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5296 + "size": 5260 } //// [/user/username/projects/myproject/src/fileNotFound.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 9fc4cf5026555..6a9e7eb09ad30 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -63,7 +63,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":551,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":551,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -142,7 +142,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":551,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":551,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -184,7 +184,12 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -301,10 +306,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -369,10 +393,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -408,7 +451,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4187 + "size": 4189 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -546,7 +589,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":616,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":616,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -588,7 +631,12 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -705,10 +753,29 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -773,10 +840,29 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -812,7 +898,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 4213 + "size": 4215 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -987,7 +1073,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":828,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":253,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":828,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":253,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1032,7 +1118,12 @@ declare module "src/main" { } "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1157,10 +1248,29 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1248,11 +1358,38 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1295,7 +1432,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4754 + "size": 4742 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1482,7 +1619,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1073,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":333,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1073,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":333,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1530,7 +1667,11 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1658,10 +1799,29 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1763,11 +1923,38 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1811,7 +1998,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5101 + "size": 5065 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index 759f5db0f4a29..5f81dd2f56a6d 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -86,7 +86,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -249,7 +249,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -263,7 +263,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -424,10 +429,29 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -492,10 +516,29 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -531,7 +574,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4342 + "size": 4344 } @@ -638,7 +681,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -654,7 +697,12 @@ exitCode:: ExitStatus.undefined "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -825,10 +873,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -916,11 +983,38 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -963,7 +1057,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4915 + "size": 4903 } //// [/user/username/projects/myproject/src/newFile.js] @@ -1073,7 +1167,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1091,7 +1185,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1267,10 +1365,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1372,11 +1489,38 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1420,7 +1564,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5296 + "size": 5260 } //// [/user/username/projects/myproject/src/fileNotFound.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 64d68a0c1861d..c081afe2f277f 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -158,7 +158,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":551,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":551,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -200,7 +200,12 @@ declare module "src/main" { } "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -317,10 +322,29 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -385,10 +409,29 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -424,7 +467,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4187 + "size": 4189 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -562,7 +605,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":616,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":616,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -604,7 +647,12 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -721,10 +769,29 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -789,10 +856,29 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -828,7 +914,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 4213 + "size": 4215 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1003,7 +1089,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":828,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":253,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":828,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":253,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1048,7 +1134,12 @@ declare module "src/main" { } "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1173,10 +1264,29 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1264,11 +1374,38 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1311,7 +1448,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4754 + "size": 4742 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1498,7 +1635,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1073,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":333,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1073,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":333,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1546,7 +1683,11 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1674,10 +1815,29 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1779,11 +1939,38 @@ declare module "src/main" { } "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1827,7 +2014,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5101 + "size": 5065 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index ffd47471ad557..b0ac25df926f0 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -187,7 +187,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -201,7 +201,12 @@ export {}; "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -365,10 +370,29 @@ export {}; "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -433,10 +457,29 @@ export {}; "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -472,7 +515,7 @@ export {}; } }, "version": "FakeTSVersion", - "size": 4271 + "size": 4273 } @@ -562,7 +605,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -576,7 +619,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts" + "./src/fileWithRef.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -737,10 +785,29 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -805,10 +872,29 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -844,7 +930,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4342 + "size": 4344 } @@ -951,7 +1037,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -967,7 +1053,12 @@ exitCode:: ExitStatus.undefined "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1138,10 +1229,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1229,11 +1339,38 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1276,7 +1413,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4915 + "size": 4903 } //// [/user/username/projects/myproject/src/newFile.js] @@ -1386,7 +1523,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":{"./newFile":2,"./filePresent":0,"./fileNotFound":1},"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":"./src/filePresent.ts","extension":".ts"}},{"failedLookupLocations":["./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"]},{"resolvedModule":{"resolvedFileName":"./src/newFile.ts","extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1404,7 +1541,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" ], "fileNamesList": [ [ @@ -1580,10 +1721,29 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1685,11 +1845,38 @@ exitCode:: ExitStatus.undefined "text": "./fileNotFound" } ], - "resolvedModules": { - "./newFile": 2, - "./filePresent": 0, - "./fileNotFound": 1 - }, + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -1733,7 +1920,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5296 + "size": 5260 } //// [/user/username/projects/myproject/src/fileNotFound.js] From a3e7aaa482258d7f490330955791c20cb820aafa Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 22 Mar 2021 13:25:29 -0700 Subject: [PATCH 33/48] Refactor --- src/compiler/builder.ts | 27 ++++++--------------- src/testRunner/unittests/tsbuild/helpers.ts | 27 +++++---------------- 2 files changed, 14 insertions(+), 40 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index b647276530988..f2bb0fcbc266d 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -883,39 +883,28 @@ namespace ts { } /** If key and value are same, just use ProgramBuildInfoFileId otherwise pair of key followed by value */ export type PersistedProgramFileByNameEntry = ProgramBuildInfoFileId | [fileId: ProgramBuildInfoFileId, file: ProgramBuildInfoFileId | typeof missingSourceOfProjectReferenceRedirect | typeof missingFile]; - export interface ResolvedModuleWithFailedLookupLocations extends ResolutionWithFailedLookupLocations { } - export interface ResolvedTypeReferenceDirectiveWithFailedLookupLocations extends ResolutionWithFailedLookupLocations { } - export interface PersistedProgramReferencedFile { - kind: ReferencedFileKind; + export type PersistedProgramReferencedFile = Omit & { file: ProgramBuildInfoFileId; - index: number; - } + }; export type PersistedProgramFileIncludeReason = RootFile | LibFile | ProjectReferenceFile | PersistedProgramReferencedFile | AutomaticTypeDirectiveFile; - export interface PersistedProgramFilePreprocessingReferencedDiagnostic { - kind: FilePreprocessingDiagnosticsKind.FilePreprocessingReferencedDiagnostic; + export type PersistedProgramFilePreprocessingReferencedDiagnostic = Omit & { reason: PersistedProgramReferencedFile; diagnostic: keyof typeof Diagnostics; - args?: (string | number | undefined)[]; - } - export interface PersistedProgramFilePreprocessingFileExplainingDiagnostic { - kind: FilePreprocessingDiagnosticsKind.FilePreprocessingFileExplainingDiagnostic; + }; + export type PersistedProgramFilePreprocessingFileExplainingDiagnostic = Omit & { file?: ProgramBuildInfoFileId; fileProcessingReason: PersistedProgramFileIncludeReason; diagnostic: keyof typeof Diagnostics; - args?: (string | number | undefined)[]; - } + }; export type PersistedProgramFilePreprocessingDiagnostic = PersistedProgramFilePreprocessingReferencedDiagnostic | PersistedProgramFilePreprocessingFileExplainingDiagnostic; - export interface PersistedProgramProjectReference { + export type PersistedProgramProjectReference = Omit & { path: ProgramBuildInfoAbsoluteFileId; - originalPath?: string; - prepend?: boolean; - circular?: boolean; - } + }; export interface PersistedProgramResolvedProjectReference { commandLine: { fileNames: readonly ProgramBuildInfoAbsoluteFileId[] | undefined; diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index c2e9e6ce41ef5..30b32424e30d9 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -255,28 +255,17 @@ interface Symbol { } type ReadablePersistedProgramResolution = ReadablePersistedProgramResolvedModuleWithFailedLookupLocations & ReadablePersistedProgramResolvedTypeReferenceDirectiveWithFailedLookupLocations; type ReadablePersistedProgramResolutionEntry = [name: string, resolution: ReadablePersistedProgramResolution]; - interface ReadablePersistedProgramSourceFile { + type ReadablePersistedProgramSourceFile = Omit & { fileName: string; originalFileName: string; path: string; resolvedPath: string; - flags: NodeFlags; - version: string; - typeReferenceDirectives?: readonly string[]; - libReferenceDirectives?: readonly string[]; - referencedFiles?: readonly string[]; - imports?: readonly StringLiteralLikeOfProgramFromBuildInfo[]; - moduleAugmentations?: readonly ModuleNameOfProgramFromBuildInfo[]; - ambientModuleNames?: readonly string[]; - hasNoDefaultLib?: true; resolvedModules?: readonly ReadablePersistedProgramResolutionEntry[]; resolvedTypeReferenceDirectiveNames?: readonly ReadablePersistedProgramResolutionEntry[]; redirectInfo?: { readonly redirectTarget: { readonly path: string }; }; includeReasons: readonly ReadablePersistedProgramFileIncludeReason[]; - isSourceFileFromExternalLibraryPath?: true; redirectTargets?: readonly string[]; - packageName?: string; - } + }; enum ReadableFileIncludeKind { RootFile = "RootFile", SourceFromProjectReference = "SourceFromProjectReference", @@ -308,19 +297,15 @@ interface Symbol { FilePreprocessingReferencedDiagnostic = "FilePreprocessingReferencedDiagnostic", FilePreprocessingFileExplainingDiagnostic = "FilePreprocessingFileExplainingDiagnostic" } - interface ReadablePersistedProgramFilePreprocessingReferencedDiagnostic { + type ReadablePersistedProgramFilePreprocessingReferencedDiagnostic = Omit & { kind: ReadableFilePreprocessingDiagnosticsKind.FilePreprocessingReferencedDiagnostic; reason: ReadablePersistedProgramReferencedFile; - diagnostic: keyof typeof Diagnostics; - args?: (string | number | undefined)[]; - } - interface ReadablePersistedProgramFilePreprocessingFileExplainingDiagnostic { + }; + type ReadablePersistedProgramFilePreprocessingFileExplainingDiagnostic = Omit & { kind: ReadableFilePreprocessingDiagnosticsKind.FilePreprocessingFileExplainingDiagnostic; file?: string; fileProcessingReason: ReadablePersistedProgramFileIncludeReason; - diagnostic: keyof typeof Diagnostics; - args?: (string | number | undefined)[]; - } + }; type ReadablePersistedProgramFilePreprocessingDiagnostic = ReadablePersistedProgramFilePreprocessingReferencedDiagnostic | ReadablePersistedProgramFilePreprocessingFileExplainingDiagnostic; interface ReadablePersistedProgramResolvedProjectReference { commandLine: { From 9d7cdadc32a0d2fd0246698dbed1d96d181c20f6 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 4 Mar 2021 15:52:34 -0800 Subject: [PATCH 34/48] More tests --- .../unittests/tsbuild/persistResolutions.ts | 97 + .../tsbuildWatch/persistResolutions.ts | 140 + .../unittests/tsc/persistResolutions.ts | 89 +- .../unittests/tscWatch/persistResolutions.ts | 140 + ...nd-uses-it-for-new-program-with-outFile.js | 3280 +++++++++++++- ...-resolution-and-uses-it-for-new-program.js | 3837 +++++++++++++++- ...er-resolutions-are-cleaned-with-outFile.js | 2327 +++++++++- ...can-build-after-resolutions-are-cleaned.js | 2801 +++++++++++- ...-saved-in-tsbuildinfo-file-with-outFile.js | 2193 ++++++++- ...ons-have-been-saved-in-tsbuildinfo-file.js | 2641 ++++++++++- ...nd-uses-it-for-new-program-with-outFile.js | 2325 +++++++++- ...-resolution-and-uses-it-for-new-program.js | 2802 +++++++++++- ...nd-uses-it-for-new-program-with-outFile.js | 3957 ++++++++++++++++- ...-resolution-and-uses-it-for-new-program.js | 3775 +++++++++++++++- ...er-resolutions-are-cleaned-with-outFile.js | 2920 +++++++++++- ...can-build-after-resolutions-are-cleaned.js | 2893 +++++++++++- ...-saved-in-tsbuildinfo-file-with-outFile.js | 2920 +++++++++++- ...ons-have-been-saved-in-tsbuildinfo-file.js | 2741 +++++++++++- ...nd-uses-it-for-new-program-with-outFile.js | 2918 +++++++++++- ...-resolution-and-uses-it-for-new-program.js | 2894 +++++++++++- 20 files changed, 46135 insertions(+), 1555 deletions(-) diff --git a/src/testRunner/unittests/tsbuild/persistResolutions.ts b/src/testRunner/unittests/tsbuild/persistResolutions.ts index 38688febbd553..b6ae2ae4b31e3 100644 --- a/src/testRunner/unittests/tsbuild/persistResolutions.ts +++ b/src/testRunner/unittests/tsbuild/persistResolutions.ts @@ -12,6 +12,17 @@ namespace ts { "/src/project/src/filePresent.ts": `export function something() { return 10; }`, "/src/project/src/fileWithRef.ts": `/// `, "/src/project/src/types.ts": `interface SomeType {}`, + "/src/project/src/globalMain.ts": Utils.dedent` + /// + /// + function globalMain() { } + `, + "/src/project/src/globalAnotherFileWithSameReferenes.ts": Utils.dedent` + /// + /// + function globalAnotherFileWithSameReferenes() { } + `, + "/src/project/src/globalFilePresent.ts": `function globalSomething() { return 10; }`, "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { module: "amd", @@ -31,6 +42,44 @@ namespace ts { commandLineArgs: ["--b", "src/project"], incrementalScenarios: [ noChangeRun, + { + subScenario: "Modify globalMain file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => appendText(fs, `/src/project/src/globalMain.ts`, `globalSomething();`), + }, + { + subScenario: "Add new globalFile and update globalMain file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => { + fs.writeFileSync(`/src/project/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + prependText(fs, `/src/project/src/globalMain.ts`, `/// +`); + appendText(fs, `/src/project/src/globalMain.ts`, `globalFoo();`); + }, + }, + { + subScenario: "Write file that could not be resolved by referenced path", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.writeFileSync(`/src/project/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), + }, + { + subScenario: "Clean resolutions", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: noop, + commandLineArgs: ["--b", "src/project", "--cleanPersistedProgram"] + }, + { + subScenario: "Clean resolutions again", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: noop, + commandLineArgs: ["--b", "src/project", "--cleanPersistedProgram"] + }, + noChangeRun, + { + subScenario: "Modify global main file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => appendText(fs, `/src/project/src/globalMain.ts`, `globalSomething();`), + }, { subScenario: "Modify main file", buildKind: BuildKind.IncrementalDtsChange, @@ -66,6 +115,16 @@ namespace ts { [`/src/project/src/types.d.ts`, CleanBuildDescrepancy.CleanFilePresent], [`/src/project/src/filewithref.js`, CleanBuildDescrepancy.CleanFilePresent], [`/src/project/src/filewithref.d.ts`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/globalfilepresent.js`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/globalfilepresent.d.ts`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/globalfilenotfound.js`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/globalfilenotfound.d.ts`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/globalanotherfilewithsamereferenes.js`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/globalanotherfilewithsamereferenes.d.ts`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/globalmain.js`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/globalmain.d.ts`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/globalnewfile.js`, CleanBuildDescrepancy.CleanFilePresent], + [`/src/project/src/globalnewfile.d.ts`, CleanBuildDescrepancy.CleanFilePresent], [`/src/project/tsconfig.tsbuildinfo`, CleanBuildDescrepancy.CleanFileTextDifferent], ]), }, @@ -98,6 +157,44 @@ namespace ts { commandLineArgs: ["--b", "src/project"], incrementalScenarios: [ noChangeRun, + { + subScenario: "Modify globalMain file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => appendText(fs, `/src/project/src/globalMain.ts`, `globalSomething();`), + }, + { + subScenario: "Add new globalFile and update globalMain file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => { + fs.writeFileSync(`/src/project/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + prependText(fs, `/src/project/src/globalMain.ts`, `/// +`); + appendText(fs, `/src/project/src/globalMain.ts`, `globalFoo();`); + }, + }, + { + subScenario: "Write file that could not be resolved by referenced path", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.writeFileSync(`/src/project/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), + }, + { + subScenario: "Clean resolutions", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: noop, + commandLineArgs: ["--b", "src/project", "--cleanPersistedProgram"] + }, + { + subScenario: "Clean resolutions again", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: noop, + commandLineArgs: ["--b", "src/project", "--cleanPersistedProgram"] + }, + noChangeRun, + { + subScenario: "Modify global main file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => appendText(fs, `/src/project/src/globalMain.ts`, `globalSomething();`), + }, { subScenario: "Modify main file", buildKind: BuildKind.IncrementalDtsChange, diff --git a/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts b/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts index 01ba311c0d91f..13d1024f4ae7b 100644 --- a/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts +++ b/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts @@ -27,6 +27,26 @@ namespace ts.tscWatch { path: `${projectRoot}/src/types.ts`, content: `interface SomeType {}`, }, + { + path: `${projectRoot}/src/globalMain.ts`, + content: Utils.dedent` + /// + /// + function globalMain() { } + `, + }, + { + path: `${projectRoot}/src/globalAnotherFileWithSameReferenes.ts`, + content: Utils.dedent` + /// + /// + function globalAnotherFileWithSameReferenes() { } + `, + }, + { + path: `${projectRoot}/src/globalFilePresent.ts`, + content: `function globalSomething() { return 10; }`, + }, { path: `${projectRoot}/tsconfig.json`, content: JSON.stringify({ @@ -73,6 +93,26 @@ namespace ts.tscWatch { sys: getSys, commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], changes: [ + { + caption: "Modify globalMain file", + change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new globalFile and update globalMain file", + change: sys => { + sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// +`); + sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved by referenced path", + change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), + timeouts: runQueuedTimeoutCallbacks, + }, { caption: "Modify main file", change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), @@ -102,6 +142,26 @@ namespace ts.tscWatch { sys: getSysWithSavedResolutions, commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], changes: [ + { + caption: "Modify globalMain file", + change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new globalFile and update globalMain file", + change: sys => { + sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// +`); + sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved by referenced path", + change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), + timeouts: runQueuedTimeoutCallbacks, + }, { caption: "Modify main file", change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), @@ -131,6 +191,26 @@ namespace ts.tscWatch { sys: getSysWithClearedResolutions, commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], changes: [ + { + caption: "Modify globalMain file", + change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new globalFile and update globalMain file", + change: sys => { + sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// +`); + sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved by referenced path", + change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), + timeouts: runQueuedTimeoutCallbacks, + }, { caption: "Modify main file", change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), @@ -161,6 +241,26 @@ namespace ts.tscWatch { sys: () => getSys("outFile.js"), commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], changes: [ + { + caption: "Modify globalMain file", + change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new globalFile and update globalMain file", + change: sys => { + sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// +`); + sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved by referenced path", + change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), + timeouts: runQueuedTimeoutCallbacks, + }, { caption: "Modify main file", change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), @@ -190,6 +290,26 @@ namespace ts.tscWatch { sys: () => getSysWithSavedResolutions("outFile.js"), commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], changes: [ + { + caption: "Modify globalMain file", + change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new globalFile and update globalMain file", + change: sys => { + sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// +`); + sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved by referenced path", + change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), + timeouts: runQueuedTimeoutCallbacks, + }, { caption: "Modify main file", change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), @@ -219,6 +339,26 @@ namespace ts.tscWatch { sys: () => getSysWithClearedResolutions("outFile.js"), commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], changes: [ + { + caption: "Modify globalMain file", + change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new globalFile and update globalMain file", + change: sys => { + sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// +`); + sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved by referenced path", + change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), + timeouts: runQueuedTimeoutCallbacks, + }, { caption: "Modify main file", change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), diff --git a/src/testRunner/unittests/tsc/persistResolutions.ts b/src/testRunner/unittests/tsc/persistResolutions.ts index bd21a379f6f52..68fb0f3a41fa6 100644 --- a/src/testRunner/unittests/tsc/persistResolutions.ts +++ b/src/testRunner/unittests/tsc/persistResolutions.ts @@ -12,6 +12,17 @@ namespace ts { "/src/project/src/filePresent.ts": `export function something() { return 10; }`, "/src/project/src/fileWithRef.ts": `/// `, "/src/project/src/types.ts": `interface SomeType {}`, + "/src/project/src/globalMain.ts": Utils.dedent` + /// + /// + function globalMain() { } + `, + "/src/project/src/globalAnotherFileWithSameReferenes.ts": Utils.dedent` + /// + /// + function globalAnotherFileWithSameReferenes() { } + `, + "/src/project/src/globalFilePresent.ts": `function globalSomething() { return 10; }`, "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { module: "amd", @@ -31,6 +42,44 @@ namespace ts { commandLineArgs: ["--p", "src/project"], incrementalScenarios: [ noChangeRun, + { + subScenario: "Modify globalMain file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => appendText(fs, `/src/project/src/globalMain.ts`, `globalSomething();`), + }, + { + subScenario: "Add new globalFile and update globalMain file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => { + fs.writeFileSync(`/src/project/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + prependText(fs, `/src/project/src/globalMain.ts`, `/// +`); + appendText(fs, `/src/project/src/globalMain.ts`, `globalFoo();`); + }, + }, + { + subScenario: "Write file that could not be resolved by referenced path", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.writeFileSync(`/src/project/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), + }, + { + subScenario: "Clean resolutions", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: noop, + commandLineArgs: ["--p", "src/project", "--cleanPersistedProgram"] + }, + { + subScenario: "Clean resolutions again", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: noop, + commandLineArgs: ["--p", "src/project", "--cleanPersistedProgram"] + }, + noChangeRun, + { + subScenario: "Modify global main file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => appendText(fs, `/src/project/src/globalMain.ts`, `globalSomething();`), + }, { subScenario: "Modify main file", buildKind: BuildKind.IncrementalDtsChange, @@ -48,7 +97,7 @@ namespace ts { subScenario: "Write file that could not be resolved", buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => fs.writeFileSync(`/src/project/src/fileNotFound.ts`, "export function something2() { return 20; }"), - // when doing clean build, fileNotFound.ts would be resolved so the output order in outFile.js would change + // when doing clean build, fileNotFound.ts would be resolved so tsbuildinfo will contain the fileNotFound cleanBuildDiscrepancies: () => new Map([ [`/src/project/tsconfig.tsbuildinfo`, CleanBuildDescrepancy.CleanFileTextDifferent] ]), @@ -82,6 +131,44 @@ namespace ts { commandLineArgs: ["--p", "src/project"], incrementalScenarios: [ noChangeRun, + { + subScenario: "Modify globalMain file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => appendText(fs, `/src/project/src/globalMain.ts`, `globalSomething();`), + }, + { + subScenario: "Add new globalFile and update globalMain file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => { + fs.writeFileSync(`/src/project/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + prependText(fs, `/src/project/src/globalMain.ts`, `/// +`); + appendText(fs, `/src/project/src/globalMain.ts`, `globalFoo();`); + }, + }, + { + subScenario: "Write file that could not be resolved by referenced path", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.writeFileSync(`/src/project/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), + }, + { + subScenario: "Clean resolutions", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: noop, + commandLineArgs: ["--p", "src/project", "--cleanPersistedProgram"] + }, + { + subScenario: "Clean resolutions again", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: noop, + commandLineArgs: ["--p", "src/project", "--cleanPersistedProgram"] + }, + noChangeRun, + { + subScenario: "Modify global main file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => appendText(fs, `/src/project/src/globalMain.ts`, `globalSomething();`), + }, { subScenario: "Modify main file", buildKind: BuildKind.IncrementalDtsChange, diff --git a/src/testRunner/unittests/tscWatch/persistResolutions.ts b/src/testRunner/unittests/tscWatch/persistResolutions.ts index 3233a06a8faab..1d2eec512f87d 100644 --- a/src/testRunner/unittests/tscWatch/persistResolutions.ts +++ b/src/testRunner/unittests/tscWatch/persistResolutions.ts @@ -27,6 +27,26 @@ namespace ts.tscWatch { path: `${projectRoot}/src/types.ts`, content: `interface SomeType {}`, }, + { + path: `${projectRoot}/src/globalMain.ts`, + content: Utils.dedent` + /// + /// + function globalMain() { } + `, + }, + { + path: `${projectRoot}/src/globalAnotherFileWithSameReferenes.ts`, + content: Utils.dedent` + /// + /// + function globalAnotherFileWithSameReferenes() { } + `, + }, + { + path: `${projectRoot}/src/globalFilePresent.ts`, + content: `function globalSomething() { return 10; }`, + }, { path: `${projectRoot}/tsconfig.json`, content: JSON.stringify({ @@ -73,6 +93,26 @@ namespace ts.tscWatch { sys: getSys, commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], changes: [ + { + caption: "Modify globalMain file", + change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new globalFile and update globalMain file", + change: sys => { + sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// +`); + sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved by referenced path", + change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), + timeouts: runQueuedTimeoutCallbacks, + }, { caption: "Modify main file", change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), @@ -102,6 +142,26 @@ namespace ts.tscWatch { sys: getSysWithSavedResolutions, commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], changes: [ + { + caption: "Modify globalMain file", + change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new globalFile and update globalMain file", + change: sys => { + sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// +`); + sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved by referenced path", + change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), + timeouts: runQueuedTimeoutCallbacks, + }, { caption: "Modify main file", change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), @@ -131,6 +191,26 @@ namespace ts.tscWatch { sys: getSysWithClearedResolutions, commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], changes: [ + { + caption: "Modify globalMain file", + change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new globalFile and update globalMain file", + change: sys => { + sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// +`); + sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved by referenced path", + change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), + timeouts: runQueuedTimeoutCallbacks, + }, { caption: "Modify main file", change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), @@ -161,6 +241,26 @@ namespace ts.tscWatch { sys: () => getSys("outFile.js"), commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], changes: [ + { + caption: "Modify globalMain file", + change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new globalFile and update globalMain file", + change: sys => { + sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// +`); + sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved by referenced path", + change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), + timeouts: runQueuedTimeoutCallbacks, + }, { caption: "Modify main file", change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), @@ -190,6 +290,26 @@ namespace ts.tscWatch { sys: () => getSysWithSavedResolutions("outFile.js"), commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], changes: [ + { + caption: "Modify globalMain file", + change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new globalFile and update globalMain file", + change: sys => { + sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// +`); + sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved by referenced path", + change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), + timeouts: runQueuedTimeoutCallbacks, + }, { caption: "Modify main file", change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), @@ -219,6 +339,26 @@ namespace ts.tscWatch { sys: () => getSysWithClearedResolutions("outFile.js"), commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], changes: [ + { + caption: "Modify globalMain file", + change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Add new globalFile and update globalMain file", + change: sys => { + sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// +`); + sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); + }, + timeouts: runQueuedTimeoutCallbacks, + }, + { + caption: "Write file that could not be resolved by referenced path", + change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), + timeouts: runQueuedTimeoutCallbacks, + }, { caption: "Modify main file", change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 3c303b50839e7..16262268799da 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -24,6 +24,21 @@ export function something() { return 10; } //// [/src/project/src/fileWithRef.ts] /// +//// [/src/project/src/globalAnotherFileWithSameReferenes.ts] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/src/project/src/globalFilePresent.ts] +function globalSomething() { return 10; } + +//// [/src/project/src/globalMain.ts] +/// +/// +function globalMain() { } + + //// [/src/project/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; @@ -62,16 +77,26 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/globalMain.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -Found 2 errors. +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: @@ -80,13 +105,16 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalMain.ts /src/project/src/main.ts No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -97,10 +125,17 @@ No cached semantic diagnostics in the builder:: "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -113,6 +148,10 @@ No cached semantic diagnostics in the builder:: ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -133,6 +172,18 @@ No cached semantic diagnostics in the builder:: "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "affectsGlobalScope": true + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } @@ -152,6 +203,14 @@ No cached semantic diagnostics in the builder:: "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -264,7 +323,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, @@ -285,6 +344,66 @@ No cached semantic diagnostics in the builder:: } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -332,7 +451,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 6 } ] } @@ -341,9 +460,44 @@ No cached semantic diagnostics in the builder:: "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", "./src/main.ts", "./src/types.ts" ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + } + ], "resolutions": [ { "resolvedModule": { @@ -364,7 +518,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 4002 + "size": 6105 } @@ -380,16 +534,26 @@ Output:: 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/globalMain.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -Found 2 errors. +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: @@ -398,6 +562,9 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalMain.ts /src/project/src/main.ts No cached semantic diagnostics in the builder:: @@ -405,35 +572,43 @@ No cached semantic diagnostics in the builder:: -Change:: Modify main file +Change:: Modify globalMain file Input:: -//// [/src/project/src/main.ts] -import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +//// [/src/project/src/globalMain.ts] +/// +/// +function globalMain() { } +globalSomething(); Output:: /lib/tsc --b src/project -Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/globalMain.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -Found 2 errors. +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: @@ -442,13 +617,16 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalMain.ts /src/project/src/main.ts No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -459,10 +637,17 @@ No cached semantic diagnostics in the builder:: "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -475,6 +660,10 @@ No cached semantic diagnostics in the builder:: ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -495,8 +684,20 @@ No cached semantic diagnostics in the builder:: "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "affectsGlobalScope": true + }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } }, "options": { @@ -514,6 +715,14 @@ No cached semantic diagnostics in the builder:: "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -626,7 +835,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, @@ -647,12 +856,72 @@ No cached semantic diagnostics in the builder:: } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "flags": 0, "imports": [ { @@ -694,7 +963,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 6 } ] } @@ -703,9 +972,44 @@ No cached semantic diagnostics in the builder:: "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", "./src/main.ts", "./src/types.ts" ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + } + ], "resolutions": [ { "resolvedModule": { @@ -726,20 +1030,22 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 4028 + "size": 6139 } -Change:: Add new module and update main file +Change:: Add new globalFile and update globalMain file Input:: -//// [/src/project/src/main.ts] -import { foo } from "./newFile";import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +//// [/src/project/src/globalMain.ts] +/// +/// +/// +function globalMain() { } +globalSomething();globalFoo(); -//// [/src/project/src/newFile.ts] -export function foo() { return 20; } +//// [/src/project/src/globalNewFile.ts] +function globalFoo() { return 20; } @@ -750,25 +1056,31 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFile Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. -======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/globalMain.ts:3:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +3 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -Found 2 errors. +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -777,14 +1089,17 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts -/src/project/src/newFile.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts /src/project/src/main.ts No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -795,12 +1110,19 @@ No cached semantic diagnostics in the builder:: "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", - "./src/newfile.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", - "./src/newFile.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -815,8 +1137,13 @@ No cached semantic diagnostics in the builder:: "./src/types.ts" ], [ - "./src/filepresent.ts", - "./src/newfile.ts" + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -837,11 +1164,24 @@ No cached semantic diagnostics in the builder:: "./src/filewithref.ts": { "version": "-6085631553-/// " }, - "./src/newfile.ts": { - "version": "4428918903-export function foo() { return 20; }" + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } }, "options": { @@ -859,9 +1199,17 @@ No cached semantic diagnostics in the builder:: "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ - "./src/filepresent.ts", - "./src/newfile.ts" + "./src/filepresent.ts" ] }, "exportedModulesMap": {}, @@ -901,12 +1249,12 @@ No cached semantic diagnostics in the builder:: { "kind": "Import", "file": "./src/main.ts", - "index": 1 + "index": 0 }, { "kind": "Import", "file": "./src/main.ts", - "index": 2 + "index": 1 } ] }, @@ -972,7 +1320,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 5 + "index": 8 } ] }, @@ -994,21 +1342,82 @@ No cached semantic diagnostics in the builder:: ] }, { - "fileName": "./src/newFile.ts", - "originalFileName": "./src/newFile.ts", - "path": "./src/newfile.ts", - "resolvedPath": "./src/newfile.ts", - "version": "4428918903-export function foo() { return 20; }", + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", "flags": 0, "includeReasons": [ { - "kind": "Import", - "file": "./src/main.ts", + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", "index": 0 }, { "kind": "RootFile", "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 } ] }, @@ -1017,13 +1426,9 @@ No cached semantic diagnostics in the builder:: "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "flags": 0, "imports": [ - { - "kind": 10, - "text": "./newFile" - }, { "kind": 10, "text": "./filePresent" @@ -1039,7 +1444,2120 @@ No cached semantic diagnostics in the builder:: ], "resolvedModules": [ [ - "./newFile", + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 6654 +} + + + +Change:: Write file that could not be resolved by referenced path +Input:: +//// [/src/project/src/globalFileNotFound.ts] +function globalSomething2() { return 20; } + + + +Output:: +/lib/tsc --b src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 6680 +} + + + +Change:: Clean resolutions +Input:: + + +Output:: +/lib/tsc --b src/project --cleanPersistedProgram +exitCode:: ExitStatus.Success + + +//// [/src/project/outFile.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} + + + +Change:: Clean resolutions again +Input:: + + +Output:: +/lib/tsc --b src/project --cleanPersistedProgram +exitCode:: ExitStatus.Success + + + + +Change:: no-change-run +Input:: + + +Output:: +/lib/tsc --b src/project +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents + + +Change:: Modify global main file +Input:: +//// [/src/project/src/globalMain.ts] +/// +/// +/// +function globalMain() { } +globalSomething();globalFoo();globalSomething(); + + + +Output:: +/lib/tsc --b src/project +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Completely +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 6716 +} + + + +Change:: Modify main file +Input:: +//// [/src/project/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + + +Output:: +/lib/tsc --b src/project +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Completely +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 6742 +} + + + +Change:: Add new module and update main file +Input:: +//// [/src/project/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + +//// [/src/project/src/newFile.ts] +export function foo() { return 20; } + + + +Output:: +/lib/tsc --b src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./newFile", { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -1072,7 +3590,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -1081,6 +3599,11 @@ No cached semantic diagnostics in the builder:: "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1111,7 +3634,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 4536 + "size": 7252 } @@ -1145,7 +3668,7 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1155,6 +3678,11 @@ Program files:: /src/project/src/fileNotFound.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -1162,7 +3690,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1174,12 +3702,22 @@ No cached semantic diagnostics in the builder:: "./src/filenotfound.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1188,10 +3726,19 @@ No cached semantic diagnostics in the builder:: ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ], [ - "./src/types.ts" + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" ], [ "./src/filepresent.ts", @@ -1219,6 +3766,26 @@ No cached semantic diagnostics in the builder:: "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -1241,6 +3808,15 @@ No cached semantic diagnostics in the builder:: "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1368,7 +3944,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -1389,6 +3965,110 @@ No cached semantic diagnostics in the builder:: } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1404,7 +4084,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1468,7 +4148,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -1478,6 +4158,11 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1508,7 +4193,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 4834 + "size": 7551 } @@ -1523,7 +4208,7 @@ exitCode:: ExitStatus.Success //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[]},"version":"FakeTSVersion"} @@ -1563,7 +4248,7 @@ Resolution for module './filePresent' was found in cache from location '/src/pro Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: @@ -1573,6 +4258,11 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -1589,6 +4279,11 @@ declare module "src/fileNotFound" { declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } @@ -1615,6 +4310,19 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1630,13 +4338,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1104,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":10,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-1104) +text: (0-1598) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1656,6 +4364,19 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1673,7 +4394,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-346) +text: (0-576) declare module "src/filePresent" { export function something(): number; } @@ -1683,6 +4404,11 @@ declare module "src/fileNotFound" { declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } @@ -1700,6 +4426,11 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -1707,7 +4438,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1104, + "end": 1598, "kind": "text" } ] @@ -1716,7 +4447,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 346, + "end": 576, "kind": "text" } ] @@ -1730,12 +4461,22 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts" ], "fileNamesList": [ @@ -1746,6 +4487,15 @@ declare module "src/main" { } [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -1773,6 +4523,26 @@ declare module "src/main" { } "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -1796,6 +4566,15 @@ declare module "src/main" { } "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -1931,7 +4710,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -1952,6 +4731,110 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1967,7 +4850,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -2028,7 +4911,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -2038,6 +4921,11 @@ declare module "src/main" { } "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -2065,7 +4953,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5144 + "size": 8014 } @@ -2086,7 +4974,7 @@ Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: @@ -2096,6 +4984,11 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -2123,6 +5016,19 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -2139,13 +5045,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1136,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":10,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1630,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-1136) +text: (0-1630) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -2165,6 +5071,19 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -2183,7 +5102,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-346) +text: (0-576) declare module "src/filePresent" { export function something(): number; } @@ -2193,6 +5112,11 @@ declare module "src/fileNotFound" { declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } @@ -2210,6 +5134,11 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -2217,7 +5146,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1136, + "end": 1630, "kind": "text" } ] @@ -2226,7 +5155,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 346, + "end": 576, "kind": "text" } ] @@ -2240,12 +5169,22 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts" ], "fileNamesList": [ @@ -2256,6 +5195,15 @@ declare module "src/main" { } [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -2283,6 +5231,26 @@ declare module "src/main" { } "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -2306,6 +5274,15 @@ declare module "src/main" { } "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -2441,7 +5418,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -2462,6 +5439,110 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -2477,7 +5558,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -2538,7 +5619,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -2548,6 +5629,11 @@ declare module "src/main" { } "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -2575,6 +5661,6 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5168 + "size": 8038 } diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 70b0708fa9230..16b2b866f1727 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -24,6 +24,21 @@ export function something() { return 10; } //// [/src/project/src/fileWithRef.ts] /// +//// [/src/project/src/globalAnotherFileWithSameReferenes.ts] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/src/project/src/globalFilePresent.ts] +function globalSomething() { return 10; } + +//// [/src/project/src/globalMain.ts] +/// +/// +function globalMain() { } + + //// [/src/project/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; @@ -62,16 +77,26 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/globalMain.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -Found 2 errors. +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: @@ -80,6 +105,9 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalMain.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -88,11 +116,14 @@ Semantic diagnostics in builder refreshed for:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalMain.ts /src/project/src/main.ts //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -103,10 +134,17 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -119,6 +157,10 @@ Semantic diagnostics in builder refreshed for:: ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -144,6 +186,21 @@ Semantic diagnostics in builder refreshed for:: "version": "-6085631553-/// ", "signature": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "signature": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "affectsGlobalScope": true + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" @@ -163,6 +220,14 @@ Semantic diagnostics in builder refreshed for:: "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -174,6 +239,14 @@ Semantic diagnostics in builder refreshed for:: "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -195,6 +268,9 @@ Semantic diagnostics in builder refreshed for:: ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", [ "./src/main.ts", [ @@ -223,6 +299,18 @@ Semantic diagnostics in builder refreshed for:: "./src/filewithref.ts", "Full" ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -339,7 +427,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, @@ -360,6 +448,66 @@ Semantic diagnostics in builder refreshed for:: } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -407,7 +555,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 6 } ] } @@ -416,9 +564,44 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", "./src/main.ts", "./src/types.ts" ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + } + ], "resolutions": [ { "resolvedModule": { @@ -439,7 +622,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 4429 + "size": 6514 } @@ -455,16 +638,26 @@ Output:: 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/globalMain.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -Found 2 errors. +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: @@ -473,6 +666,9 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalMain.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -480,35 +676,43 @@ Semantic diagnostics in builder refreshed for:: -Change:: Modify main file +Change:: Modify globalMain file Input:: -//// [/src/project/src/main.ts] -import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +//// [/src/project/src/globalMain.ts] +/// +/// +function globalMain() { } +globalSomething(); Output:: /lib/tsc --b src/project -Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/globalMain.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -Found 2 errors. +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: @@ -517,14 +721,25 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalMain.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalMain.ts /src/project/src/main.ts //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-19927227517-/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -535,10 +750,17 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -551,6 +773,10 @@ Semantic diagnostics in builder refreshed for:: ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -561,23 +787,38 @@ Semantic diagnostics in builder refreshed for:: }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-15062742831-export declare function something(): number;\r\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-4882119183-export {};\r\n" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "signature": "-19927227517-/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-4882119183-export {};\r\n" } }, @@ -595,18 +836,19 @@ Semantic diagnostics in builder refreshed for:: "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", [ @@ -624,6 +866,9 @@ Semantic diagnostics in builder refreshed for:: ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", [ "./src/main.ts", [ @@ -652,6 +897,18 @@ Semantic diagnostics in builder refreshed for:: "./src/filewithref.ts", "Full" ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -768,7 +1025,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, @@ -789,12 +1046,72 @@ Semantic diagnostics in builder refreshed for:: } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "flags": 0, "imports": [ { @@ -836,7 +1153,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 6 } ] } @@ -845,9 +1162,44 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", "./src/main.ts", "./src/types.ts" ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + } + ], "resolutions": [ { "resolvedModule": { @@ -868,20 +1220,22 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 4502 + "size": 7190 } -Change:: Add new module and update main file +Change:: Add new globalFile and update globalMain file Input:: -//// [/src/project/src/main.ts] -import { foo } from "./newFile";import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +//// [/src/project/src/globalMain.ts] +/// +/// +/// +function globalMain() { } +globalSomething();globalFoo(); -//// [/src/project/src/newFile.ts] -export function foo() { return 20; } +//// [/src/project/src/globalNewFile.ts] +function globalFoo() { return 20; } @@ -892,25 +1246,31 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFile Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. -======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/globalMain.ts:3:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +3 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -Found 2 errors. +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -919,16 +1279,27 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts -/src/project/src/newFile.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: -/src/project/src/newFile.ts +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts /src/project/src/main.ts //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"604791887-/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[9,1],[8,1],[10,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -939,12 +1310,19 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", - "./src/newfile.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", - "./src/newFile.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -959,8 +1337,13 @@ Semantic diagnostics in builder refreshed for:: "./src/types.ts" ], [ - "./src/filepresent.ts", - "./src/newfile.ts" + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -971,27 +1354,43 @@ Semantic diagnostics in builder refreshed for:: }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-15062742831-export declare function something(): number;\r\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-4882119183-export {};\r\n" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-3515861877-/// \r\n" }, - "./src/newfile.ts": { - "version": "4428918903-export function foo() { return 20; }", - "signature": "-3405156953-export declare function foo(): number;\r\n" + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "604791887-/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-4882119183-export {};\r\n" } }, @@ -1009,19 +1408,20 @@ Semantic diagnostics in builder refreshed for:: "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ - "./src/filepresent.ts", - "./src/newfile.ts" - ] - }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" ] }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", [ @@ -1039,12 +1439,16 @@ Semantic diagnostics in builder refreshed for:: ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", [ "./src/main.ts", [ { "file": "./src/main.ts", - "start": 159, + "start": 127, "length": 16, "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, @@ -1052,7 +1456,6 @@ Semantic diagnostics in builder refreshed for:: } ] ], - "./src/newfile.ts", "./src/types.ts" ], "affectedFilesPendingEmit": [ @@ -1068,6 +1471,2461 @@ Semantic diagnostics in builder refreshed for:: "./src/filewithref.ts", "Full" ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7810 +} + + + +Change:: Write file that could not be resolved by referenced path +Input:: +//// [/src/project/src/globalFileNotFound.ts] +function globalSomething2() { return 20; } + + + +Output:: +/lib/tsc --b src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/main.ts + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-15062742831-export declare function something(): number;\r\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 8012 +} + + + +Change:: Clean resolutions +Input:: + + +Output:: +/lib/tsc --b src/project --cleanPersistedProgram +exitCode:: ExitStatus.Success + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]]},"version":"FakeTSVersion"} + + + +Change:: Clean resolutions again +Input:: + + +Output:: +/lib/tsc --b src/project --cleanPersistedProgram +exitCode:: ExitStatus.Success + + + + +Change:: no-change-run +Input:: + + +Output:: +/lib/tsc --b src/project +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents + + +Change:: Modify global main file +Input:: +//// [/src/project/src/globalMain.ts] +/// +/// +/// +function globalMain() { } +globalSomething();globalFoo();globalSomething(); + + + +Output:: +/lib/tsc --b src/project +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Completely +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/globalMain.ts + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-15062742831-export declare function something(): number;\r\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 8048 +} + + + +Change:: Modify main file +Input:: +//// [/src/project/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + + +Output:: +/lib/tsc --b src/project +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Completely +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/main.ts + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-15062742831-export declare function something(): number;\r\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 8074 +} + + + +Change:: Add new module and update main file +Input:: +//// [/src/project/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + +//// [/src/project/src/newFile.ts] +export function foo() { return 20; } + + + +Output:: +/lib/tsc --b src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/newFile.ts +/src/project/src/main.ts + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[12,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-15062742831-export declare function something(): number;\r\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-3405156953-export declare function foo(): number;\r\n" + }, + "./src/main.ts": { + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts", + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -1188,7 +4046,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1209,6 +4067,110 @@ Semantic diagnostics in builder refreshed for:: } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1224,7 +4186,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -1288,7 +4250,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -1297,6 +4259,11 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1327,7 +4294,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 5069 + "size": 8645 } @@ -1361,7 +4328,7 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1371,6 +4338,11 @@ Program files:: /src/project/src/fileNotFound.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -1379,7 +4351,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[8,1],[7,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1391,12 +4363,22 @@ Semantic diagnostics in builder refreshed for:: "./src/filenotfound.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1410,6 +4392,15 @@ Semantic diagnostics in builder refreshed for:: [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1423,11 +4414,11 @@ Semantic diagnostics in builder refreshed for:: }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-15062742831-export declare function something(): number;\r\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-4882119183-export {};\r\n" }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", @@ -1435,12 +4426,37 @@ Semantic diagnostics in builder refreshed for:: }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", @@ -1465,19 +4481,21 @@ Semantic diagnostics in builder refreshed for:: "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", [ @@ -1496,6 +4514,11 @@ Semantic diagnostics in builder refreshed for:: "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", [ "./src/main.ts", [ @@ -1529,6 +4552,26 @@ Semantic diagnostics in builder refreshed for:: "./src/filewithref.ts", "Full" ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -1630,57 +4673,161 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 0 + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 } ] }, { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], "includeReasons": [ { "kind": "RootFile", - "index": 1 + "index": 4 } ] }, { - "fileName": "./src/types.ts", - "originalFileName": "./src/types.ts", - "path": "./src/types.ts", - "resolvedPath": "./src/types.ts", - "version": "-12575322908-interface SomeType {}", + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", "flags": 0, "includeReasons": [ { "kind": "ReferenceFile", - "file": "./src/filewithref.ts", + "file": "./src/globalmain.ts", "index": 0 }, { "kind": "RootFile", - "index": 6 + "index": 8 } ] }, { - "fileName": "./src/fileWithRef.ts", - "originalFileName": "./src/fileWithRef.ts", - "path": "./src/filewithref.ts", - "resolvedPath": "./src/filewithref.ts", - "version": "-6085631553-/// ", + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", "flags": 0, "referencedFiles": [ - "./types.ts" + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" ], "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 7 } ] }, @@ -1699,7 +4846,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1763,7 +4910,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -1773,6 +4920,11 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1803,7 +4955,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 5434 + "size": 9013 } @@ -1818,7 +4970,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[8,1],[7,1],[5,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]]},"version":"FakeTSVersion"} @@ -1858,7 +5010,7 @@ Resolution for module './filePresent' was found in cache from location '/src/pro Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: @@ -1868,6 +5020,11 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -1923,6 +5080,59 @@ define(["require", "exports"], function (require, exports) { /// +//// [/src/project/src/globalAnotherFileWithSameReferenes.d.ts] +/// +/// +declare function globalAnotherFileWithSameReferenes(): void; + + +//// [/src/project/src/globalAnotherFileWithSameReferenes.js] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/src/project/src/globalFileNotFound.d.ts] +declare function globalSomething2(): number; + + +//// [/src/project/src/globalFileNotFound.js] +function globalSomething2() { return 20; } + + +//// [/src/project/src/globalFilePresent.d.ts] +declare function globalSomething(): number; + + +//// [/src/project/src/globalFilePresent.js] +function globalSomething() { return 10; } + + +//// [/src/project/src/globalMain.d.ts] +/// +/// +/// +declare function globalMain(): void; + + +//// [/src/project/src/globalMain.js] +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); + + +//// [/src/project/src/globalNewFile.d.ts] +declare function globalFoo(): number; + + +//// [/src/project/src/globalNewFile.js] +function globalFoo() { return 20; } + + //// [/src/project/src/main.d.ts] export {}; @@ -1958,7 +5168,7 @@ interface SomeType { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[[6,2]],"semanticDiagnosticsPerFile":[1,4,3,2,6,8,7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":10,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1970,12 +5180,22 @@ interface SomeType { "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts" ], "fileNamesList": [ @@ -1986,6 +5206,15 @@ interface SomeType { [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -2000,7 +5229,7 @@ interface SomeType { }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-15062742831-export declare function something(): number;\r\n" }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", @@ -2012,12 +5241,37 @@ interface SomeType { }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", @@ -2043,23 +5297,33 @@ interface SomeType { "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": { - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", "./src/main.ts", "./src/newfile.ts", "./src/types.ts" @@ -2192,7 +5456,7 @@ interface SomeType { }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -2213,6 +5477,110 @@ interface SomeType { } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -2228,7 +5596,7 @@ interface SomeType { }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -2289,7 +5657,7 @@ interface SomeType { "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -2299,6 +5667,11 @@ interface SomeType { "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -2326,7 +5699,7 @@ interface SomeType { } }, "version": "FakeTSVersion", - "size": 4903 + "size": 8402 } @@ -2347,7 +5720,7 @@ Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: @@ -2357,6 +5730,11 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -2375,7 +5753,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[[6,2]],"semanticDiagnosticsPerFile":[1,4,3,2,6,8,7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":10,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2387,12 +5765,22 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts" ], "fileNamesList": [ @@ -2403,6 +5791,15 @@ define(["require", "exports", "./filePresent"], function (require, exports, file [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -2417,7 +5814,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-15062742831-export declare function something(): number;\r\n" }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", @@ -2429,12 +5826,37 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", @@ -2460,23 +5882,33 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": { - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", "./src/main.ts", "./src/newfile.ts", "./src/types.ts" @@ -2609,7 +6041,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -2630,6 +6062,110 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -2645,7 +6181,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -2706,7 +6242,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -2716,6 +6252,11 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -2743,6 +6284,6 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4927 + "size": 8426 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index 9746e207d04f4..74a5bafb6e6f5 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -17,6 +17,21 @@ export function something() { return 10; } //// [/user/username/projects/myproject/src/types.ts] interface SomeType {} +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalFilePresent.ts] +function globalSomething() { return 10; } + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -34,12 +49,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:36 AM] Starting compilation in watch mode... +[12:00:42 AM] Starting compilation in watch mode... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -64,12 +79,22 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:42 AM] Found 2 errors. Watching for file changes. +[12:00:48 AM] Found 4 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json @@ -77,11 +102,14 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFilePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: @@ -90,6 +118,9 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -103,6 +134,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -117,7 +154,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -128,10 +165,17 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -144,6 +188,10 @@ exitCode:: ExitStatus.undefined ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -164,6 +212,18 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "affectsGlobalScope": true + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } @@ -185,6 +245,14 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -297,7 +365,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, @@ -318,6 +386,66 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -365,7 +493,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 6 } ] } @@ -374,9 +502,44 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", "./src/main.ts", "./src/types.ts" ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], "resolutions": [ { "resolvedModule": { @@ -397,42 +560,50 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3890 + "size": 6035 } -Change:: Modify main file +Change:: Modify globalMain file Input:: -//// [/user/username/projects/myproject/src/main.ts] -import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +globalSomething(); Output:: -FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:45 AM] File change detected. Starting incremental compilation... +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:51 AM] File change detected. Starting incremental compilation... -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:52 AM] Found 2 errors. Watching for file changes. +[12:00:58 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: @@ -441,6 +612,9 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -454,6 +628,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -468,7 +648,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -479,10 +659,17 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -494,7 +681,1579 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts" ], [ - "./src/types.ts" + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 6069 +} + + +Change:: Add new globalFile and update globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +/// +function globalMain() { } +globalSomething();globalFoo(); + +//// [/user/username/projects/myproject/src/globalNewFile.ts] +function globalFoo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:01:05 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:3:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +3 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:01:12 AM] Found 4 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/globalfilenotfound.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 6584 +} + + +Change:: Write file that could not be resolved by referenced path + +Input:: +//// [/user/username/projects/myproject/src/globalFileNotFound.ts] +function globalSomething2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:01:15 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:01:22 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 6568 +} + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:01:25 AM] File change detected. Starting incremental compilation... + +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:32 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Completely +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" ] ], "fileInfos": { @@ -515,6 +2274,26 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } @@ -536,6 +2315,15 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -648,7 +2436,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -669,6 +2457,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -716,7 +2608,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -725,6 +2617,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/types.ts" ], @@ -748,7 +2645,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3916 + "size": 6594 } @@ -769,7 +2666,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:57 AM] File change detected. Starting incremental compilation... +[12:01:37 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -791,11 +2688,11 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:04 AM] Found 2 errors. Watching for file changes. +[12:01:44 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -804,6 +2701,11 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -818,10 +2720,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} @@ -834,7 +2746,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -845,11 +2757,21 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", @@ -864,6 +2786,15 @@ exitCode:: ExitStatus.undefined [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -887,6 +2818,26 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -911,6 +2862,15 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1024,7 +2984,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1045,6 +3005,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1060,7 +3124,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -1124,7 +3188,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -1133,6 +3197,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1163,7 +3232,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4424 + "size": 7104 } @@ -1177,7 +3246,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:07 AM] File change detected. Starting incremental compilation... +[12:01:47 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -1196,11 +3265,11 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:14 AM] Found 2 errors. Watching for file changes. +[12:01:54 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1210,6 +3279,11 @@ Program files:: /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1224,10 +3298,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.ts: @@ -1242,7 +3326,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1254,12 +3338,22 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1273,6 +3367,15 @@ exitCode:: ExitStatus.undefined [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1299,6 +3402,26 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -1323,6 +3446,15 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1450,7 +3582,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -1471,6 +3603,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1486,7 +3722,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1550,7 +3786,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -1560,6 +3796,11 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1590,6 +3831,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4722 + "size": 7403 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js index 4502424cf9cf0..3c9352548477a 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -17,6 +17,21 @@ export function something() { return 10; } //// [/user/username/projects/myproject/src/types.ts] interface SomeType {} +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalFilePresent.ts] +function globalSomething() { return 10; } + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -34,12 +49,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]]},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:36 AM] Starting compilation in watch mode... +[12:00:42 AM] Starting compilation in watch mode... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -64,12 +79,22 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:42 AM] Found 2 errors. Watching for file changes. +[12:00:48 AM] Found 4 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json @@ -77,11 +102,14 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFilePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: @@ -90,6 +118,9 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -103,6 +134,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -117,7 +154,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -128,10 +165,17 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -144,6 +188,10 @@ exitCode:: ExitStatus.undefined ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -169,6 +217,21 @@ exitCode:: ExitStatus.undefined "version": "-6085631553-/// ", "signature": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "signature": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "affectsGlobalScope": true + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" @@ -190,6 +253,14 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -201,6 +272,14 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -222,6 +301,9 @@ exitCode:: ExitStatus.undefined ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", [ "./src/main.ts", [ @@ -250,6 +332,18 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts", "Full" ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -366,7 +460,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, @@ -387,6 +481,66 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -434,7 +588,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 6 } ] } @@ -443,9 +597,44 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", "./src/main.ts", "./src/types.ts" ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], "resolutions": [ { "resolvedModule": { @@ -466,42 +655,50 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4317 + "size": 6444 } -Change:: Modify main file +Change:: Modify globalMain file Input:: -//// [/user/username/projects/myproject/src/main.ts] -import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +globalSomething(); Output:: -FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:45 AM] File change detected. Starting incremental compilation... +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:51 AM] File change detected. Starting incremental compilation... -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:52 AM] Found 2 errors. Watching for file changes. +[12:00:58 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: @@ -510,9 +707,20 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts WatchedFiles:: @@ -524,6 +732,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -538,7 +752,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -549,10 +763,17 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -565,6 +786,10 @@ exitCode:: ExitStatus.undefined ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -575,23 +800,38 @@ exitCode:: ExitStatus.undefined }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-13601649692-export declare function something(): number;\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-3531856636-export {};\n" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "signature": "-18175711127-/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-3531856636-export {};\n" } }, @@ -611,18 +851,19 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", [ @@ -640,6 +881,9 @@ exitCode:: ExitStatus.undefined ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", [ "./src/main.ts", [ @@ -668,6 +912,18 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts", "Full" ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -765,43 +1021,2007 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 0 + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7098 +} + + +Change:: Add new globalFile and update globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +/// +function globalMain() { } +globalSomething();globalFoo(); + +//// [/user/username/projects/myproject/src/globalNewFile.ts] +function globalFoo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:01:05 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:3:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +3 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:01:12 AM] Found 4 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[9,1],[8,1],[10,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/globalfilenotfound.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "6306495272-/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7715 +} + + +Change:: Write file that could not be resolved by referenced path + +Input:: +//// [/user/username/projects/myproject/src/globalFileNotFound.ts] +function globalSomething2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:01:15 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:01:22 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7870 +} + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:01:25 AM] File change detected. Starting incremental compilation... + +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:32 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Completely +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 } ] }, { - "fileName": "./src/types.ts", - "originalFileName": "./src/types.ts", - "path": "./src/types.ts", - "resolvedPath": "./src/types.ts", - "version": "-12575322908-interface SomeType {}", + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", "flags": 0, "includeReasons": [ { "kind": "ReferenceFile", - "file": "./src/filewithref.ts", + "file": "./src/globalmain.ts", "index": 0 }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, { - "fileName": "./src/fileWithRef.ts", - "originalFileName": "./src/fileWithRef.ts", - "path": "./src/filewithref.ts", - "resolvedPath": "./src/filewithref.ts", - "version": "-6085631553-/// ", + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", "flags": 0, "referencedFiles": [ - "./types.ts" + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" ], "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 6 } ] }, @@ -852,7 +3072,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -861,6 +3081,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/types.ts" ], @@ -884,7 +3109,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4388 + "size": 7896 } @@ -905,7 +3130,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:57 AM] File change detected. Starting incremental compilation... +[12:01:37 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -927,11 +3152,11 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:04 AM] Found 2 errors. Watching for file changes. +[12:01:44 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -940,6 +3165,11 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -956,10 +3186,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} @@ -972,7 +3212,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[12,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -983,11 +3223,21 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", @@ -1002,6 +3252,15 @@ exitCode:: ExitStatus.undefined [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1015,20 +3274,45 @@ exitCode:: ExitStatus.undefined }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-13601649692-export declare function something(): number;\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-3531856636-export {};\n" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", @@ -1055,19 +3339,21 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", [ @@ -1085,6 +3371,11 @@ exitCode:: ExitStatus.undefined ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", [ "./src/main.ts", [ @@ -1114,6 +3405,26 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts", "Full" ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -1234,7 +3545,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1255,6 +3566,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1270,7 +3685,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -1334,7 +3749,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -1343,6 +3758,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1373,7 +3793,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4953 + "size": 8465 } @@ -1387,7 +3807,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:07 AM] File change detected. Starting incremental compilation... +[12:01:47 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -1406,11 +3826,11 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:14 AM] Found 2 errors. Watching for file changes. +[12:01:54 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1420,6 +3840,11 @@ Program files:: /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1435,10 +3860,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.ts: @@ -1453,7 +3888,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[8,1],[7,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1465,12 +3900,22 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1484,6 +3929,15 @@ exitCode:: ExitStatus.undefined [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1497,11 +3951,11 @@ exitCode:: ExitStatus.undefined }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-13601649692-export declare function something(): number;\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-3531856636-export {};\n" }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", @@ -1509,12 +3963,37 @@ exitCode:: ExitStatus.undefined }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", @@ -1541,19 +4020,21 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", [ @@ -1572,6 +4053,11 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", [ "./src/main.ts", [ @@ -1605,6 +4091,26 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts", "Full" ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -1739,7 +4245,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -1760,6 +4266,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1775,7 +4385,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1839,7 +4449,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -1849,6 +4459,11 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1879,6 +4494,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5316 + "size": 8831 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index c4890642ff823..e41778cec21b4 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -17,6 +17,21 @@ export function something() { return 10; } //// [/user/username/projects/myproject/src/types.ts] interface SomeType {} +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalFilePresent.ts] +function globalSomething() { return 10; } + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -34,24 +49,34 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:33 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:34 AM] Found 2 errors. Watching for file changes. +[12:00:40 AM] Found 4 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json @@ -59,11 +84,14 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFilePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: @@ -72,6 +100,9 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -85,6 +116,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -99,38 +136,46 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -Change:: Modify main file +Change:: Modify globalMain file Input:: -//// [/user/username/projects/myproject/src/main.ts] -import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +globalSomething(); Output:: -FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:37 AM] File change detected. Starting incremental compilation... +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:43 AM] File change detected. Starting incremental compilation... -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:43 AM] Found 2 errors. Watching for file changes. +[12:00:49 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: @@ -139,6 +184,9 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -152,6 +200,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -166,7 +220,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -177,10 +231,17 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -192,7 +253,1579 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts" ], [ - "./src/types.ts" + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 6069 +} + + +Change:: Add new globalFile and update globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +/// +function globalMain() { } +globalSomething();globalFoo(); + +//// [/user/username/projects/myproject/src/globalNewFile.ts] +function globalFoo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:56 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:3:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +3 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:01:03 AM] Found 4 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/globalfilenotfound.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 6584 +} + + +Change:: Write file that could not be resolved by referenced path + +Input:: +//// [/user/username/projects/myproject/src/globalFileNotFound.ts] +function globalSomething2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:01:06 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:01:13 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 6568 +} + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:01:16 AM] File change detected. Starting incremental compilation... + +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:23 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Completely +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" ] ], "fileInfos": { @@ -213,6 +1846,26 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } @@ -234,6 +1887,15 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -346,7 +2008,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -367,6 +2029,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -414,7 +2180,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -423,6 +2189,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/types.ts" ], @@ -446,7 +2217,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3916 + "size": 6594 } @@ -467,7 +2238,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:48 AM] File change detected. Starting incremental compilation... +[12:01:28 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -489,11 +2260,11 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:55 AM] Found 2 errors. Watching for file changes. +[12:01:35 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -502,6 +2273,11 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -516,10 +2292,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} @@ -532,7 +2318,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -543,11 +2329,21 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", @@ -562,6 +2358,15 @@ exitCode:: ExitStatus.undefined [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -585,6 +2390,26 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -609,6 +2434,15 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -722,7 +2556,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -743,6 +2577,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -758,7 +2696,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -822,7 +2760,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -831,6 +2769,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -861,7 +2804,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4424 + "size": 7104 } @@ -875,7 +2818,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:00:58 AM] File change detected. Starting incremental compilation... +[12:01:38 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -894,11 +2837,11 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:05 AM] Found 2 errors. Watching for file changes. +[12:01:45 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -908,6 +2851,11 @@ Program files:: /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -922,10 +2870,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.ts: @@ -940,7 +2898,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -952,12 +2910,22 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -971,6 +2939,15 @@ exitCode:: ExitStatus.undefined [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -997,6 +2974,26 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -1021,6 +3018,15 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1148,7 +3154,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -1169,6 +3175,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1184,7 +3294,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1248,7 +3358,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -1258,6 +3368,11 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1288,6 +3403,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4722 + "size": 7403 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index c3e1c40fdec21..c87463c510cf3 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -17,6 +17,21 @@ export function something() { return 10; } //// [/user/username/projects/myproject/src/types.ts] interface SomeType {} +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalFilePresent.ts] +function globalSomething() { return 10; } + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -34,24 +49,34 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:33 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:34 AM] Found 2 errors. Watching for file changes. +[12:00:40 AM] Found 4 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json @@ -59,11 +84,14 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFilePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: @@ -72,6 +100,9 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -85,6 +116,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -99,38 +136,46 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -Change:: Modify main file +Change:: Modify globalMain file Input:: -//// [/user/username/projects/myproject/src/main.ts] -import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +globalSomething(); Output:: -FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:37 AM] File change detected. Starting incremental compilation... +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:43 AM] File change detected. Starting incremental compilation... -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:43 AM] Found 2 errors. Watching for file changes. +[12:00:49 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: @@ -139,9 +184,20 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts WatchedFiles:: @@ -153,6 +209,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -167,7 +229,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -178,10 +240,17 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -194,6 +263,10 @@ exitCode:: ExitStatus.undefined ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -204,23 +277,38 @@ exitCode:: ExitStatus.undefined }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-13601649692-export declare function something(): number;\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-3531856636-export {};\n" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "signature": "-18175711127-/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-3531856636-export {};\n" } }, @@ -240,18 +328,19 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", [ @@ -269,6 +358,9 @@ exitCode:: ExitStatus.undefined ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", [ "./src/main.ts", [ @@ -297,6 +389,18 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts", "Full" ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -394,43 +498,2007 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 0 + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7098 +} + + +Change:: Add new globalFile and update globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +/// +function globalMain() { } +globalSomething();globalFoo(); + +//// [/user/username/projects/myproject/src/globalNewFile.ts] +function globalFoo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:56 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:3:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +3 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:01:03 AM] Found 4 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[9,1],[8,1],[10,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/globalfilenotfound.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "6306495272-/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7715 +} + + +Change:: Write file that could not be resolved by referenced path + +Input:: +//// [/user/username/projects/myproject/src/globalFileNotFound.ts] +function globalSomething2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:01:06 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:01:13 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7870 +} + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:01:16 AM] File change detected. Starting incremental compilation... + +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:23 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Completely +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 } ] }, { - "fileName": "./src/types.ts", - "originalFileName": "./src/types.ts", - "path": "./src/types.ts", - "resolvedPath": "./src/types.ts", - "version": "-12575322908-interface SomeType {}", + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", "flags": 0, "includeReasons": [ { "kind": "ReferenceFile", - "file": "./src/filewithref.ts", + "file": "./src/globalmain.ts", "index": 0 }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, { - "fileName": "./src/fileWithRef.ts", - "originalFileName": "./src/fileWithRef.ts", - "path": "./src/filewithref.ts", - "resolvedPath": "./src/filewithref.ts", - "version": "-6085631553-/// ", + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", "flags": 0, "referencedFiles": [ - "./types.ts" + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" ], "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 6 } ] }, @@ -481,7 +2549,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -490,6 +2558,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/types.ts" ], @@ -513,7 +2586,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4388 + "size": 7896 } @@ -534,7 +2607,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:48 AM] File change detected. Starting incremental compilation... +[12:01:28 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -556,11 +2629,11 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:55 AM] Found 2 errors. Watching for file changes. +[12:01:35 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -569,6 +2642,11 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -585,10 +2663,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} @@ -601,7 +2689,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[12,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -612,11 +2700,21 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", @@ -631,6 +2729,15 @@ exitCode:: ExitStatus.undefined [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -644,20 +2751,45 @@ exitCode:: ExitStatus.undefined }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-13601649692-export declare function something(): number;\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-3531856636-export {};\n" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", @@ -684,19 +2816,21 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", [ @@ -714,6 +2848,11 @@ exitCode:: ExitStatus.undefined ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", [ "./src/main.ts", [ @@ -743,6 +2882,26 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts", "Full" ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -863,7 +3022,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -884,6 +3043,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -899,7 +3162,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -963,7 +3226,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -972,6 +3235,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1002,7 +3270,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4953 + "size": 8465 } @@ -1016,7 +3284,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:00:58 AM] File change detected. Starting incremental compilation... +[12:01:38 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -1035,11 +3303,11 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:05 AM] Found 2 errors. Watching for file changes. +[12:01:45 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1049,6 +3317,11 @@ Program files:: /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1064,10 +3337,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.ts: @@ -1082,7 +3365,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[8,1],[7,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1094,12 +3377,22 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1113,6 +3406,15 @@ exitCode:: ExitStatus.undefined [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1126,11 +3428,11 @@ exitCode:: ExitStatus.undefined }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-13601649692-export declare function something(): number;\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-3531856636-export {};\n" }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", @@ -1138,12 +3440,37 @@ exitCode:: ExitStatus.undefined }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", @@ -1170,19 +3497,21 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", [ @@ -1201,6 +3530,11 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", [ "./src/main.ts", [ @@ -1234,6 +3568,26 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts", "Full" ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -1368,7 +3722,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -1389,6 +3743,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1404,7 +3862,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1468,7 +3926,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -1478,6 +3936,11 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1508,6 +3971,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5316 + "size": 8831 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index c94baccd6cad2..b9b8b9ffd9feb 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -17,6 +17,21 @@ export function something() { return 10; } //// [/user/username/projects/myproject/src/types.ts] interface SomeType {} +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalFilePresent.ts] +function globalSomething() { return 10; } + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -36,7 +51,7 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:31 AM] Starting compilation in watch mode... +[12:00:37 AM] Starting compilation in watch mode... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -61,12 +76,22 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:36 AM] Found 2 errors. Watching for file changes. +[12:00:42 AM] Found 4 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json @@ -74,11 +99,14 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFilePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: @@ -87,6 +115,9 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -100,6 +131,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -114,7 +151,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -125,10 +162,17 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -141,6 +185,10 @@ exitCode:: ExitStatus.undefined ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -161,6 +209,18 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "affectsGlobalScope": true + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } @@ -182,6 +242,14 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -294,7 +362,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, @@ -315,6 +383,66 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -362,7 +490,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 6 } ] } @@ -371,9 +499,44 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", "./src/main.ts", "./src/types.ts" ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], "resolutions": [ { "resolvedModule": { @@ -394,42 +557,50 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3890 + "size": 6035 } -Change:: Modify main file +Change:: Modify globalMain file Input:: -//// [/user/username/projects/myproject/src/main.ts] -import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +globalSomething(); Output:: -FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:39 AM] File change detected. Starting incremental compilation... +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:45 AM] File change detected. Starting incremental compilation... -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:46 AM] Found 2 errors. Watching for file changes. +[12:00:52 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: @@ -438,6 +609,9 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -451,6 +625,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -465,7 +645,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -476,10 +656,17 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -491,7 +678,1579 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts" ], [ - "./src/types.ts" + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 6069 +} + + +Change:: Add new globalFile and update globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +/// +function globalMain() { } +globalSomething();globalFoo(); + +//// [/user/username/projects/myproject/src/globalNewFile.ts] +function globalFoo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:59 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:3:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +3 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:01:06 AM] Found 4 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/globalfilenotfound.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 6584 +} + + +Change:: Write file that could not be resolved by referenced path + +Input:: +//// [/user/username/projects/myproject/src/globalFileNotFound.ts] +function globalSomething2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:01:09 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:01:16 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 6568 +} + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:01:19 AM] File change detected. Starting incremental compilation... + +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:26 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Completely +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" ] ], "fileInfos": { @@ -512,6 +2271,26 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } @@ -533,6 +2312,15 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -645,7 +2433,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -666,6 +2454,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -713,7 +2605,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -722,6 +2614,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/types.ts" ], @@ -745,7 +2642,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3916 + "size": 6594 } @@ -766,7 +2663,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:51 AM] File change detected. Starting incremental compilation... +[12:01:31 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -788,11 +2685,11 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:58 AM] Found 2 errors. Watching for file changes. +[12:01:38 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -801,6 +2698,11 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -815,10 +2717,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} @@ -831,7 +2743,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -842,11 +2754,21 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", @@ -861,6 +2783,15 @@ exitCode:: ExitStatus.undefined [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -884,6 +2815,26 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -908,6 +2859,15 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1021,7 +2981,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1042,6 +3002,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1057,7 +3121,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -1121,7 +3185,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -1130,6 +3194,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1160,7 +3229,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4424 + "size": 7104 } @@ -1174,7 +3243,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:01 AM] File change detected. Starting incremental compilation... +[12:01:41 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -1193,11 +3262,11 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:08 AM] Found 2 errors. Watching for file changes. +[12:01:48 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1207,6 +3276,11 @@ Program files:: /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1221,10 +3295,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.ts: @@ -1239,7 +3323,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1251,12 +3335,22 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1270,6 +3364,15 @@ exitCode:: ExitStatus.undefined [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1296,6 +3399,26 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -1320,6 +3443,15 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1447,7 +3579,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -1468,6 +3600,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1483,7 +3719,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1547,7 +3783,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -1557,6 +3793,11 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1587,6 +3828,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4722 + "size": 7403 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index eb7d1bac86c0a..8b8ce5c1afe8b 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -17,6 +17,21 @@ export function something() { return 10; } //// [/user/username/projects/myproject/src/types.ts] interface SomeType {} +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalFilePresent.ts] +function globalSomething() { return 10; } + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -36,7 +51,7 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:31 AM] Starting compilation in watch mode... +[12:00:37 AM] Starting compilation in watch mode... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -61,12 +76,22 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:36 AM] Found 2 errors. Watching for file changes. +[12:00:42 AM] Found 4 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json @@ -74,11 +99,14 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFilePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: @@ -87,6 +115,9 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -95,6 +126,9 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts WatchedFiles:: @@ -106,6 +140,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -120,7 +160,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -131,10 +171,17 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -147,6 +194,10 @@ exitCode:: ExitStatus.undefined ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -172,6 +223,21 @@ exitCode:: ExitStatus.undefined "version": "-6085631553-/// ", "signature": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "signature": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "affectsGlobalScope": true + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" @@ -193,6 +259,14 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -204,6 +278,14 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -225,6 +307,9 @@ exitCode:: ExitStatus.undefined ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", [ "./src/main.ts", [ @@ -253,6 +338,18 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts", "Full" ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -369,7 +466,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, @@ -390,6 +487,66 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -437,7 +594,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 6 } ] } @@ -446,9 +603,44 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", "./src/main.ts", "./src/types.ts" ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], "resolutions": [ { "resolvedModule": { @@ -469,42 +661,50 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4317 + "size": 6444 } -Change:: Modify main file +Change:: Modify globalMain file Input:: -//// [/user/username/projects/myproject/src/main.ts] -import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +globalSomething(); Output:: -FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:39 AM] File change detected. Starting incremental compilation... +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:45 AM] File change detected. Starting incremental compilation... -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:46 AM] Found 2 errors. Watching for file changes. +[12:00:52 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: @@ -513,9 +713,20 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts WatchedFiles:: @@ -527,6 +738,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -541,7 +758,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -552,10 +769,17 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -568,6 +792,10 @@ exitCode:: ExitStatus.undefined ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -578,23 +806,38 @@ exitCode:: ExitStatus.undefined }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-13601649692-export declare function something(): number;\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-3531856636-export {};\n" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "signature": "-18175711127-/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-3531856636-export {};\n" } }, @@ -614,18 +857,19 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", [ @@ -643,6 +887,9 @@ exitCode:: ExitStatus.undefined ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", [ "./src/main.ts", [ @@ -671,6 +918,18 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts", "Full" ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -768,43 +1027,2007 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 0 + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7098 +} + + +Change:: Add new globalFile and update globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +/// +function globalMain() { } +globalSomething();globalFoo(); + +//// [/user/username/projects/myproject/src/globalNewFile.ts] +function globalFoo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:00:59 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:3:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +3 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:01:06 AM] Found 4 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[9,1],[8,1],[10,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/globalfilenotfound.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "6306495272-/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7715 +} + + +Change:: Write file that could not be resolved by referenced path + +Input:: +//// [/user/username/projects/myproject/src/globalFileNotFound.ts] +function globalSomething2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:01:09 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:01:16 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7870 +} + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:01:19 AM] File change detected. Starting incremental compilation... + +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:26 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Completely +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 } ] }, { - "fileName": "./src/types.ts", - "originalFileName": "./src/types.ts", - "path": "./src/types.ts", - "resolvedPath": "./src/types.ts", - "version": "-12575322908-interface SomeType {}", + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", "flags": 0, "includeReasons": [ { "kind": "ReferenceFile", - "file": "./src/filewithref.ts", + "file": "./src/globalmain.ts", "index": 0 }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, { - "fileName": "./src/fileWithRef.ts", - "originalFileName": "./src/fileWithRef.ts", - "path": "./src/filewithref.ts", - "resolvedPath": "./src/filewithref.ts", - "version": "-6085631553-/// ", + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", "flags": 0, "referencedFiles": [ - "./types.ts" + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" ], "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 6 } ] }, @@ -855,7 +3078,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -864,6 +3087,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/types.ts" ], @@ -887,7 +3115,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4388 + "size": 7896 } @@ -908,7 +3136,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:51 AM] File change detected. Starting incremental compilation... +[12:01:31 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -930,11 +3158,11 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:00:58 AM] Found 2 errors. Watching for file changes. +[12:01:38 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -943,6 +3171,11 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -959,10 +3192,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} @@ -975,7 +3218,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[12,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -986,11 +3229,21 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", @@ -1005,6 +3258,15 @@ exitCode:: ExitStatus.undefined [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1018,20 +3280,45 @@ exitCode:: ExitStatus.undefined }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-13601649692-export declare function something(): number;\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-3531856636-export {};\n" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", @@ -1058,19 +3345,21 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", [ @@ -1088,6 +3377,11 @@ exitCode:: ExitStatus.undefined ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", [ "./src/main.ts", [ @@ -1117,6 +3411,26 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts", "Full" ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -1237,7 +3551,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1258,6 +3572,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1273,7 +3691,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -1337,7 +3755,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -1346,6 +3764,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1376,7 +3799,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4953 + "size": 8465 } @@ -1390,7 +3813,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:01 AM] File change detected. Starting incremental compilation... +[12:01:41 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -1409,11 +3832,11 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:08 AM] Found 2 errors. Watching for file changes. +[12:01:48 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1423,6 +3846,11 @@ Program files:: /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1438,10 +3866,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.ts: @@ -1456,7 +3894,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[8,1],[7,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1468,12 +3906,22 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1487,6 +3935,15 @@ exitCode:: ExitStatus.undefined [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1500,11 +3957,11 @@ exitCode:: ExitStatus.undefined }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-13601649692-export declare function something(): number;\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-3531856636-export {};\n" }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", @@ -1512,12 +3969,37 @@ exitCode:: ExitStatus.undefined }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", @@ -1544,19 +4026,21 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", [ @@ -1575,6 +4059,11 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", [ "./src/main.ts", [ @@ -1608,6 +4097,26 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts", "Full" ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], [ "./src/main.ts", "Full" @@ -1742,7 +4251,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -1763,6 +4272,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1778,7 +4391,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1842,7 +4455,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -1852,6 +4465,11 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1882,6 +4500,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5316 + "size": 8831 } diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index f69bbb9d2a541..2a1dd38169323 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -24,6 +24,21 @@ export function something() { return 10; } //// [/src/project/src/fileWithRef.ts] /// +//// [/src/project/src/globalAnotherFileWithSameReferenes.ts] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/src/project/src/globalFilePresent.ts] +function globalSomething() { return 10; } + +//// [/src/project/src/globalMain.ts] +/// +/// +function globalMain() { } + + //// [/src/project/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; @@ -62,16 +77,26 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/globalMain.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -Found 2 errors. +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: @@ -80,6 +105,9 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalMain.ts /src/project/src/main.ts No cached semantic diagnostics in the builder:: @@ -92,6 +120,9 @@ declare module "src/filePresent" { declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalMain(): void; declare module "src/main" { } @@ -108,6 +139,13 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +/// +/// +function globalMain() { } define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -115,13 +153,13 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":567,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":882,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":337,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-567) +text: (0-882) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -134,6 +172,13 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +/// +/// +function globalMain() { } define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -143,13 +188,16 @@ define("src/main", ["require", "exports"], function (require, exports) { ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-192) +text: (0-337) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalMain(): void; declare module "src/main" { } ====================================================================== @@ -163,13 +211,16 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 567, + "end": 882, "kind": "text" } ] @@ -178,7 +229,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 192, + "end": 337, "kind": "text" } ] @@ -191,10 +242,17 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -207,6 +265,10 @@ declare module "src/main" { } ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -227,6 +289,18 @@ declare module "src/main" { } "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "affectsGlobalScope": true + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } @@ -247,6 +321,14 @@ declare module "src/main" { } "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -340,43 +422,2715 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 0 + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 6501 +} + + + +Change:: no-change-run +Input:: + + +Output:: +/lib/tsc --p src/project +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/globalMain.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 4 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Completely +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalMain.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] file written with same contents +//// [/src/project/outFile.js] file written with same contents +//// [/src/project/outFile.tsbuildinfo] file written with same contents +//// [/src/project/outFile.tsbuildinfo.baseline.txt] file written with same contents +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents + + +Change:: Modify globalMain file +Input:: +//// [/src/project/src/globalMain.ts] +/// +/// +function globalMain() { } +globalSomething(); + + + +Output:: +/lib/tsc --p src/project +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/globalMain.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 4 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Completely +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalMain.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] file written with same contents +//// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +/// +/// +function globalMain() { } +globalSomething(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":902,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":337,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-902) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +/// +/// +function globalMain() { } +globalSomething(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-337) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalMain(): void; +declare module "src/main" { } + +====================================================================== + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 902, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 337, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/globalfilenotfound.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 6535 +} + + + +Change:: Add new globalFile and update globalMain file +Input:: +//// [/src/project/src/globalMain.ts] +/// +/// +/// +function globalMain() { } +globalSomething();globalFoo(); + +//// [/src/project/src/globalNewFile.ts] +function globalFoo() { return 20; } + + + +Output:: +/lib/tsc --p src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/globalMain.ts:3:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +3 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 4 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/main" { } + + +//// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":997,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":376,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-997) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-376) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/main" { } + +====================================================================== + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 997, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 376, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/globalfilenotfound.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7075 +} + + + +Change:: Write file that could not be resolved by referenced path +Input:: +//// [/src/project/src/globalFileNotFound.ts] +function globalSomething2() { return 20; } + + + +Output:: +/lib/tsc --p src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/main" { } + + +//// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1041,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-1041) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-422) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/main" { } + +====================================================================== + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1041, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 422, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7132 +} + + + +Change:: Clean resolutions +Input:: + + +Output:: +/lib/tsc --p src/project --cleanPersistedProgram +exitCode:: ExitStatus.Success + + +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1041,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} + + + +Change:: Clean resolutions again +Input:: + + +Output:: +/lib/tsc --p src/project --cleanPersistedProgram +exitCode:: ExitStatus.Success + + + + +Change:: no-change-run +Input:: + + +Output:: +/lib/tsc --p src/project +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] file written with same contents +//// [/src/project/outFile.js] file written with same contents +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1041,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] file written with same contents +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents + + +Change:: Modify global main file +Input:: +//// [/src/project/src/globalMain.ts] +/// +/// +/// +function globalMain() { } +globalSomething();globalFoo();globalSomething(); + + + +Output:: +/lib/tsc --p src/project +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Completely +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] file written with same contents +//// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1061,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-1061) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-422) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/main" { } + +====================================================================== + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1061, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 422, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 } ] }, { - "fileName": "./src/types.ts", - "originalFileName": "./src/types.ts", - "path": "./src/types.ts", - "resolvedPath": "./src/types.ts", - "version": "-12575322908-interface SomeType {}", + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", "flags": 0, "includeReasons": [ { "kind": "ReferenceFile", - "file": "./src/filewithref.ts", + "file": "./src/globalmain.ts", "index": 0 }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, { - "fileName": "./src/fileWithRef.ts", - "originalFileName": "./src/fileWithRef.ts", - "path": "./src/filewithref.ts", - "resolvedPath": "./src/filewithref.ts", - "version": "-6085631553-/// ", + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", "flags": 0, "referencedFiles": [ - "./types.ts" + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" ], "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 6 } ] }, @@ -427,7 +3181,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -436,6 +3190,11 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/types.ts" ], @@ -459,52 +3218,11 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4301 + "size": 7168 } -Change:: no-change-run -Input:: - - -Output:: -/lib/tsc --p src/project -src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] -Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Completely -Program files:: -/lib/lib.d.ts -/src/project/src/filePresent.ts -/src/project/src/anotherFileReusingResolution.ts -/src/project/src/types.ts -/src/project/src/fileWithRef.ts -/src/project/src/main.ts - -No cached semantic diagnostics in the builder:: - - -//// [/src/project/outFile.d.ts] file written with same contents -//// [/src/project/outFile.js] file written with same contents -//// [/src/project/outFile.tsbuildinfo] file written with same contents -//// [/src/project/outFile.tsbuildinfo.baseline.txt] file written with same contents -//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents - - Change:: Modify main file Input:: //// [/src/project/src/main.ts] @@ -533,7 +3251,7 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: @@ -542,6 +3260,11 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts /src/project/src/main.ts No cached semantic diagnostics in the builder:: @@ -561,6 +3284,19 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -569,13 +3305,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":633,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-633) +text: (0-1127) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -588,6 +3324,19 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -598,13 +3347,18 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-192) +text: (0-422) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/main" { } ====================================================================== @@ -618,13 +3372,18 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 633, + "end": 1127, "kind": "text" } ] @@ -633,7 +3392,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 192, + "end": 422, "kind": "text" } ] @@ -646,10 +3405,20 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -662,6 +3431,15 @@ declare module "src/main" { } ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" ] ], "fileInfos": { @@ -682,6 +3460,26 @@ declare module "src/main" { } "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } @@ -702,6 +3500,15 @@ declare module "src/main" { } "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -814,7 +3621,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -835,6 +3642,110 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -882,7 +3793,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -891,6 +3802,11 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/types.ts" ], @@ -914,7 +3830,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4327 + "size": 7194 } @@ -956,7 +3872,7 @@ File '/src/project/src/newFile.ts' exist - use it as a name resolution result. Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -965,6 +3881,11 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -978,6 +3899,11 @@ declare module "src/filePresent" { declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } @@ -997,6 +3923,19 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1012,13 +3951,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":852,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":263,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1346,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":493,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-852) +text: (0-1346) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1031,6 +3970,19 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1048,13 +4000,18 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-263) +text: (0-493) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } @@ -1071,6 +4028,11 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -1078,7 +4040,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 852, + "end": 1346, "kind": "text" } ] @@ -1087,7 +4049,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 263, + "end": 493, "kind": "text" } ] @@ -1100,11 +4062,21 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", @@ -1119,6 +4091,15 @@ declare module "src/main" { } [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1142,6 +4123,26 @@ declare module "src/main" { } "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -1165,6 +4166,15 @@ declare module "src/main" { } "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1278,7 +4288,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1299,6 +4309,110 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1314,7 +4428,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -1378,7 +4492,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -1387,6 +4501,11 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1417,7 +4536,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4854 + "size": 7723 } @@ -1451,7 +4570,7 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1461,6 +4580,11 @@ Program files:: /src/project/src/fileNotFound.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -1477,6 +4601,11 @@ declare module "src/fileNotFound" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } @@ -1503,6 +4632,19 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { exports.something2 = something2; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1518,13 +4660,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1104,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-1104) +text: (0-1598) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1544,6 +4686,19 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { exports.something2 = something2; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1561,7 +4716,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-346) +text: (0-576) declare module "src/filePresent" { export function something(): number; } @@ -1571,6 +4726,11 @@ declare module "src/fileNotFound" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } @@ -1588,6 +4748,11 @@ declare module "src/main" { } "./src/fileNotFound.ts", "./src/types.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -1595,7 +4760,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1104, + "end": 1598, "kind": "text" } ] @@ -1604,7 +4769,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 346, + "end": 576, "kind": "text" } ] @@ -1618,12 +4783,22 @@ declare module "src/main" { } "./src/filenotfound.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1632,10 +4807,19 @@ declare module "src/main" { } ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ], [ - "./src/types.ts" + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" ], [ "./src/filepresent.ts", @@ -1663,6 +4847,26 @@ declare module "src/main" { } "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -1686,6 +4890,15 @@ declare module "src/main" { } "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1813,7 +5026,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -1834,6 +5047,110 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1849,7 +5166,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1913,7 +5230,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -1923,6 +5240,11 @@ declare module "src/main" { } "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1953,7 +5275,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5177 + "size": 8046 } @@ -1968,7 +5290,7 @@ exitCode:: ExitStatus.Success //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1104,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[]},"version":"FakeTSVersion"} @@ -2008,7 +5330,7 @@ Resolution for module './filePresent' was found in cache from location '/src/pro Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: @@ -2018,6 +5340,11 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -2034,6 +5361,11 @@ declare module "src/fileNotFound" { declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } @@ -2060,6 +5392,19 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -2075,13 +5420,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1104,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":10,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-1104) +text: (0-1598) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -2101,6 +5446,19 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -2118,7 +5476,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-346) +text: (0-576) declare module "src/filePresent" { export function something(): number; } @@ -2128,6 +5486,11 @@ declare module "src/fileNotFound" { declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } @@ -2145,6 +5508,11 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -2152,7 +5520,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1104, + "end": 1598, "kind": "text" } ] @@ -2161,7 +5529,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 346, + "end": 576, "kind": "text" } ] @@ -2175,12 +5543,22 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts" ], "fileNamesList": [ @@ -2191,6 +5569,15 @@ declare module "src/main" { } [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -2218,6 +5605,26 @@ declare module "src/main" { } "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -2242,6 +5649,15 @@ declare module "src/main" { } "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -2377,7 +5793,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -2398,6 +5814,110 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -2413,7 +5933,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -2474,7 +5994,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -2484,6 +6004,11 @@ declare module "src/main" { } "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -2511,7 +6036,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5159 + "size": 8029 } @@ -2532,7 +6057,7 @@ Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: @@ -2542,6 +6067,11 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -2569,6 +6099,19 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -2585,13 +6128,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1136,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":346,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":10,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1630,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-1136) +text: (0-1630) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -2611,6 +6154,19 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -2629,7 +6185,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-346) +text: (0-576) declare module "src/filePresent" { export function something(): number; } @@ -2639,6 +6195,11 @@ declare module "src/fileNotFound" { declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } @@ -2656,6 +6217,11 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -2663,7 +6229,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1136, + "end": 1630, "kind": "text" } ] @@ -2672,7 +6238,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 346, + "end": 576, "kind": "text" } ] @@ -2686,12 +6252,22 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts" ], "fileNamesList": [ @@ -2702,6 +6278,15 @@ declare module "src/main" { } [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -2729,6 +6314,26 @@ declare module "src/main" { } "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -2753,6 +6358,15 @@ declare module "src/main" { } "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -2888,7 +6502,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -2909,6 +6523,110 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -2924,7 +6642,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -2985,7 +6703,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -2995,6 +6713,11 @@ declare module "src/main" { } "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -3022,6 +6745,6 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5183 + "size": 8053 } diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 9af0e617a984c..aad776b2ea999 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -24,6 +24,21 @@ export function something() { return 10; } //// [/src/project/src/fileWithRef.ts] /// +//// [/src/project/src/globalAnotherFileWithSameReferenes.ts] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/src/project/src/globalFilePresent.ts] +function globalSomething() { return 10; } + +//// [/src/project/src/globalMain.ts] +/// +/// +function globalMain() { } + + //// [/src/project/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; @@ -62,16 +77,26 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/globalMain.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -Found 2 errors. +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: @@ -80,6 +105,9 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalMain.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -88,6 +116,9 @@ Semantic diagnostics in builder refreshed for:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalMain.ts /src/project/src/main.ts @@ -124,6 +155,36 @@ define(["require", "exports"], function (require, exports) { /// +//// [/src/project/src/globalAnotherFileWithSameReferenes.d.ts] +/// +declare function globalAnotherFileWithSameReferenes(): void; + + +//// [/src/project/src/globalAnotherFileWithSameReferenes.js] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/src/project/src/globalFilePresent.d.ts] +declare function globalSomething(): number; + + +//// [/src/project/src/globalFilePresent.js] +function globalSomething() { return 10; } + + +//// [/src/project/src/globalMain.d.ts] +/// +declare function globalMain(): void; + + +//// [/src/project/src/globalMain.js] +/// +/// +function globalMain() { } + + //// [/src/project/src/main.d.ts] export {}; @@ -144,7 +205,7 @@ interface SomeType { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -155,10 +216,17 @@ interface SomeType { "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -171,6 +239,10 @@ interface SomeType { ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -196,6 +268,21 @@ interface SomeType { "version": "-6085631553-/// ", "signature": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "signature": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "affectsGlobalScope": true + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" @@ -216,6 +303,14 @@ interface SomeType { "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -227,6 +322,14 @@ interface SomeType { "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -248,6 +351,9 @@ interface SomeType { ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", [ "./src/main.ts", [ @@ -370,7 +476,7 @@ interface SomeType { }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, @@ -391,6 +497,66 @@ interface SomeType { } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -438,7 +604,7 @@ interface SomeType { "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 6 } ] } @@ -447,9 +613,44 @@ interface SomeType { "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", "./src/main.ts", "./src/types.ts" ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + } + ], "resolutions": [ { "resolvedModule": { @@ -470,7 +671,7 @@ interface SomeType { } }, "version": "FakeTSVersion", - "size": 4385 + "size": 6452 } @@ -486,16 +687,26 @@ Output:: 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/globalMain.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -Found 2 errors. +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: @@ -504,6 +715,9 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalMain.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -511,35 +725,43 @@ Semantic diagnostics in builder refreshed for:: -Change:: Modify main file +Change:: Modify globalMain file Input:: -//// [/src/project/src/main.ts] -import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +//// [/src/project/src/globalMain.ts] +/// +/// +function globalMain() { } +globalSomething(); Output:: /lib/tsc --p src/project -Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/globalMain.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -Found 2 errors. +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: @@ -548,23 +770,47 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalMain.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalMain.ts /src/project/src/main.ts -//// [/src/project/src/main.d.ts] file written with same contents -//// [/src/project/src/main.js] -define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); +//// [/src/project/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/src/project/src/anotherFileReusingResolution.js] file written with same contents +//// [/src/project/src/filePresent.d.ts] file written with same contents +//// [/src/project/src/filePresent.js] file written with same contents +//// [/src/project/src/fileWithRef.d.ts] file written with same contents +//// [/src/project/src/fileWithRef.js] file written with same contents +//// [/src/project/src/globalAnotherFileWithSameReferenes.d.ts] file written with same contents +//// [/src/project/src/globalAnotherFileWithSameReferenes.js] file written with same contents +//// [/src/project/src/globalFilePresent.d.ts] file written with same contents +//// [/src/project/src/globalFilePresent.js] file written with same contents +//// [/src/project/src/globalMain.d.ts] file written with same contents +//// [/src/project/src/globalMain.js] +/// +/// +function globalMain() { } +globalSomething(); +//// [/src/project/src/main.d.ts] file written with same contents +//// [/src/project/src/main.js] file written with same contents +//// [/src/project/src/types.d.ts] file written with same contents +//// [/src/project/src/types.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-19927227517-/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -575,10 +821,17 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -591,6 +844,10 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -601,23 +858,38 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-15062742831-export declare function something(): number;\r\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-4882119183-export {};\r\n" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "signature": "-19927227517-/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-4882119183-export {};\r\n" } }, @@ -636,18 +908,19 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", [ @@ -665,6 +938,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", [ "./src/main.ts", [ @@ -787,7 +1063,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, @@ -808,12 +1084,72 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "flags": 0, "imports": [ { @@ -855,7 +1191,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 6 } ] } @@ -864,9 +1200,44 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", "./src/main.ts", "./src/types.ts" ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + } + ], "resolutions": [ { "resolvedModule": { @@ -887,20 +1258,22 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4458 + "size": 7128 } -Change:: Add new module and update main file +Change:: Add new globalFile and update globalMain file Input:: -//// [/src/project/src/main.ts] -import { foo } from "./newFile";import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +//// [/src/project/src/globalMain.ts] +/// +/// +/// +function globalMain() { } +globalSomething();globalFoo(); -//// [/src/project/src/newFile.ts] -export function foo() { return 20; } +//// [/src/project/src/globalNewFile.ts] +function globalFoo() { return 20; } @@ -911,25 +1284,31 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFile Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. -======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/globalMain.ts:3:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. + +3 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -Found 2 errors. +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -938,32 +1317,64 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts -/src/project/src/newFile.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: -/src/project/src/newFile.ts +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts /src/project/src/main.ts -//// [/src/project/src/main.d.ts] file written with same contents -//// [/src/project/src/main.js] file written with same contents -//// [/src/project/src/newFile.d.ts] -export declare function foo(): number; +//// [/src/project/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/src/project/src/anotherFileReusingResolution.js] file written with same contents +//// [/src/project/src/filePresent.d.ts] file written with same contents +//// [/src/project/src/filePresent.js] file written with same contents +//// [/src/project/src/fileWithRef.d.ts] file written with same contents +//// [/src/project/src/fileWithRef.js] file written with same contents +//// [/src/project/src/globalAnotherFileWithSameReferenes.d.ts] file written with same contents +//// [/src/project/src/globalAnotherFileWithSameReferenes.js] file written with same contents +//// [/src/project/src/globalFilePresent.d.ts] file written with same contents +//// [/src/project/src/globalFilePresent.js] file written with same contents +//// [/src/project/src/globalMain.d.ts] +/// +/// +declare function globalMain(): void; -//// [/src/project/src/newFile.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); +//// [/src/project/src/globalMain.js] +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +//// [/src/project/src/globalNewFile.d.ts] +declare function globalFoo(): number; +//// [/src/project/src/globalNewFile.js] +function globalFoo() { return 20; } + + +//// [/src/project/src/main.d.ts] file written with same contents +//// [/src/project/src/main.js] file written with same contents +//// [/src/project/src/types.d.ts] file written with same contents +//// [/src/project/src/types.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"604791887-/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -974,12 +1385,19 @@ define(["require", "exports"], function (require, exports) { "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", - "./src/newfile.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", - "./src/newFile.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -994,8 +1412,13 @@ define(["require", "exports"], function (require, exports) { "./src/types.ts" ], [ - "./src/filepresent.ts", - "./src/newfile.ts" + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -1006,22 +1429,2383 @@ define(["require", "exports"], function (require, exports) { }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-15062742831-export declare function something(): number;\r\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-4882119183-export {};\r\n" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-3515861877-/// \r\n" }, - "./src/newfile.ts": { + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "604791887-/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/src/project/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7741 +} + + + +Change:: Write file that could not be resolved by referenced path +Input:: +//// [/src/project/src/globalFileNotFound.ts] +function globalSomething2() { return 20; } + + + +Output:: +/lib/tsc --p src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/main.ts + + +//// [/src/project/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/src/project/src/anotherFileReusingResolution.js] file written with same contents +//// [/src/project/src/filePresent.d.ts] file written with same contents +//// [/src/project/src/filePresent.js] file written with same contents +//// [/src/project/src/fileWithRef.d.ts] file written with same contents +//// [/src/project/src/fileWithRef.js] file written with same contents +//// [/src/project/src/globalAnotherFileWithSameReferenes.d.ts] +/// +/// +declare function globalAnotherFileWithSameReferenes(): void; + + +//// [/src/project/src/globalAnotherFileWithSameReferenes.js] file written with same contents +//// [/src/project/src/globalFileNotFound.d.ts] +declare function globalSomething2(): number; + + +//// [/src/project/src/globalFileNotFound.js] +function globalSomething2() { return 20; } + + +//// [/src/project/src/globalFilePresent.d.ts] file written with same contents +//// [/src/project/src/globalFilePresent.js] file written with same contents +//// [/src/project/src/globalMain.d.ts] +/// +/// +/// +declare function globalMain(): void; + + +//// [/src/project/src/globalMain.js] file written with same contents +//// [/src/project/src/globalNewFile.d.ts] file written with same contents +//// [/src/project/src/globalNewFile.js] file written with same contents +//// [/src/project/src/main.d.ts] file written with same contents +//// [/src/project/src/main.js] file written with same contents +//// [/src/project/src/types.d.ts] file written with same contents +//// [/src/project/src/types.js] file written with same contents +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-15062742831-export declare function something(): number;\r\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7936 +} + + + +Change:: Clean resolutions +Input:: + + +Output:: +/lib/tsc --p src/project --cleanPersistedProgram +exitCode:: ExitStatus.Success + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} + + + +Change:: Clean resolutions again +Input:: + + +Output:: +/lib/tsc --p src/project --cleanPersistedProgram +exitCode:: ExitStatus.Success + + + + +Change:: no-change-run +Input:: + + +Output:: +/lib/tsc --p src/project +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents + + +Change:: Modify global main file +Input:: +//// [/src/project/src/globalMain.ts] +/// +/// +/// +function globalMain() { } +globalSomething();globalFoo();globalSomething(); + + + +Output:: +/lib/tsc --p src/project +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Completely +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/globalMain.ts + + +//// [/src/project/src/globalMain.d.ts] file written with same contents +//// [/src/project/src/globalMain.js] +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-15062742831-export declare function something(): number;\r\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7972 +} + + + +Change:: Modify main file +Input:: +//// [/src/project/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + + +Output:: +/lib/tsc --p src/project +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Completely +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/main.ts + + +//// [/src/project/src/main.d.ts] file written with same contents +//// [/src/project/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-15062742831-export declare function something(): number;\r\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7998 +} + + + +Change:: Add new module and update main file +Input:: +//// [/src/project/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + +//// [/src/project/src/newFile.ts] +export function foo() { return 20; } + + + +Output:: +/lib/tsc --p src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/newFile.ts +/src/project/src/main.ts + + +//// [/src/project/src/main.d.ts] file written with same contents +//// [/src/project/src/main.js] file written with same contents +//// [/src/project/src/newFile.d.ts] +export declare function foo(): number; + + +//// [/src/project/src/newFile.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-15062742831-export declare function something(): number;\r\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", "signature": "-3405156953-export declare function foo(): number;\r\n" }, @@ -1045,19 +3829,21 @@ define(["require", "exports"], function (require, exports) { "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", [ @@ -1075,6 +3861,11 @@ define(["require", "exports"], function (require, exports) { ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", [ "./src/main.ts", [ @@ -1198,7 +3989,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1219,6 +4010,110 @@ define(["require", "exports"], function (require, exports) { } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1234,7 +4129,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -1298,7 +4193,7 @@ define(["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -1307,6 +4202,11 @@ define(["require", "exports"], function (require, exports) { "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1337,7 +4237,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 5019 + "size": 8562 } @@ -1371,7 +4271,7 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1381,6 +4281,11 @@ Program files:: /src/project/src/fileNotFound.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -1403,7 +4308,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1415,12 +4320,22 @@ define(["require", "exports"], function (require, exports) { "./src/filenotfound.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1434,6 +4349,15 @@ define(["require", "exports"], function (require, exports) { [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1447,11 +4371,11 @@ define(["require", "exports"], function (require, exports) { }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-15062742831-export declare function something(): number;\r\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-4882119183-export {};\r\n" }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", @@ -1459,12 +4383,37 @@ define(["require", "exports"], function (require, exports) { }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", @@ -1490,19 +4439,21 @@ define(["require", "exports"], function (require, exports) { "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", [ @@ -1521,6 +4472,11 @@ define(["require", "exports"], function (require, exports) { "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", [ "./src/main.ts", [ @@ -1595,87 +4551,191 @@ define(["require", "exports"], function (require, exports) { "text": "./filePresent" }, { - "kind": 10, - "text": "./fileNotFound" + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 } - ], - "resolvedModules": [ - [ - "./filePresent", - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - } - ], - [ - "./fileNotFound", - { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] - } - ] - ], + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, { "kind": "RootFile", - "index": 0 + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 } ] }, { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], "includeReasons": [ { "kind": "RootFile", - "index": 1 + "index": 4 } ] }, { - "fileName": "./src/types.ts", - "originalFileName": "./src/types.ts", - "path": "./src/types.ts", - "resolvedPath": "./src/types.ts", - "version": "-12575322908-interface SomeType {}", + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", "flags": 0, "includeReasons": [ { "kind": "ReferenceFile", - "file": "./src/filewithref.ts", + "file": "./src/globalmain.ts", "index": 0 }, { "kind": "RootFile", - "index": 6 + "index": 8 } ] }, { - "fileName": "./src/fileWithRef.ts", - "originalFileName": "./src/fileWithRef.ts", - "path": "./src/filewithref.ts", - "resolvedPath": "./src/filewithref.ts", - "version": "-6085631553-/// ", + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", "flags": 0, "referencedFiles": [ - "./types.ts" + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" ], "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 7 } ] }, @@ -1694,7 +4754,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1758,7 +4818,7 @@ define(["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -1768,6 +4828,11 @@ define(["require", "exports"], function (require, exports) { "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1798,7 +4863,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 5378 + "size": 8923 } @@ -1813,7 +4878,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5]},"version":"FakeTSVersion"} @@ -1853,7 +4918,7 @@ Resolution for module './filePresent' was found in cache from location '/src/pro Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: @@ -1863,6 +4928,11 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -1876,7 +4946,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/src/main.d.ts] file written with same contents //// [/src/project/src/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[[6,2]],"semanticDiagnosticsPerFile":[1,4,3,2,6,8,7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":10,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1888,12 +4958,22 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts" ], "fileNamesList": [ @@ -1904,6 +4984,15 @@ Semantic diagnostics in builder refreshed for:: [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -1918,7 +5007,7 @@ Semantic diagnostics in builder refreshed for:: }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-15062742831-export declare function something(): number;\r\n" }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", @@ -1930,12 +5019,37 @@ Semantic diagnostics in builder refreshed for:: }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", @@ -1962,23 +5076,33 @@ Semantic diagnostics in builder refreshed for:: "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": { - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", "./src/main.ts", "./src/newfile.ts", "./src/types.ts" @@ -2111,7 +5235,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -2132,6 +5256,110 @@ Semantic diagnostics in builder refreshed for:: } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -2147,7 +5375,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -2208,7 +5436,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -2218,6 +5446,11 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -2245,7 +5478,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 4918 + "size": 8417 } @@ -2266,7 +5499,7 @@ Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: @@ -2276,6 +5509,11 @@ Program files:: /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts @@ -2294,7 +5532,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }",{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[2,3,7]],"referencedMap":[[4,1],[6,2],[8,3]],"exportedModulesMap":[[6,2]],"semanticDiagnosticsPerFile":[1,4,3,2,6,8,7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":8,"index":3}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[11,10,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":10,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2306,12 +5544,22 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts" ], "fileNamesList": [ @@ -2322,6 +5570,15 @@ define(["require", "exports", "./filePresent"], function (require, exports, file [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/filenotfound.ts", @@ -2336,7 +5593,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-15062742831-export declare function something(): number;\r\n" }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", @@ -2348,12 +5605,37 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", @@ -2380,23 +5662,33 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": { - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", "./src/main.ts", "./src/newfile.ts", "./src/types.ts" @@ -2529,7 +5821,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -2550,6 +5842,110 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -2565,7 +5961,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -2626,7 +6022,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -2636,6 +6032,11 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -2663,6 +6064,6 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4942 + "size": 8441 } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index a87f559306d0a..3bbb8cfedb654 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -17,6 +17,21 @@ export function something() { return 10; } //// [/user/username/projects/myproject/src/types.ts] interface SomeType {} +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalFilePresent.ts] +function globalSomething() { return 10; } + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -46,6 +61,13 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +/// +/// +function globalMain() { } define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -59,22 +81,25 @@ declare module "src/filePresent" { declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalMain(): void; declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":551,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:40 AM] Starting compilation in watch mode... +[12:00:46 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== @@ -92,6 +117,9 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFilePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. @@ -103,6 +131,7 @@ Resolution for module './filePresent' was found in cache from location '/user/us Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -110,18 +139,28 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:50 AM] Found 2 errors. Watching for file changes. +[12:00:56 AM] Found 4 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: @@ -130,6 +169,9 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -145,10 +187,18 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} FsWatches:: @@ -163,7 +213,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":551,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -174,13 +224,16 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 551, + "end": 859, "kind": "text" } ] @@ -189,7 +242,7 @@ exitCode:: ExitStatus.undefined "sections": [ { "pos": 0, - "end": 185, + "end": 327, "kind": "text" } ] @@ -202,10 +255,17 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -218,6 +278,10 @@ exitCode:: ExitStatus.undefined ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -238,6 +302,18 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "affectsGlobalScope": true + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } @@ -260,6 +336,14 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -372,7 +456,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, @@ -393,6 +477,66 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -440,7 +584,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 6 } ] } @@ -449,9 +593,44 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", "./src/main.ts", "./src/types.ts" ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], "resolutions": [ { "resolvedModule": { @@ -472,14 +651,14 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4189 + "size": 6431 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-551) +text: (0-859) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -492,6 +671,13 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +/// +/// +function globalMain() { } define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -501,55 +687,66 @@ define("src/main", ["require", "exports"], function (require, exports) { ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-185) +text: (0-327) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalMain(): void; declare module "src/main" { } ====================================================================== -Change:: Modify main file +Change:: Modify globalMain file Input:: -//// [/user/username/projects/myproject/src/main.ts] -import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +globalSomething(); Output:: -FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update -Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:57 AM] File change detected. Starting incremental compilation... +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +[12:01:03 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:07 AM] Found 2 errors. Watching for file changes. +[12:01:13 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: @@ -558,6 +755,9 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -573,10 +773,18 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} FsWatches:: @@ -601,16 +809,23 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +/// +/// +function globalMain() { } +globalSomething(); +define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - filePresent_1.something(); }); //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":616,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -621,13 +836,16 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 616, + "end": 878, "kind": "text" } ] @@ -636,7 +854,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "sections": [ { "pos": 0, - "end": 185, + "end": 327, "kind": "text" } ] @@ -649,10 +867,17 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -664,7 +889,1995 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/filepresent.ts" ], [ - "./src/types.ts" + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 6465 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-878) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +/// +/// +function globalMain() { } +globalSomething(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-327) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalMain(): void; +declare module "src/main" { } + +====================================================================== + + +Change:: Add new globalFile and update globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +/// +function globalMain() { } +globalSomething();globalFoo(); + +//// [/user/username/projects/myproject/src/globalNewFile.ts] +function globalFoo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +[12:01:26 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:3:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +3 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:01:36 AM] Found 4 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 970, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 365, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/globalfilenotfound.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7005 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-970) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-365) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/main" { } + +====================================================================== + + +Change:: Write file that could not be resolved by referenced path + +Input:: +//// [/user/username/projects/myproject/src/globalFileNotFound.ts] +function globalSomething2() { return 20; } + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:01:45 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:01:55 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1013, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 410, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7020 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1013) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-410) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/main" { } + +====================================================================== + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +[12:02:04 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:02:14 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Completely +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] file written with same contents +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1078, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 410, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" ] ], "fileInfos": { @@ -685,6 +2898,26 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } @@ -707,6 +2940,15 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -819,7 +3061,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -840,6 +3082,110 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -887,7 +3233,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -896,6 +3242,11 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/types.ts" ], @@ -919,14 +3270,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 4215 + "size": 7046 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-616) +text: (0-1078) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -939,6 +3290,18 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -949,13 +3312,18 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-185) +text: (0-410) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/main" { } ====================================================================== @@ -980,12 +3348,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:01:18 AM] File change detected. Starting incremental compilation... +[12:02:25 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -1007,11 +3375,11 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.t 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:28 AM] Found 2 errors. Watching for file changes. +[12:02:35 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1020,6 +3388,11 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1036,10 +3409,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} @@ -1066,6 +3449,18 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1087,6 +3482,11 @@ declare module "src/filePresent" { declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } @@ -1094,7 +3494,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":828,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":253,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1105,6 +3505,11 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -1112,7 +3517,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 828, + "end": 1290, "kind": "text" } ] @@ -1121,7 +3526,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 253, + "end": 478, "kind": "text" } ] @@ -1134,11 +3539,21 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", @@ -1153,6 +3568,15 @@ declare module "src/main" { } [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1176,6 +3600,26 @@ declare module "src/main" { } "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -1201,6 +3645,15 @@ declare module "src/main" { } "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1314,7 +3767,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1335,6 +3788,110 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1350,7 +3907,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -1414,7 +3971,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -1423,6 +3980,11 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1453,14 +4015,14 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4742 + "size": 7575 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-828) +text: (0-1290) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1473,6 +4035,18 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1490,13 +4064,18 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-253) +text: (0-478) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } @@ -1516,12 +4095,12 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:37 AM] File change detected. Starting incremental compilation... +[12:02:44 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -1540,11 +4119,11 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:47 AM] Found 2 errors. Watching for file changes. +[12:02:54 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1554,6 +4133,11 @@ Program files:: /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1570,10 +4154,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.ts: @@ -1609,6 +4203,18 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { exports.something2 = something2; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1633,6 +4239,11 @@ declare module "src/fileNotFound" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } @@ -1640,7 +4251,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1073,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":333,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1652,6 +4263,11 @@ declare module "src/main" { } "./src/fileNotFound.ts", "./src/types.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -1659,7 +4275,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1073, + "end": 1535, "kind": "text" } ] @@ -1668,7 +4284,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 333, + "end": 558, "kind": "text" } ] @@ -1682,12 +4298,22 @@ declare module "src/main" { } "./src/filenotfound.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1701,6 +4327,15 @@ declare module "src/main" { } [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1727,6 +4362,26 @@ declare module "src/main" { } "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -1752,6 +4407,15 @@ declare module "src/main" { } "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1879,7 +4543,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -1900,6 +4564,110 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1915,7 +4683,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1979,7 +4747,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -1989,6 +4757,11 @@ declare module "src/main" { } "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -2019,14 +4792,14 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5065 + "size": 7898 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-1073) +text: (0-1535) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -2046,6 +4819,18 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { exports.something2 = something2; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -2063,7 +4848,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-333) +text: (0-558) declare module "src/filePresent" { export function something(): number; } @@ -2073,6 +4858,11 @@ declare module "src/fileNotFound" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js index 868096e64f32a..bb6f067e7cb01 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -17,6 +17,21 @@ export function something() { return 10; } //// [/user/username/projects/myproject/src/types.ts] interface SomeType {} +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalFilePresent.ts] +function globalSomething() { return 10; } + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -74,6 +89,36 @@ interface SomeType { /// +//// [/user/username/projects/myproject/src/globalFilePresent.js] +function globalSomething() { return 10; } + + +//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] +declare function globalSomething(): number; + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] +/// +declare function globalAnotherFileWithSameReferenes(): void; + + +//// [/user/username/projects/myproject/src/globalMain.js] +/// +/// +function globalMain() { } + + +//// [/user/username/projects/myproject/src/globalMain.d.ts] +/// +declare function globalMain(): void; + + //// [/user/username/projects/myproject/src/main.js] define(["require", "exports"], function (require, exports) { "use strict"; @@ -86,18 +131,18 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:56 AM] Starting compilation in watch mode... +[12:01:14 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== @@ -115,6 +160,9 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFilePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. @@ -126,6 +174,7 @@ Resolution for module './filePresent' was found in cache from location '/user/us Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -133,18 +182,28 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:00 AM] Found 2 errors. Watching for file changes. +[12:01:18 AM] Found 4 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: @@ -153,6 +212,9 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -168,10 +230,18 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} FsWatches:: @@ -184,7 +254,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -195,10 +265,17 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -211,6 +288,10 @@ exitCode:: ExitStatus.undefined ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -236,6 +317,21 @@ exitCode:: ExitStatus.undefined "version": "-6085631553-/// ", "signature": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "signature": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "affectsGlobalScope": true + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" @@ -258,6 +354,14 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -269,6 +373,14 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -290,6 +402,9 @@ exitCode:: ExitStatus.undefined ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", [ "./src/main.ts", [ @@ -412,7 +527,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, @@ -433,6 +548,66 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -480,7 +655,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 6 } ] } @@ -489,9 +664,44 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", "./src/main.ts", "./src/types.ts" ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], "resolutions": [ { "resolvedModule": { @@ -512,47 +722,55 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4273 + "size": 6382 } -Change:: Modify main file +Change:: Modify globalMain file Input:: -//// [/user/username/projects/myproject/src/main.ts] -import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +globalSomething(); Output:: -FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update -Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:01:05 AM] File change detected. Starting incremental compilation... +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +[12:01:23 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:15 AM] Found 2 errors. Watching for file changes. +[12:02:15 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: @@ -561,9 +779,20 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts WatchedFiles:: @@ -577,10 +806,18 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} FsWatches:: @@ -592,17 +829,30 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/src/main.js] -define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); +//// [/user/username/projects/myproject/src/filePresent.js] file written with same contents +//// [/user/username/projects/myproject/src/filePresent.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/types.js] file written with same contents +//// [/user/username/projects/myproject/src/types.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/fileWithRef.js] file written with same contents +//// [/user/username/projects/myproject/src/fileWithRef.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalFilePresent.js] file written with same contents +//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] file written with same contents +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalMain.js] +/// +/// +function globalMain() { } +globalSomething(); +//// [/user/username/projects/myproject/src/globalMain.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -613,10 +863,17 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -629,6 +886,10 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -639,23 +900,38 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-13601649692-export declare function something(): number;\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-3531856636-export {};\n" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "signature": "-18175711127-/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-3531856636-export {};\n" } }, @@ -676,18 +952,19 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", [ @@ -705,6 +982,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", [ "./src/main.ts", [ @@ -766,85 +1046,2063 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ] }, { - "fileName": "./src/anotherFileReusingResolution.ts", - "originalFileName": "./src/anotherFileReusingResolution.ts", - "path": "./src/anotherfilereusingresolution.ts", - "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7036 +} + + +Change:: Add new globalFile and update globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +/// +function globalMain() { } +globalSomething();globalFoo(); + +//// [/user/username/projects/myproject/src/globalNewFile.ts] +function globalFoo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +[12:02:25 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalNewFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalNewFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:3:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +3 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:03:21 AM] Found 4 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/filePresent.js] file written with same contents +//// [/user/username/projects/myproject/src/filePresent.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/types.js] file written with same contents +//// [/user/username/projects/myproject/src/types.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/fileWithRef.js] file written with same contents +//// [/user/username/projects/myproject/src/fileWithRef.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalFilePresent.js] file written with same contents +//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] file written with same contents +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalMain.js] +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +//// [/user/username/projects/myproject/src/globalMain.d.ts] +/// +/// +declare function globalMain(): void; + + +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/globalfilenotfound.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "6306495272-/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7646 +} + +//// [/user/username/projects/myproject/src/globalNewFile.js] +function globalFoo() { return 20; } + + +//// [/user/username/projects/myproject/src/globalNewFile.d.ts] +declare function globalFoo(): number; + + + +Change:: Write file that could not be resolved by referenced path + +Input:: +//// [/user/username/projects/myproject/src/globalFileNotFound.ts] +function globalSomething2() { return 20; } + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:03:27 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:04:29 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/filePresent.js] file written with same contents +//// [/user/username/projects/myproject/src/filePresent.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/types.js] file written with same contents +//// [/user/username/projects/myproject/src/types.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/fileWithRef.js] file written with same contents +//// [/user/username/projects/myproject/src/fileWithRef.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalFilePresent.js] file written with same contents +//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] file written with same contents +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] +/// +/// +declare function globalAnotherFileWithSameReferenes(): void; + + +//// [/user/username/projects/myproject/src/globalMain.js] file written with same contents +//// [/user/username/projects/myproject/src/globalMain.d.ts] +/// +/// +/// +declare function globalMain(): void; + + +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7794 +} + +//// [/user/username/projects/myproject/src/globalNewFile.js] file written with same contents +//// [/user/username/projects/myproject/src/globalNewFile.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalFileNotFound.js] +function globalSomething2() { return 20; } + + +//// [/user/username/projects/myproject/src/globalFileNotFound.d.ts] +declare function globalSomething2(): number; + + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +[12:04:35 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:04:45 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Completely +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", "flags": 0, - "imports": [ - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ - "./filePresent", - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - } - ], - [ - "./fileNotFound", - { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] - } - ] + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" ], "includeReasons": [ { "kind": "RootFile", - "index": 0 + "index": 3 } ] }, { - "fileName": "./src/types.ts", - "originalFileName": "./src/types.ts", - "path": "./src/types.ts", - "resolvedPath": "./src/types.ts", - "version": "-12575322908-interface SomeType {}", + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", "flags": 0, "includeReasons": [ { "kind": "ReferenceFile", - "file": "./src/filewithref.ts", + "file": "./src/globalmain.ts", "index": 0 }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, { - "fileName": "./src/fileWithRef.ts", - "originalFileName": "./src/fileWithRef.ts", - "path": "./src/filewithref.ts", - "resolvedPath": "./src/filewithref.ts", - "version": "-6085631553-/// ", + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", "flags": 0, "referencedFiles": [ - "./types.ts" + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" ], "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 6 } ] }, @@ -895,7 +3153,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -904,6 +3162,11 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/types.ts" ], @@ -927,7 +3190,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4344 + "size": 7820 } @@ -950,12 +3213,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:01:23 AM] File change detected. Starting incremental compilation... +[12:04:53 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -983,11 +3246,11 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:37 AM] Found 2 errors. Watching for file changes. +[12:05:07 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -996,6 +3259,11 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1014,10 +3282,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} @@ -1034,7 +3312,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1045,11 +3323,21 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", @@ -1064,6 +3352,15 @@ exitCode:: ExitStatus.undefined [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1077,20 +3374,45 @@ exitCode:: ExitStatus.undefined }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-13601649692-export declare function something(): number;\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-3531856636-export {};\n" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", @@ -1118,19 +3440,21 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", [ @@ -1148,6 +3472,11 @@ exitCode:: ExitStatus.undefined ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", [ "./src/main.ts", [ @@ -1271,7 +3600,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1292,6 +3621,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1307,7 +3740,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -1371,7 +3804,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -1380,6 +3813,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1410,7 +3848,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4903 + "size": 8382 } //// [/user/username/projects/myproject/src/newFile.js] @@ -1439,12 +3877,12 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:43 AM] File change detected. Starting incremental compilation... +[12:05:13 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -1469,11 +3907,11 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:51 AM] Found 2 errors. Watching for file changes. +[12:05:21 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1483,6 +3921,11 @@ Program files:: /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1500,10 +3943,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.ts: @@ -1520,7 +3973,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1532,12 +3985,22 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1551,6 +4014,15 @@ exitCode:: ExitStatus.undefined [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1564,11 +4036,11 @@ exitCode:: ExitStatus.undefined }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-13601649692-export declare function something(): number;\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-3531856636-export {};\n" }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", @@ -1576,12 +4048,37 @@ exitCode:: ExitStatus.undefined }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", @@ -1609,19 +4106,21 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", [ @@ -1640,6 +4139,11 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", [ "./src/main.ts", [ @@ -1777,7 +4281,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -1798,6 +4302,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1813,7 +4421,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1877,7 +4485,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -1887,6 +4495,11 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1917,7 +4530,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5260 + "size": 8741 } //// [/user/username/projects/myproject/src/fileNotFound.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 6a9e7eb09ad30..a4bcb57d76803 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -17,6 +17,21 @@ export function something() { return 10; } //// [/user/username/projects/myproject/src/types.ts] interface SomeType {} +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalFilePresent.ts] +function globalSomething() { return 10; } + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -46,6 +61,13 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +/// +/// +function globalMain() { } define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -59,29 +81,36 @@ declare module "src/filePresent" { declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalMain(): void; declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":551,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:37 AM] Starting compilation in watch mode... +[12:00:43 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFilePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -89,18 +118,28 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:47 AM] Found 2 errors. Watching for file changes. +[12:00:53 AM] Found 4 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: @@ -109,6 +148,9 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -126,8 +168,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} FsWatches:: @@ -142,7 +192,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":551,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -153,13 +203,16 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 551, + "end": 859, "kind": "text" } ] @@ -168,7 +221,7 @@ exitCode:: ExitStatus.undefined "sections": [ { "pos": 0, - "end": 185, + "end": 327, "kind": "text" } ] @@ -181,10 +234,17 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -197,6 +257,10 @@ exitCode:: ExitStatus.undefined ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -217,6 +281,18 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "affectsGlobalScope": true + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } @@ -239,6 +315,14 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -351,7 +435,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, @@ -372,6 +456,66 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -419,7 +563,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 6 } ] } @@ -428,9 +572,44 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", "./src/main.ts", "./src/types.ts" ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], "resolutions": [ { "resolvedModule": { @@ -451,14 +630,14 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4189 + "size": 6431 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-551) +text: (0-859) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -471,6 +650,13 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +/// +/// +function globalMain() { } define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -480,55 +666,66 @@ define("src/main", ["require", "exports"], function (require, exports) { ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-185) +text: (0-327) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalMain(): void; declare module "src/main" { } ====================================================================== -Change:: Modify main file +Change:: Modify globalMain file Input:: -//// [/user/username/projects/myproject/src/main.ts] -import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +globalSomething(); Output:: -FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update -Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:54 AM] File change detected. Starting incremental compilation... +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +[12:01:00 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:04 AM] Found 2 errors. Watching for file changes. +[12:01:10 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: @@ -537,6 +734,9 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -554,8 +754,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} FsWatches:: @@ -580,16 +788,23 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +/// +/// +function globalMain() { } +globalSomething(); +define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - filePresent_1.something(); }); //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":616,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -600,13 +815,16 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 616, + "end": 878, "kind": "text" } ] @@ -615,7 +833,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "sections": [ { "pos": 0, - "end": 185, + "end": 327, "kind": "text" } ] @@ -628,10 +846,17 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -643,7 +868,1995 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/filepresent.ts" ], [ - "./src/types.ts" + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 6465 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-878) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +/// +/// +function globalMain() { } +globalSomething(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-327) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalMain(): void; +declare module "src/main" { } + +====================================================================== + + +Change:: Add new globalFile and update globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +/// +function globalMain() { } +globalSomething();globalFoo(); + +//// [/user/username/projects/myproject/src/globalNewFile.ts] +function globalFoo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +[12:01:23 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:3:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +3 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:01:33 AM] Found 4 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 970, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 365, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/globalfilenotfound.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7005 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-970) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-365) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/main" { } + +====================================================================== + + +Change:: Write file that could not be resolved by referenced path + +Input:: +//// [/user/username/projects/myproject/src/globalFileNotFound.ts] +function globalSomething2() { return 20; } + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:01:42 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:01:52 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1013, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 410, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7020 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1013) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-410) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/main" { } + +====================================================================== + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +[12:02:01 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:02:11 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Completely +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] file written with same contents +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1078, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 410, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" ] ], "fileInfos": { @@ -664,6 +2877,26 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } @@ -686,6 +2919,15 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -798,7 +3040,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -819,6 +3061,110 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -866,7 +3212,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -875,6 +3221,11 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/types.ts" ], @@ -898,14 +3249,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 4215 + "size": 7046 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-616) +text: (0-1078) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -918,6 +3269,18 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -928,13 +3291,18 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-185) +text: (0-410) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/main" { } ====================================================================== @@ -959,12 +3327,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:01:15 AM] File change detected. Starting incremental compilation... +[12:02:22 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -986,11 +3354,11 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.t 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:25 AM] Found 2 errors. Watching for file changes. +[12:02:32 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -999,6 +3367,11 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1017,8 +3390,18 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} @@ -1045,6 +3428,18 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1066,6 +3461,11 @@ declare module "src/filePresent" { declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } @@ -1073,7 +3473,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":828,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":253,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1084,6 +3484,11 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -1091,7 +3496,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 828, + "end": 1290, "kind": "text" } ] @@ -1100,7 +3505,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 253, + "end": 478, "kind": "text" } ] @@ -1113,11 +3518,21 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", @@ -1132,6 +3547,15 @@ declare module "src/main" { } [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1155,6 +3579,26 @@ declare module "src/main" { } "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -1180,6 +3624,15 @@ declare module "src/main" { } "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1293,7 +3746,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1314,6 +3767,110 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1329,7 +3886,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -1393,7 +3950,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -1402,6 +3959,11 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1432,14 +3994,14 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4742 + "size": 7575 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-828) +text: (0-1290) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1452,6 +4014,18 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1469,13 +4043,18 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-253) +text: (0-478) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } @@ -1495,12 +4074,12 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:34 AM] File change detected. Starting incremental compilation... +[12:02:41 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -1519,11 +4098,11 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:44 AM] Found 2 errors. Watching for file changes. +[12:02:51 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1533,6 +4112,11 @@ Program files:: /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1551,8 +4135,18 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.ts: @@ -1588,6 +4182,18 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { exports.something2 = something2; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1612,6 +4218,11 @@ declare module "src/fileNotFound" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } @@ -1619,7 +4230,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1073,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":333,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1631,6 +4242,11 @@ declare module "src/main" { } "./src/fileNotFound.ts", "./src/types.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -1638,7 +4254,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1073, + "end": 1535, "kind": "text" } ] @@ -1647,7 +4263,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 333, + "end": 558, "kind": "text" } ] @@ -1661,12 +4277,22 @@ declare module "src/main" { } "./src/filenotfound.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1680,6 +4306,15 @@ declare module "src/main" { } [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1706,6 +4341,26 @@ declare module "src/main" { } "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -1731,6 +4386,15 @@ declare module "src/main" { } "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1858,7 +4522,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -1879,6 +4543,110 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1894,7 +4662,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1958,7 +4726,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -1968,6 +4736,11 @@ declare module "src/main" { } "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1998,14 +4771,14 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5065 + "size": 7898 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-1073) +text: (0-1535) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -2025,6 +4798,18 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { exports.something2 = something2; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -2042,7 +4827,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-333) +text: (0-558) declare module "src/filePresent" { export function something(): number; } @@ -2052,6 +4837,11 @@ declare module "src/fileNotFound" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index 5f81dd2f56a6d..c11e04f7a06c9 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -17,6 +17,21 @@ export function something() { return 10; } //// [/user/username/projects/myproject/src/types.ts] interface SomeType {} +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalFilePresent.ts] +function globalSomething() { return 10; } + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -74,6 +89,36 @@ interface SomeType { /// +//// [/user/username/projects/myproject/src/globalFilePresent.js] +function globalSomething() { return 10; } + + +//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] +declare function globalSomething(): number; + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] +/// +declare function globalAnotherFileWithSameReferenes(): void; + + +//// [/user/username/projects/myproject/src/globalMain.js] +/// +/// +function globalMain() { } + + +//// [/user/username/projects/myproject/src/globalMain.d.ts] +/// +declare function globalMain(): void; + + //// [/user/username/projects/myproject/src/main.js] define(["require", "exports"], function (require, exports) { "use strict"; @@ -86,25 +131,29 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:53 AM] Starting compilation in watch mode... +[12:01:11 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFilePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -112,18 +161,28 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:54 AM] Found 2 errors. Watching for file changes. +[12:01:12 AM] Found 4 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: @@ -132,6 +191,9 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -149,8 +211,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} FsWatches:: @@ -163,43 +233,51 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -Change:: Modify main file +Change:: Modify globalMain file Input:: -//// [/user/username/projects/myproject/src/main.ts] -import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +globalSomething(); Output:: -FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update -Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:57 AM] File change detected. Starting incremental compilation... +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +[12:01:15 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:07 AM] Found 2 errors. Watching for file changes. +[12:02:07 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: @@ -208,9 +286,20 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts WatchedFiles:: @@ -226,8 +315,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} FsWatches:: @@ -239,17 +336,30 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/src/main.js] -define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - - +//// [/user/username/projects/myproject/src/filePresent.js] file written with same contents +//// [/user/username/projects/myproject/src/filePresent.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/types.js] file written with same contents +//// [/user/username/projects/myproject/src/types.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/fileWithRef.js] file written with same contents +//// [/user/username/projects/myproject/src/fileWithRef.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalFilePresent.js] file written with same contents +//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] file written with same contents +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalMain.js] +/// +/// +function globalMain() { } +globalSomething(); + + +//// [/user/username/projects/myproject/src/globalMain.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -260,10 +370,17 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -276,6 +393,10 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -286,23 +407,38 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-13601649692-export declare function something(): number;\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-3531856636-export {};\n" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "signature": "-18175711127-/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-3531856636-export {};\n" } }, @@ -323,18 +459,19 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", [ @@ -352,6 +489,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", [ "./src/main.ts", [ @@ -413,85 +553,2063 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ] }, { - "fileName": "./src/anotherFileReusingResolution.ts", - "originalFileName": "./src/anotherFileReusingResolution.ts", - "path": "./src/anotherfilereusingresolution.ts", - "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7036 +} + + +Change:: Add new globalFile and update globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +/// +function globalMain() { } +globalSomething();globalFoo(); + +//// [/user/username/projects/myproject/src/globalNewFile.ts] +function globalFoo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +[12:02:16 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalNewFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalNewFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:3:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +3 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:03:12 AM] Found 4 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/filePresent.js] file written with same contents +//// [/user/username/projects/myproject/src/filePresent.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/types.js] file written with same contents +//// [/user/username/projects/myproject/src/types.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/fileWithRef.js] file written with same contents +//// [/user/username/projects/myproject/src/fileWithRef.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalFilePresent.js] file written with same contents +//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] file written with same contents +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalMain.js] +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +//// [/user/username/projects/myproject/src/globalMain.d.ts] +/// +/// +declare function globalMain(): void; + + +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/globalfilenotfound.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "6306495272-/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7646 +} + +//// [/user/username/projects/myproject/src/globalNewFile.js] +function globalFoo() { return 20; } + + +//// [/user/username/projects/myproject/src/globalNewFile.d.ts] +declare function globalFoo(): number; + + + +Change:: Write file that could not be resolved by referenced path + +Input:: +//// [/user/username/projects/myproject/src/globalFileNotFound.ts] +function globalSomething2() { return 20; } + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:03:18 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:04:20 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/filePresent.js] file written with same contents +//// [/user/username/projects/myproject/src/filePresent.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/types.js] file written with same contents +//// [/user/username/projects/myproject/src/types.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/fileWithRef.js] file written with same contents +//// [/user/username/projects/myproject/src/fileWithRef.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalFilePresent.js] file written with same contents +//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] file written with same contents +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] +/// +/// +declare function globalAnotherFileWithSameReferenes(): void; + + +//// [/user/username/projects/myproject/src/globalMain.js] file written with same contents +//// [/user/username/projects/myproject/src/globalMain.d.ts] +/// +/// +/// +declare function globalMain(): void; + + +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7794 +} + +//// [/user/username/projects/myproject/src/globalNewFile.js] file written with same contents +//// [/user/username/projects/myproject/src/globalNewFile.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalFileNotFound.js] +function globalSomething2() { return 20; } + + +//// [/user/username/projects/myproject/src/globalFileNotFound.d.ts] +declare function globalSomething2(): number; + + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +[12:04:26 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:04:36 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Completely +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", "flags": 0, - "imports": [ + "includeReasons": [ { - "kind": 10, - "text": "./filePresent" + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 }, { - "kind": 10, - "text": "./fileNotFound" + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 } - ], - "resolvedModules": [ - [ - "./filePresent", - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - } - ], - [ - "./fileNotFound", - { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] - } - ] + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" ], "includeReasons": [ { "kind": "RootFile", - "index": 0 + "index": 3 } ] }, { - "fileName": "./src/types.ts", - "originalFileName": "./src/types.ts", - "path": "./src/types.ts", - "resolvedPath": "./src/types.ts", - "version": "-12575322908-interface SomeType {}", + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", "flags": 0, "includeReasons": [ { "kind": "ReferenceFile", - "file": "./src/filewithref.ts", + "file": "./src/globalmain.ts", "index": 0 }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, { - "fileName": "./src/fileWithRef.ts", - "originalFileName": "./src/fileWithRef.ts", - "path": "./src/filewithref.ts", - "resolvedPath": "./src/filewithref.ts", - "version": "-6085631553-/// ", + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", "flags": 0, "referencedFiles": [ - "./types.ts" + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" ], "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 6 } ] }, @@ -542,7 +2660,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -551,6 +2669,11 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/types.ts" ], @@ -574,7 +2697,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4344 + "size": 7820 } @@ -597,12 +2720,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:01:14 AM] File change detected. Starting incremental compilation... +[12:04:44 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -630,11 +2753,11 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:28 AM] Found 2 errors. Watching for file changes. +[12:04:58 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -643,6 +2766,11 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -663,8 +2791,18 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} @@ -681,7 +2819,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -692,11 +2830,21 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", @@ -711,6 +2859,15 @@ exitCode:: ExitStatus.undefined [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -724,20 +2881,45 @@ exitCode:: ExitStatus.undefined }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-13601649692-export declare function something(): number;\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-3531856636-export {};\n" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", @@ -765,19 +2947,21 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", [ @@ -795,6 +2979,11 @@ exitCode:: ExitStatus.undefined ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", [ "./src/main.ts", [ @@ -918,7 +3107,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -939,6 +3128,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -954,7 +3247,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -1018,7 +3311,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -1027,6 +3320,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1057,7 +3355,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4903 + "size": 8382 } //// [/user/username/projects/myproject/src/newFile.js] @@ -1086,12 +3384,12 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:34 AM] File change detected. Starting incremental compilation... +[12:05:04 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -1116,11 +3414,11 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:42 AM] Found 2 errors. Watching for file changes. +[12:05:12 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1130,6 +3428,11 @@ Program files:: /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1149,8 +3452,18 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.ts: @@ -1167,7 +3480,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1179,12 +3492,22 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1198,6 +3521,15 @@ exitCode:: ExitStatus.undefined [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1211,11 +3543,11 @@ exitCode:: ExitStatus.undefined }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-13601649692-export declare function something(): number;\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-3531856636-export {};\n" }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", @@ -1223,12 +3555,37 @@ exitCode:: ExitStatus.undefined }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", @@ -1256,19 +3613,21 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", [ @@ -1287,6 +3646,11 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", [ "./src/main.ts", [ @@ -1424,7 +3788,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -1445,6 +3809,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1460,7 +3928,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1524,7 +3992,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -1534,6 +4002,11 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1564,7 +4037,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5260 + "size": 8741 } //// [/user/username/projects/myproject/src/fileNotFound.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index c081afe2f277f..daa54a3ae93da 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -17,6 +17,21 @@ export function something() { return 10; } //// [/user/username/projects/myproject/src/types.ts] interface SomeType {} +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalFilePresent.ts] +function globalSomething() { return 10; } + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -36,13 +51,13 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:31 AM] Starting compilation in watch mode... +[12:00:37 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== @@ -60,6 +75,9 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFilePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. @@ -71,6 +89,7 @@ Resolution for module './filePresent' was found in cache from location '/user/us Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -78,18 +97,28 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:38 AM] Found 2 errors. Watching for file changes. +[12:00:44 AM] Found 4 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: @@ -98,6 +127,9 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -113,10 +145,18 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} FsWatches:: @@ -141,6 +181,13 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +/// +/// +function globalMain() { } define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -154,11 +201,14 @@ declare module "src/filePresent" { declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalMain(): void; declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":551,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -169,13 +219,16 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 551, + "end": 859, "kind": "text" } ] @@ -184,7 +237,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 185, + "end": 327, "kind": "text" } ] @@ -197,10 +250,17 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -213,6 +273,10 @@ declare module "src/main" { } ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -233,6 +297,18 @@ declare module "src/main" { } "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "affectsGlobalScope": true + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" } @@ -255,6 +331,14 @@ declare module "src/main" { } "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -367,7 +451,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, @@ -388,6 +472,66 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -435,7 +579,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 6 } ] } @@ -444,9 +588,44 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", "./src/main.ts", "./src/types.ts" ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], "resolutions": [ { "resolvedModule": { @@ -467,14 +646,14 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4189 + "size": 6431 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-551) +text: (0-859) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -487,6 +666,13 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +/// +/// +function globalMain() { } define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -496,55 +682,66 @@ define("src/main", ["require", "exports"], function (require, exports) { ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-185) +text: (0-327) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalMain(): void; declare module "src/main" { } ====================================================================== -Change:: Modify main file +Change:: Modify globalMain file Input:: -//// [/user/username/projects/myproject/src/main.ts] -import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +globalSomething(); Output:: -FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update -Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:45 AM] File change detected. Starting incremental compilation... +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +[12:00:51 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:55 AM] Found 2 errors. Watching for file changes. +[12:01:01 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: @@ -553,6 +750,9 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts No cached semantic diagnostics in the builder:: @@ -568,10 +768,18 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} FsWatches:: @@ -596,16 +804,23 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +/// +/// +function globalMain() { } +globalSomething(); +define("src/main", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - filePresent_1.something(); }); //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":616,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":185,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -616,13 +831,16 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/main.ts" ], "js": { "sections": [ { "pos": 0, - "end": 616, + "end": 878, "kind": "text" } ] @@ -631,7 +849,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "sections": [ { "pos": 0, - "end": 185, + "end": 327, "kind": "text" } ] @@ -644,10 +862,17 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -659,7 +884,1995 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/filepresent.ts" ], [ - "./src/types.ts" + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 6465 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-878) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +/// +/// +function globalMain() { } +globalSomething(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-327) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalMain(): void; +declare module "src/main" { } + +====================================================================== + + +Change:: Add new globalFile and update globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +/// +function globalMain() { } +globalSomething();globalFoo(); + +//// [/user/username/projects/myproject/src/globalNewFile.ts] +function globalFoo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +[12:01:14 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:3:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +3 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:01:24 AM] Found 4 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 970, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 365, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/globalfilenotfound.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7005 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-970) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-365) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/main" { } + +====================================================================== + + +Change:: Write file that could not be resolved by referenced path + +Input:: +//// [/user/username/projects/myproject/src/globalFileNotFound.ts] +function globalSomething2() { return 20; } + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:01:33 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:01:43 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1013, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 410, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7020 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1013) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-410) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/main" { } + +====================================================================== + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +[12:01:52 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:02:02 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Completely +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] file written with same contents +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1078, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 410, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" ] ], "fileInfos": { @@ -680,6 +2893,26 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, "./src/main.ts": { "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" } @@ -702,6 +2935,15 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -814,7 +3056,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -835,6 +3077,110 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -882,7 +3228,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -891,6 +3237,11 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/types.ts" ], @@ -914,14 +3265,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 4215 + "size": 7046 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-616) +text: (0-1078) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -934,6 +3285,18 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { "use strict"; exports.__esModule = true; @@ -944,13 +3307,18 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-185) +text: (0-410) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/main" { } ====================================================================== @@ -975,12 +3343,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:01:06 AM] File change detected. Starting incremental compilation... +[12:02:13 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -1002,11 +3370,11 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.t 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:16 AM] Found 2 errors. Watching for file changes. +[12:02:23 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1015,6 +3383,11 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1031,10 +3404,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} @@ -1061,6 +3444,18 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1082,6 +3477,11 @@ declare module "src/filePresent" { declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } @@ -1089,7 +3489,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":828,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":253,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1100,6 +3500,11 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -1107,7 +3512,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 828, + "end": 1290, "kind": "text" } ] @@ -1116,7 +3521,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 253, + "end": 478, "kind": "text" } ] @@ -1129,11 +3534,21 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", @@ -1148,6 +3563,15 @@ declare module "src/main" { } [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1171,6 +3595,26 @@ declare module "src/main" { } "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -1196,6 +3640,15 @@ declare module "src/main" { } "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1309,7 +3762,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1330,6 +3783,110 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1345,7 +3902,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -1409,7 +3966,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -1418,6 +3975,11 @@ declare module "src/main" { } "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1448,14 +4010,14 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 4742 + "size": 7575 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-828) +text: (0-1290) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1468,6 +4030,18 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req exports.__esModule = true; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1485,13 +4059,18 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-253) +text: (0-478) declare module "src/filePresent" { export function something(): number; } declare module "src/anotherFileReusingResolution" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } @@ -1511,12 +4090,12 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:25 AM] File change detected. Starting incremental compilation... +[12:02:32 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -1535,11 +4114,11 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:35 AM] Found 2 errors. Watching for file changes. +[12:02:42 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1549,6 +4128,11 @@ Program files:: /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1565,10 +4149,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.ts: @@ -1604,6 +4198,18 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { exports.something2 = something2; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -1628,6 +4234,11 @@ declare module "src/fileNotFound" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } @@ -1635,7 +4246,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1073,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":333,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1647,6 +4258,11 @@ declare module "src/main" { } "./src/fileNotFound.ts", "./src/types.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/main.ts" ], @@ -1654,7 +4270,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1073, + "end": 1535, "kind": "text" } ] @@ -1663,7 +4279,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 333, + "end": 558, "kind": "text" } ] @@ -1677,12 +4293,22 @@ declare module "src/main" { } "./src/filenotfound.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1696,6 +4322,15 @@ declare module "src/main" { } [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1722,6 +4357,26 @@ declare module "src/main" { } "./src/filewithref.ts": { "version": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }" }, @@ -1747,6 +4402,15 @@ declare module "src/main" { } "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1874,7 +4538,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -1895,6 +4559,110 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1910,7 +4678,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1974,7 +4742,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -1984,6 +4752,11 @@ declare module "src/main" { } "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -2014,14 +4787,14 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 5065 + "size": 7898 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /user/username/projects/myproject/outFile.js ---------------------------------------------------------------------- -text: (0-1073) +text: (0-1535) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -2041,6 +4814,18 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { exports.something2 = something2; }); /// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); define("src/newFile", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -2058,7 +4843,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /user/username/projects/myproject/outFile.d.ts ---------------------------------------------------------------------- -text: (0-333) +text: (0-558) declare module "src/filePresent" { export function something(): number; } @@ -2068,6 +4853,11 @@ declare module "src/fileNotFound" { } interface SomeType { } +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index b0ac25df926f0..d9732d1be3b75 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -17,6 +17,21 @@ export function something() { return 10; } //// [/user/username/projects/myproject/src/types.ts] interface SomeType {} +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalFilePresent.ts] +function globalSomething() { return 10; } + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -36,13 +51,13 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:31 AM] Starting compilation in watch mode... +[12:00:37 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== @@ -60,6 +75,9 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFilePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. @@ -71,6 +89,7 @@ Resolution for module './filePresent' was found in cache from location '/user/us Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -78,18 +97,28 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:54 AM] Found 2 errors. Watching for file changes. +[12:01:12 AM] Found 4 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: @@ -98,6 +127,9 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: @@ -106,6 +138,9 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts WatchedFiles:: @@ -119,10 +154,18 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} FsWatches:: @@ -175,6 +218,36 @@ interface SomeType { /// +//// [/user/username/projects/myproject/src/globalFilePresent.js] +function globalSomething() { return 10; } + + +//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] +declare function globalSomething(): number; + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] +/// +declare function globalAnotherFileWithSameReferenes(): void; + + +//// [/user/username/projects/myproject/src/globalMain.js] +/// +/// +function globalMain() { } + + +//// [/user/username/projects/myproject/src/globalMain.d.ts] +/// +declare function globalMain(): void; + + //// [/user/username/projects/myproject/src/main.js] define(["require", "exports"], function (require, exports) { "use strict"; @@ -187,7 +260,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ","-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2],[6,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -198,10 +271,17 @@ export {}; "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -214,6 +294,10 @@ export {}; ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -239,6 +323,21 @@ export {}; "version": "-6085631553-/// ", "signature": "-6085631553-/// " }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "signature": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "affectsGlobalScope": true + }, "./src/main.ts": { "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" @@ -261,6 +360,14 @@ export {}; "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -272,6 +379,14 @@ export {}; "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] @@ -293,6 +408,9 @@ export {}; ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", [ "./src/main.ts", [ @@ -415,7 +533,7 @@ export {}; }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, @@ -436,6 +554,66 @@ export {}; } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-12326309214-/// \n/// \nfunction globalMain() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, { "fileName": "./src/main.ts", "originalFileName": "./src/main.ts", @@ -483,7 +661,7 @@ export {}; "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 6 } ] } @@ -492,9 +670,44 @@ export {}; "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", "./src/main.ts", "./src/types.ts" ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], "resolutions": [ { "resolvedModule": { @@ -515,47 +728,55 @@ export {}; } }, "version": "FakeTSVersion", - "size": 4273 + "size": 6382 } -Change:: Modify main file +Change:: Modify globalMain file Input:: -//// [/user/username/projects/myproject/src/main.ts] -import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +globalSomething(); Output:: -FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update -Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:00:59 AM] File change detected. Starting incremental compilation... +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +[12:01:17 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:09 AM] Found 2 errors. Watching for file changes. +[12:02:09 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: @@ -564,9 +785,20 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts WatchedFiles:: @@ -580,10 +812,18 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} FsWatches:: @@ -595,17 +835,30 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/src/main.js] -define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); +//// [/user/username/projects/myproject/src/filePresent.js] file written with same contents +//// [/user/username/projects/myproject/src/filePresent.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/types.js] file written with same contents +//// [/user/username/projects/myproject/src/types.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/fileWithRef.js] file written with same contents +//// [/user/username/projects/myproject/src/fileWithRef.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalFilePresent.js] file written with same contents +//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] file written with same contents +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalMain.js] +/// +/// +function globalMain() { } +globalSomething(); +//// [/user/username/projects/myproject/src/globalMain.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4]],"referencedMap":[[3,1],[5,2],[6,1]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[6,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":7,"originalFileName":7,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":6,"index":0},{"kind":3,"file":6,"index":1}]},{"fileName":8,"originalFileName":8,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":4}]},{"fileName":9,"originalFileName":9,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[8,7,9,6,4],"resolutions":[{"resolvedModule":{"resolvedFileName":7,"extension":".ts"}},{"failedLookupLocations":[10,11,12,13,14]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -616,10 +869,17 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalmain.ts", "./src/main.ts", + "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalMain.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -632,6 +892,10 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ], [ "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" ] ], "fileInfos": { @@ -642,23 +906,38 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-13601649692-export declare function something(): number;\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-3531856636-export {};\n" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "signature": "-18175711127-/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-3531856636-export {};\n" } }, @@ -679,18 +958,19 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], "./src/main.ts": [ "./src/filepresent.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", [ @@ -708,6 +988,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", [ "./src/main.ts", [ @@ -769,85 +1052,2063 @@ define(["require", "exports", "./filePresent"], function (require, exports, file ] }, { - "fileName": "./src/anotherFileReusingResolution.ts", - "originalFileName": "./src/anotherFileReusingResolution.ts", - "path": "./src/anotherfilereusingresolution.ts", - "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7036 +} + + +Change:: Add new globalFile and update globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +/// +function globalMain() { } +globalSomething();globalFoo(); + +//// [/user/username/projects/myproject/src/globalNewFile.ts] +function globalFoo() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file +[12:02:19 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalNewFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalNewFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +2 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/globalMain.ts:3:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. + +3 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:03:15 AM] Found 4 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/filePresent.js] file written with same contents +//// [/user/username/projects/myproject/src/filePresent.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/types.js] file written with same contents +//// [/user/username/projects/myproject/src/types.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/fileWithRef.js] file written with same contents +//// [/user/username/projects/myproject/src/fileWithRef.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalFilePresent.js] file written with same contents +//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] file written with same contents +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalMain.js] +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +//// [/user/username/projects/myproject/src/globalMain.d.ts] +/// +/// +declare function globalMain(): void; + + +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/globalfilenotfound.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "6306495272-/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/globalfilenotfound.ts": 0 + }, + "missingPaths": [ + "./src/globalfilenotfound.ts" + ], + "fileProcessingDiagnostics": [ + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + }, + { + "kind": "FilePreprocessingFileExplainingDiagnostic", + "fileProcessingReason": { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + }, + "diagnostic": "File_0_not_found", + "args": [ + "/user/username/projects/myproject/src/globalFileNotFound.ts" + ] + } + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7646 +} + +//// [/user/username/projects/myproject/src/globalNewFile.js] +function globalFoo() { return 20; } + + +//// [/user/username/projects/myproject/src/globalNewFile.d.ts] +declare function globalFoo(): number; + + + +Change:: Write file that could not be resolved by referenced path + +Input:: +//// [/user/username/projects/myproject/src/globalFileNotFound.ts] +function globalSomething2() { return 20; } + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:03:21 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:04:23 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/filePresent.js] file written with same contents +//// [/user/username/projects/myproject/src/filePresent.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/types.js] file written with same contents +//// [/user/username/projects/myproject/src/types.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/fileWithRef.js] file written with same contents +//// [/user/username/projects/myproject/src/fileWithRef.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalFilePresent.js] file written with same contents +//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] file written with same contents +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] +/// +/// +declare function globalAnotherFileWithSameReferenes(): void; + + +//// [/user/username/projects/myproject/src/globalMain.js] file written with same contents +//// [/user/username/projects/myproject/src/globalMain.d.ts] +/// +/// +/// +declare function globalMain(): void; + + +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7794 +} + +//// [/user/username/projects/myproject/src/globalNewFile.js] file written with same contents +//// [/user/username/projects/myproject/src/globalNewFile.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/globalFileNotFound.js] +function globalSomething2() { return 20; } + + +//// [/user/username/projects/myproject/src/globalFileNotFound.d.ts] +declare function globalSomething2(): number; + + + +Change:: Modify main file + +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound";something(); + + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +[12:04:29 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:04:39 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: Completely +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/main.ts": { + "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", "flags": 0, - "imports": [ - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ - "./filePresent", - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - } - ], - [ - "./fileNotFound", - { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] - } - ] + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" ], "includeReasons": [ { "kind": "RootFile", - "index": 0 + "index": 3 } ] }, { - "fileName": "./src/types.ts", - "originalFileName": "./src/types.ts", - "path": "./src/types.ts", - "resolvedPath": "./src/types.ts", - "version": "-12575322908-interface SomeType {}", + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", "flags": 0, "includeReasons": [ { "kind": "ReferenceFile", - "file": "./src/filewithref.ts", + "file": "./src/globalmain.ts", "index": 0 }, { "kind": "RootFile", - "index": 4 + "index": 7 } ] }, { - "fileName": "./src/fileWithRef.ts", - "originalFileName": "./src/fileWithRef.ts", - "path": "./src/filewithref.ts", - "resolvedPath": "./src/filewithref.ts", - "version": "-6085631553-/// ", + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", "flags": 0, "referencedFiles": [ - "./types.ts" + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" ], "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 6 } ] }, @@ -898,7 +3159,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -907,6 +3168,11 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/types.ts" ], @@ -930,7 +3196,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 4344 + "size": 7820 } @@ -953,12 +3219,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:01:17 AM] File change detected. Starting incremental compilation... +[12:04:47 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -986,11 +3252,11 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:31 AM] Found 2 errors. Watching for file changes. +[12:05:01 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -999,6 +3265,11 @@ Program files:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1017,10 +3288,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} @@ -1037,7 +3318,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[2,6]],"referencedMap":[[3,1],[5,2],[7,3]],"exportedModulesMap":[[3,1],[5,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,[7,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],6,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":8,"originalFileName":8,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":7,"index":1},{"kind":3,"file":7,"index":2}]},{"fileName":9,"originalFileName":9,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":11,"originalFileName":11,"path":6,"resolvedPath":6,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":7,"index":0},{"kind":0,"index":4}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":3}]}],"rootFileNames":[9,8,10,7,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":8,"extension":".ts"}},{"failedLookupLocations":[12,13,14,15,16]},{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1048,11 +3329,21 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", @@ -1067,6 +3358,15 @@ exitCode:: ExitStatus.undefined [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1080,20 +3380,45 @@ exitCode:: ExitStatus.undefined }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-13601649692-export declare function something(): number;\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-3531856636-export {};\n" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", @@ -1121,19 +3446,21 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", [ @@ -1151,6 +3478,11 @@ exitCode:: ExitStatus.undefined ], "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", [ "./src/main.ts", [ @@ -1274,7 +3606,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1295,6 +3627,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1310,7 +3746,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 9 } ] }, @@ -1374,7 +3810,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 8 } ] } @@ -1383,6 +3819,11 @@ exitCode:: ExitStatus.undefined "./src/anotherFileReusingResolution.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1413,7 +3854,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4903 + "size": 8382 } //// [/user/username/projects/myproject/src/newFile.js] @@ -1442,12 +3883,12 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:37 AM] File change detected. Starting incremental compilation... +[12:05:07 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. @@ -1472,11 +3913,11 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:45 AM] Found 2 errors. Watching for file changes. +[12:05:15 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -1486,6 +3927,11 @@ Program files:: /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts @@ -1503,10 +3949,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.ts: @@ -1523,7 +3979,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[2,7]],"referencedMap":[[3,1],[6,2],[8,3]],"exportedModulesMap":[[3,1],[6,2]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,[8,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],7,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":9,"originalFileName":9,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":8,"index":1},{"kind":3,"file":8,"index":2}]},{"fileName":10,"originalFileName":10,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":11,"originalFileName":11,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":6}]},{"fileName":12,"originalFileName":12,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":13,"originalFileName":13,"path":7,"resolvedPath":7,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":8,"index":0},{"kind":0,"index":5}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":4}]}],"rootFileNames":[10,11,9,12,8,13,5],"resolutions":[{"resolvedModule":{"resolvedFileName":9,"extension":".ts"}},{"failedLookupLocations":[11,14,15,16,17]},{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1535,12 +3991,22 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts", "./src/types.ts", "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1554,6 +4020,15 @@ exitCode:: ExitStatus.undefined [ "./src/types.ts" ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], [ "./src/filepresent.ts", "./src/newfile.ts" @@ -1567,11 +4042,11 @@ exitCode:: ExitStatus.undefined }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "11598859296-export function something() { return 10; }" + "signature": "-13601649692-export declare function something(): number;\n" }, "./src/anotherfilereusingresolution.ts": { "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "signature": "-3531856636-export {};\n" }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", @@ -1579,12 +4054,37 @@ exitCode:: ExitStatus.undefined }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-6085631553-/// " + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", @@ -1612,19 +4112,21 @@ exitCode:: ExitStatus.undefined "./src/filewithref.ts": [ "./src/types.ts" ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], "./src/main.ts": [ "./src/filepresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ] - }, + "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", [ @@ -1643,6 +4145,11 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", [ "./src/main.ts", [ @@ -1780,7 +4287,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 11 } ] }, @@ -1801,6 +4308,110 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, { "fileName": "./src/newFile.ts", "originalFileName": "./src/newFile.ts", @@ -1816,7 +4427,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 10 } ] }, @@ -1880,7 +4491,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 9 } ] } @@ -1890,6 +4501,11 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", "./src/main.ts", "./src/newFile.ts", "./src/types.ts" @@ -1920,7 +4536,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 5260 + "size": 8741 } //// [/user/username/projects/myproject/src/fileNotFound.js] From 0080cb5b55168c65e04120e01f80e861f99dcfb4 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 4 Mar 2021 12:27:51 -0800 Subject: [PATCH 35/48] MissingFilePaths are on demand and dont need to be stored --- src/compiler/builder.ts | 8 ++----- src/compiler/program.ts | 24 +++++++++++++------ src/testRunner/unittests/tsbuild/helpers.ts | 2 -- ...nd-uses-it-for-new-program-with-outFile.js | 21 +++++----------- ...-resolution-and-uses-it-for-new-program.js | 21 +++++----------- ...er-resolutions-are-cleaned-with-outFile.js | 21 +++++----------- ...can-build-after-resolutions-are-cleaned.js | 21 +++++----------- ...-saved-in-tsbuildinfo-file-with-outFile.js | 16 ++++--------- ...ons-have-been-saved-in-tsbuildinfo-file.js | 16 ++++--------- ...nd-uses-it-for-new-program-with-outFile.js | 21 +++++----------- ...-resolution-and-uses-it-for-new-program.js | 21 +++++----------- ...nd-uses-it-for-new-program-with-outFile.js | 21 +++++----------- ...-resolution-and-uses-it-for-new-program.js | 21 +++++----------- ...er-resolutions-are-cleaned-with-outFile.js | 21 +++++----------- ...can-build-after-resolutions-are-cleaned.js | 21 +++++----------- ...-saved-in-tsbuildinfo-file-with-outFile.js | 23 ++++++------------ ...ons-have-been-saved-in-tsbuildinfo-file.js | 16 ++++--------- ...nd-uses-it-for-new-program-with-outFile.js | 21 +++++----------- ...-resolution-and-uses-it-for-new-program.js | 21 +++++----------- 19 files changed, 113 insertions(+), 244 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index f2bb0fcbc266d..56400d3e2b65a 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -87,7 +87,6 @@ namespace ts { sourceFileToPackageName: ESMap; projectReferences: readonly ProjectReference[] | undefined; resolvedProjectReferences: readonly (ResolvedProjectReferenceOfProgramFromBuildInfo | undefined)[] | undefined; - missingPaths: readonly Path[]; resolvedTypeReferenceDirectives: ESMap; fileProcessingDiagnostics: FilePreprocessingDiagnostic[] | undefined; } @@ -351,7 +350,6 @@ namespace ts { sourceFileToPackageName: state.program.sourceFileToPackageName, projectReferences: state.program.getProjectReferences(), resolvedProjectReferences: state.program.getResolvedProjectReferences()?.map(toResolvedProjectReferenceOfProgramFromBuildInfo), - missingPaths: state.program.getMissingFilePaths(), resolvedTypeReferenceDirectives: state.program.getResolvedTypeReferenceDirectives(), fileProcessingDiagnostics: state.program.getFileProcessingDiagnostics(), }; @@ -920,7 +918,6 @@ namespace ts { filesByName: readonly PersistedProgramFileByNameEntry[] | undefined; projectReferences: readonly PersistedProgramProjectReference[] | undefined; resolvedProjectReferences: readonly (PersistedProgramResolvedProjectReference | undefined)[] | undefined; - missingPaths: readonly ProgramBuildInfoFileId[] | undefined; resolvedTypeReferenceDirectives: readonly PersistedProgramResolutionEntry[] | undefined; fileProcessingDiagnostics: readonly PersistedProgramFilePreprocessingDiagnostic[] | undefined; resolutions: readonly PersistedProgramResolution[] | undefined; @@ -1032,7 +1029,6 @@ namespace ts { filesByName, projectReferences: program.getProjectReferences()?.map(toPersistedProgramProjectReference), resolvedProjectReferences: program.getResolvedProjectReferences()?.map(toPersistedProgramResolvedProjectReference), - missingPaths: mapToReadonlyArrayOrUndefined(program.getMissingFilePaths(), toFileId), resolvedTypeReferenceDirectives: toPersistedProgramResolutionMap(program.getResolvedTypeReferenceDirectives()), fileProcessingDiagnostics: mapToReadonlyArrayOrUndefined(program.getFileProcessingDiagnostics(), toPersistedProgramFilePreprocessingDiagnostic), resolutions: mapToReadonlyArrayOrUndefined(resolutions, toPersistedProgramResolution), @@ -1691,7 +1687,6 @@ namespace ts { sourceFileToPackageName, projectReferences: program.peristedProgram.projectReferences?.map(toProjectReference), resolvedProjectReferences: program.peristedProgram.resolvedProjectReferences?.map(toResolvedProjectReference), - missingPaths: mapToReadonlyArray(program.peristedProgram.missingPaths, toFilePath), resolvedTypeReferenceDirectives: toResolutionMap(program.peristedProgram.resolvedTypeReferenceDirectives) || new Map(), fileProcessingDiagnostics: map(program.peristedProgram.fileProcessingDiagnostics, toFileProcessingDiagnostic), }; @@ -1827,6 +1822,7 @@ namespace ts { } function createProgramFromBuildInfo(persistedProgramInfo: PersistedProgramState, compilerOptions: CompilerOptions): ProgramFromBuildInfo { + let missingFilePaths: readonly Path[] | undefined; return { programFromBuildInfo: true, getCompilerOptions: () => compilerOptions, @@ -1838,7 +1834,7 @@ namespace ts { }, getProjectReferences: () => persistedProgramInfo.projectReferences, getResolvedProjectReferences: () => persistedProgramInfo.resolvedProjectReferences, - getMissingFilePaths: () => persistedProgramInfo.missingPaths, + getMissingFilePaths: () => missingFilePaths ||= getMissingFilePaths(persistedProgramInfo.filesByName), getFileIncludeReasons: () => persistedProgramInfo.fileIncludeReasons, getResolvedTypeReferenceDirectives: () => persistedProgramInfo.resolvedTypeReferenceDirectives, getFilesByNameMap: () => persistedProgramInfo.filesByName, diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 2a60cd9174ecb..d2f2bc0a16977 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -760,6 +760,17 @@ namespace ts { } } + /*@internal*/ + export function getMissingFilePaths(filesByName: ESMap): readonly Path[] { + let missingFilePaths: Path[] | undefined; + filesByName.forEach((file, path) => { + if (file === missingFile) { + (missingFilePaths ||= []).push(path); + } + }); + return missingFilePaths || emptyArray; + } + export function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): readonly Diagnostic[] { return configFileParseResult.options.configFile ? [...configFileParseResult.options.configFile.parseDiagnostics, ...configFileParseResult.errors] : @@ -1044,7 +1055,6 @@ namespace ts { } } - missingFilePaths = arrayFrom(mapDefinedIterator(filesByName.entries(), ([path, file]) => file === missingFile ? path : undefined)); files = stableSort(processingDefaultLibFiles, compareDefaultLibFiles).concat(processingOtherFiles); processingDefaultLibFiles = undefined; processingOtherFiles = undefined; @@ -1052,8 +1062,6 @@ namespace ts { filesByNameIgnoreCase = undefined; } - Debug.assert(!!missingFilePaths); - if (oldProgram && !isProgramFromBuildInfo(oldProgram)) { // Release any files we have acquired in the old program but are // not part of the new program. @@ -1102,7 +1110,7 @@ namespace ts { getSourceFile, getSourceFileByPath, getSourceFiles: () => files, - getMissingFilePaths: () => missingFilePaths!, // TODO: GH#18217 + getMissingFilePaths, getFilesByNameMap: () => filesByName, getCompilerOptions: () => options, getSyntacticDiagnostics, @@ -1177,6 +1185,10 @@ namespace ts { return program; + function getMissingFilePaths() { + return missingFilePaths ||= ts.getMissingFilePaths(filesByName); + } + function resolveModuleNamesWorker(moduleNames: string[], containingFile: SourceFile, reusedNames: string[] | undefined): readonly ResolvedModuleWithFailedLookupLocations[] { if (!moduleNames.length) return emptyArray; const containingFileName = getNormalizedAbsolutePath(containingFile.originalFileName, currentDirectory); @@ -1687,8 +1699,6 @@ namespace ts { return StructureIsReused.SafeModules; } - missingFilePaths = oldProgram.getMissingFilePaths(); - // update fileName -> file mapping for (let index = 0; index < newSourceFiles.length; index++) { const newSourceFile = newSourceFiles[index]; @@ -1763,7 +1773,7 @@ namespace ts { // Use local caches const path = toPath(f); if (getSourceFileByPath(path)) return true; - if (contains(missingFilePaths, path)) return false; + if (contains(getMissingFilePaths(), path)) return false; // Before falling back to the host return host.fileExists(f); }, diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index 30b32424e30d9..da6997bfb06ac 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -322,7 +322,6 @@ interface Symbol { filesByName: MapLike | undefined; projectReferences: readonly ProjectReference[] | undefined; resolvedProjectReferences: readonly (ReadablePersistedProgramResolvedProjectReference | undefined)[] | undefined; - missingPaths: readonly string[] | undefined; resolvedTypeReferenceDirectives: readonly ReadablePersistedProgramResolutionEntry[] | undefined; fileProcessingDiagnostics: readonly ReadablePersistedProgramFilePreprocessingDiagnostic[] | undefined; resolutions: readonly ReadablePersistedProgramResolution[] | undefined; @@ -379,7 +378,6 @@ interface Symbol { filesByName, projectReferences: buildInfo.program.peristedProgram.projectReferences?.map(toProjectReference), resolvedProjectReferences: buildInfo.program.peristedProgram.resolvedProjectReferences?.map(toReadablePersistedProgramResolvedProjectReference), - missingPaths: buildInfo.program.peristedProgram.missingPaths?.map(toFileName), resolvedTypeReferenceDirectives: buildInfo.program.peristedProgram.resolvedTypeReferenceDirectives?.map(toReadablePersistedProgramResolutionEntry), fileProcessingDiagnostics: buildInfo.program.peristedProgram.fileProcessingDiagnostics?.map(toReadablePersistedProgramFilePreprocessingDiagnostic), resolutions diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 16262268799da..3e3d472fd4e95 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -114,7 +114,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -469,9 +469,6 @@ No cached semantic diagnostics in the builder:: "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -518,7 +515,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 6105 + "size": 6085 } @@ -626,7 +623,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -981,9 +978,6 @@ No cached semantic diagnostics in the builder:: "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1030,7 +1024,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 6139 + "size": 6119 } @@ -1099,7 +1093,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1487,9 +1481,6 @@ No cached semantic diagnostics in the builder:: "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1536,7 +1527,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 6654 + "size": 6634 } diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 16b2b866f1727..7c42f12759f99 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -123,7 +123,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -573,9 +573,6 @@ Semantic diagnostics in builder refreshed for:: "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -622,7 +619,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 6514 + "size": 6494 } @@ -739,7 +736,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-19927227517-/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-19927227517-/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1171,9 +1168,6 @@ Semantic diagnostics in builder refreshed for:: "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1220,7 +1214,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 7190 + "size": 7170 } @@ -1299,7 +1293,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"604791887-/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[9,1],[8,1],[10,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"604791887-/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[9,1],[8,1],[10,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1770,9 +1764,6 @@ Semantic diagnostics in builder refreshed for:: "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1819,7 +1810,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 7810 + "size": 7790 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index 74a5bafb6e6f5..58439ffdf3598 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -154,7 +154,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -511,9 +511,6 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -560,7 +557,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 6035 + "size": 6015 } @@ -648,7 +645,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1005,9 +1002,6 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1054,7 +1048,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 6069 + "size": 6049 } @@ -1159,7 +1153,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1549,9 +1543,6 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1598,7 +1589,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 6584 + "size": 6564 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js index 3c9352548477a..9ef222266bf4c 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -154,7 +154,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -606,9 +606,6 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -655,7 +652,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 6444 + "size": 6424 } @@ -752,7 +749,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1186,9 +1183,6 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1235,7 +1229,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 7098 + "size": 7078 } @@ -1350,7 +1344,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[9,1],[8,1],[10,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[9,1],[8,1],[10,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1823,9 +1817,6 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1872,7 +1863,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 7715 + "size": 7695 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index e41778cec21b4..9dc31ac09464a 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -49,7 +49,7 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics @@ -220,7 +220,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -577,9 +577,6 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -626,7 +623,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 6069 + "size": 6049 } @@ -731,7 +728,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1121,9 +1118,6 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1170,7 +1164,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 6584 + "size": 6564 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index c87463c510cf3..6fc17e822973c 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -49,7 +49,7 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics @@ -229,7 +229,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -663,9 +663,6 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -712,7 +709,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 7098 + "size": 7078 } @@ -827,7 +824,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[9,1],[8,1],[10,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[9,1],[8,1],[10,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1300,9 +1297,6 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1349,7 +1343,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 7715 + "size": 7695 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index b9b8b9ffd9feb..e42f0b41d805d 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -151,7 +151,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -508,9 +508,6 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -557,7 +554,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 6035 + "size": 6015 } @@ -645,7 +642,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1002,9 +999,6 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1051,7 +1045,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 6069 + "size": 6049 } @@ -1156,7 +1150,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1546,9 +1540,6 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1595,7 +1586,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 6584 + "size": 6564 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index 8b8ce5c1afe8b..8add2863b22d6 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -160,7 +160,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -612,9 +612,6 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -661,7 +658,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 6444 + "size": 6424 } @@ -758,7 +755,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1192,9 +1189,6 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1241,7 +1235,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 7098 + "size": 7078 } @@ -1356,7 +1350,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[9,1],[8,1],[10,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[9,1],[8,1],[10,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1829,9 +1823,6 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1878,7 +1869,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 7715 + "size": 7695 } diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 2a1dd38169323..8ea8da84afa99 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -153,7 +153,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":882,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":337,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":882,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":337,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -587,9 +587,6 @@ declare module "src/main" { } "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -636,7 +633,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 6501 + "size": 6481 } @@ -777,7 +774,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":902,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":337,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":902,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":337,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1212,9 +1209,6 @@ declare module "src/main" { } "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1261,7 +1255,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 6535 + "size": 6515 } @@ -1374,7 +1368,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":997,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":376,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":997,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":376,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1847,9 +1841,6 @@ declare module "src/main" { } "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1896,7 +1887,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 7075 + "size": 7055 } diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index aad776b2ea999..34ff298cb9c8d 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -205,7 +205,7 @@ interface SomeType { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -622,9 +622,6 @@ interface SomeType { "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -671,7 +668,7 @@ interface SomeType { } }, "version": "FakeTSVersion", - "size": 6452 + "size": 6432 } @@ -810,7 +807,7 @@ globalSomething(); //// [/src/project/src/types.d.ts] file written with same contents //// [/src/project/src/types.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-19927227517-/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-19927227517-/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1209,9 +1206,6 @@ globalSomething(); "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1258,7 +1252,7 @@ globalSomething(); } }, "version": "FakeTSVersion", - "size": 7128 + "size": 7108 } @@ -1374,7 +1368,7 @@ function globalFoo() { return 20; } //// [/src/project/src/types.d.ts] file written with same contents //// [/src/project/src/types.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"604791887-/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"604791887-/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1808,9 +1802,6 @@ function globalFoo() { return 20; } "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1857,7 +1848,7 @@ function globalFoo() { return 20; } } }, "version": "FakeTSVersion", - "size": 7741 + "size": 7721 } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index 3bbb8cfedb654..f761e200fa35a 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -213,7 +213,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -602,9 +602,6 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -651,7 +648,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 6431 + "size": 6411 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -825,7 +822,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1214,9 +1211,6 @@ define("src/main", ["require", "exports"], function (require, exports) { "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1263,7 +1257,7 @@ define("src/main", ["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 6465 + "size": 6445 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1474,7 +1468,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1897,9 +1891,6 @@ declare module "src/main" { } "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1946,7 +1937,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 7005 + "size": 6985 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js index bb6f067e7cb01..1114570614a0b 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -254,7 +254,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -673,9 +673,6 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -722,7 +719,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 6382 + "size": 6362 } @@ -852,7 +849,7 @@ globalSomething(); //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1253,9 +1250,6 @@ globalSomething(); "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1302,7 +1296,7 @@ globalSomething(); } }, "version": "FakeTSVersion", - "size": 7036 + "size": 7016 } @@ -1466,7 +1460,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1902,9 +1896,6 @@ declare function globalMain(): void; "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1951,7 +1942,7 @@ declare function globalMain(): void; } }, "version": "FakeTSVersion", - "size": 7646 + "size": 7626 } //// [/user/username/projects/myproject/src/globalNewFile.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index a4bcb57d76803..b2a24302bcfc8 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -88,7 +88,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -192,7 +192,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -581,9 +581,6 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -630,7 +627,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 6431 + "size": 6411 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -804,7 +801,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1193,9 +1190,6 @@ define("src/main", ["require", "exports"], function (require, exports) { "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1242,7 +1236,7 @@ define("src/main", ["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 6465 + "size": 6445 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1453,7 +1447,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1876,9 +1870,6 @@ declare module "src/main" { } "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1925,7 +1916,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 7005 + "size": 6985 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index c11e04f7a06c9..2c705185e635e 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -131,7 +131,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -359,7 +359,7 @@ globalSomething(); //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -760,9 +760,6 @@ globalSomething(); "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -809,7 +806,7 @@ globalSomething(); } }, "version": "FakeTSVersion", - "size": 7036 + "size": 7016 } @@ -973,7 +970,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1409,9 +1406,6 @@ declare function globalMain(): void; "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1458,7 +1452,7 @@ declare function globalMain(): void; } }, "version": "FakeTSVersion", - "size": 7646 + "size": 7626 } //// [/user/username/projects/myproject/src/globalNewFile.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index daa54a3ae93da..224261db696c5 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -208,7 +208,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -597,9 +597,6 @@ declare module "src/main" { } "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -646,7 +643,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 6431 + "size": 6411 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -820,7 +817,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1209,9 +1206,6 @@ define("src/main", ["require", "exports"], function (require, exports) { "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1258,7 +1252,7 @@ define("src/main", ["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 6465 + "size": 6445 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1469,7 +1463,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1892,9 +1886,6 @@ declare module "src/main" { } "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1941,7 +1932,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 7005 + "size": 6985 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index d9732d1be3b75..103be06ed938d 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -260,7 +260,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -679,9 +679,6 @@ export {}; "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -728,7 +725,7 @@ export {}; } }, "version": "FakeTSVersion", - "size": 6382 + "size": 6362 } @@ -858,7 +855,7 @@ globalSomething(); //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"missingPaths":[10],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1259,9 +1256,6 @@ globalSomething(); "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1308,7 +1302,7 @@ globalSomething(); } }, "version": "FakeTSVersion", - "size": 7036 + "size": 7016 } @@ -1472,7 +1466,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"missingPaths":[11],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1908,9 +1902,6 @@ declare function globalMain(): void; "filesByName": { "./src/globalfilenotfound.ts": 0 }, - "missingPaths": [ - "./src/globalfilenotfound.ts" - ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1957,7 +1948,7 @@ declare function globalMain(): void; } }, "version": "FakeTSVersion", - "size": 7646 + "size": 7626 } //// [/user/username/projects/myproject/src/globalNewFile.js] From f0be476fa6715908c2fe4f45d7b8262b3847fa07 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 4 Mar 2021 18:13:36 -0800 Subject: [PATCH 36/48] Tests for tsserver scenario --- src/testRunner/tsconfig.json | 1 + src/testRunner/unittests/tsserver/helpers.ts | 24 +- .../unittests/tsserver/persistResolutions.ts | 395 ++++++++ .../unittests/tsserver/projectErrors.ts | 2 +- ...r-program-if-tsbuildinfo-is-not-present.js | 911 ++++++++++++++++++ ...is-present-but-program-is-not-persisted.js | 911 ++++++++++++++++++ .../uses-saved-resolution-for-program.js | 911 ++++++++++++++++++ 7 files changed, 3142 insertions(+), 13 deletions(-) create mode 100644 src/testRunner/unittests/tsserver/persistResolutions.ts create mode 100644 tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js create mode 100644 tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js create mode 100644 tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js diff --git a/src/testRunner/tsconfig.json b/src/testRunner/tsconfig.json index fcf8d43936cce..2c8f9c2d1d58a 100644 --- a/src/testRunner/tsconfig.json +++ b/src/testRunner/tsconfig.json @@ -200,6 +200,7 @@ "unittests/tsserver/openFile.ts", "unittests/tsserver/packageJsonInfo.ts", "unittests/tsserver/partialSemanticServer.ts", + "unittests/tsserver/persistResolutions.ts", "unittests/tsserver/plugins.ts", "unittests/tsserver/projectErrors.ts", "unittests/tsserver/projectReferenceCompileOnSave.ts", diff --git a/src/testRunner/unittests/tsserver/helpers.ts b/src/testRunner/unittests/tsserver/helpers.ts index 982b50f50749d..832dd039edd8d 100644 --- a/src/testRunner/unittests/tsserver/helpers.ts +++ b/src/testRunner/unittests/tsserver/helpers.ts @@ -111,22 +111,22 @@ namespace ts.projectSystem { Harness.Baseline.runBaseline(`tsserver/${scenario}/${subScenario.split(" ").join("-")}.js`, sessionOrService.logger.logs.join("\r\n")); } - export function appendAllScriptInfos(service: server.ProjectService, logs: string[]) { - logs.push(""); - logs.push(`ScriptInfos:`); - service.filenameToScriptInfo.forEach(info => logs.push(`path: ${info.path} fileName: ${info.fileName}`)); - logs.push(""); + export function appendAllScriptInfos(service: server.ProjectService, sessionOrService: TestSession | TestProjectService) { + sessionOrService.logger.logs.push(""); + sessionOrService.logger.logs.push(`ScriptInfos:`); + service.filenameToScriptInfo.forEach(info => sessionOrService.logger.logs.push(`path: ${info.path} fileName: ${info.fileName}`)); + sessionOrService.logger.logs.push(""); } - export function appendProjectFileText(project: server.Project, logs: string[]) { - logs.push(""); - logs.push(`Project: ${project.getProjectName()}`); + export function appendProjectFileText(project: server.Project, sessionOrService: TestSession | TestProjectService) { + sessionOrService.logger.logs.push(""); + sessionOrService.logger.logs.push(`Project: ${project.getProjectName()}`); project.getCurrentProgram()?.getSourceFiles().forEach(f => { - logs.push(JSON.stringify({ fileName: f.fileName, version: f.version })); - logs.push(f.text); - logs.push(""); + sessionOrService.logger.logs.push(JSON.stringify({ fileName: f.fileName, version: f.version })); + sessionOrService.logger.logs.push(f.text); + sessionOrService.logger.logs.push(""); }); - logs.push(""); + sessionOrService.logger.logs.push(""); } export class TestTypingsInstaller extends TI.TypingsInstaller implements server.ITypingsInstaller { diff --git a/src/testRunner/unittests/tsserver/persistResolutions.ts b/src/testRunner/unittests/tsserver/persistResolutions.ts new file mode 100644 index 0000000000000..080afdefce8aa --- /dev/null +++ b/src/testRunner/unittests/tsserver/persistResolutions.ts @@ -0,0 +1,395 @@ +namespace ts.projectSystem { + describe("unittests:: tsserver:: persistResolutions", () => { + function setupHost() { + const main: File = { + path: `${tscWatch.projectRoot}/src/main.ts`, + content: Utils.dedent` + import { something } from "./filePresent"; + import { something as something1 } from "./filePresent"; + import { something2 } from "./fileNotFound"; + `, + }; + const anotherFileReusingResolution: File = { + path: `${tscWatch.projectRoot}/src/anotherFileReusingResolution.ts`, + content: Utils.dedent` + import { something } from "./filePresent"; + import { something2 } from "./fileNotFound";`, + }; + const filePresent: File = { + path: `${tscWatch.projectRoot}/src/filePresent.ts`, + content: `export function something() { return 10; }`, + }; + const fileWithRef: File = { + path: `${tscWatch.projectRoot}/src/fileWithRef.ts`, + content: `/// `, + }; + const types: File = { + path: `${tscWatch.projectRoot}/src/types.ts`, + content: `interface SomeType {}`, + }; + const globalMain: File = { + path: `${tscWatch.projectRoot}/src/globalMain.ts`, + content: Utils.dedent` + /// + /// + function globalMain() { } + `, + }; + const globalAnotherFileWithSameReferenes: File = { + path: `${tscWatch.projectRoot}/src/globalAnotherFileWithSameReferenes.ts`, + content: Utils.dedent` + /// + /// + function globalAnotherFileWithSameReferenes() { } + `, + }; + const globalFilePresent: File = { + path: `${tscWatch.projectRoot}/src/globalFilePresent.ts`, + content: `function globalSomething() { return 10; }`, + }; + const config: File = { + path: `${tscWatch.projectRoot}/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { + module: "amd", + composite: true, + // persistResolutions: true, + traceResolution: true, + outFile + }, + include: ["src/**/*.ts"] + }), + }; + const host = createServerHost( + [main, anotherFileReusingResolution, filePresent, fileWithRef, types, globalMain, globalAnotherFileWithSameReferenes, globalFilePresent, config, libFile], + { currentDirectory: tscWatch.projectRoot, useCaseSensitiveFileNames: true } + ); + return { host, main, globalMain, config }; + } + + function setupHostWithSavedResolutions() { + const result = setupHost(); + const exit = result.host.exit; + result.host.exit = noop; + fakes.withTemporaryPatchingForBuildinfoReadWrite(result.host, sys => executeCommandLine(sys, noop, ["--p", "."])); + result.host.exit = exit; + result.host.clearOutput(); + return result; + } + + function setupHostWithClearedResolutions() { + const result = setupHost(); + const exit = result.host.exit; + result.host.exit = noop; + fakes.withTemporaryPatchingForBuildinfoReadWrite(result.host, sys => { + executeCommandLine(sys, noop, ["--p", "."]); + executeCommandLine(sys, noop, ["--p", ".", "--cleanPersistedProgram"]); + }); + result.host.exit = exit; + result.host.clearOutput(); + return result; + } + + function setup({ host, main, globalMain, config }: ReturnType) { + fakes.patchHostForBuildInfoReadWrite(host); + const session = createSession(host, { logger: createLoggerWithInMemoryLogs() }); + openFilesForSession([main, globalMain], session); + const project = session.getProjectService().configuredProjects.get(config.path)!; + return { session, project }; + } + + it("uses saved resolution for program", () => { + const result = setupHostWithSavedResolutions(); + const { project, session } = setup(result); + const { host, main, globalMain } = result; + appendProjectFileText(project, session); + + session.logger.logs.push(`Modify global file::`); + session.executeCommandSeq({ + command: protocol.CommandTypes.Change, + arguments: { + file: globalMain.path, + line: 4, + offset: 1, + endLine: 4, + endOffset: 1, + insertString: `globalSomething(); +` + } + }); + project.updateGraph(); + appendProjectFileText(project, session); + + session.logger.logs.push(`Add new globalFile and update globalMain file::`); + host.writeFile(`${tscWatch.projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + session.executeCommandSeq({ + command: protocol.CommandTypes.Change, + arguments: { + file: globalMain.path, + line: 1, + offset: 1, + endLine: 1, + endOffset: 1, + insertString: `/// +`, + } + }); + session.executeCommandSeq({ + command: protocol.CommandTypes.Change, + arguments: { + file: globalMain.path, + line: 6, + offset: 1, + endLine: 6, + endOffset: 1, + insertString: `globalFoo(); +` + } + }); + host.runQueuedTimeoutCallbacks(); + appendProjectFileText(project, session); + + session.logger.logs.push("Write file that could not be resolved by referenced path::"); + host.writeFile(`${tscWatch.projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"); + host.runQueuedTimeoutCallbacks(); + appendProjectFileText(project, session); + + session.logger.logs.push(`Modify main file::`); + session.executeCommandSeq({ + command: protocol.CommandTypes.Change, + arguments: { + file: main.path, + line: 4, + offset: 1, + endLine: 4, + endOffset: 1, + insertString: `something(); +` + } + }); + project.updateGraph(); + appendProjectFileText(project, session); + + session.logger.logs.push(`Add new module and update main file::`); + host.writeFile(`${tscWatch.projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); + session.executeCommandSeq({ + command: protocol.CommandTypes.Change, + arguments: { + file: main.path, + line: 1, + offset: 1, + endLine: 1, + endOffset: 1, + insertString: `import { foo } from "./newFile"; +`, + } + }); + host.runQueuedTimeoutCallbacks(); + appendProjectFileText(project, session); + + session.logger.logs.push("Write file that could not be resolved"); + host.writeFile(`${tscWatch.projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"); + host.runQueuedTimeoutCallbacks(); // Invalidate resolutions + host.runQueuedTimeoutCallbacks(); // Actual Update + appendProjectFileText(project, session); + + baselineTsserverLogs("persistResolutions", "uses saved resolution for program", session); + }); + + it("creates new resolutions for program if tsbuildinfo is not present", () => { + const result = setupHost(); + const { project, session } = setup(result); + const { host, main, globalMain } = result; + appendProjectFileText(project, session); + + session.logger.logs.push(`Modify global file::`); + session.executeCommandSeq({ + command: protocol.CommandTypes.Change, + arguments: { + file: globalMain.path, + line: 4, + offset: 1, + endLine: 4, + endOffset: 1, + insertString: `globalSomething(); +` + } + }); + project.updateGraph(); + appendProjectFileText(project, session); + + session.logger.logs.push(`Add new globalFile and update globalMain file::`); + host.writeFile(`${tscWatch.projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + session.executeCommandSeq({ + command: protocol.CommandTypes.Change, + arguments: { + file: globalMain.path, + line: 1, + offset: 1, + endLine: 1, + endOffset: 1, + insertString: `/// +`, + } + }); + session.executeCommandSeq({ + command: protocol.CommandTypes.Change, + arguments: { + file: globalMain.path, + line: 6, + offset: 1, + endLine: 6, + endOffset: 1, + insertString: `globalFoo(); +` + } + }); + host.runQueuedTimeoutCallbacks(); + appendProjectFileText(project, session); + + session.logger.logs.push("Write file that could not be resolved by referenced path::"); + host.writeFile(`${tscWatch.projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"); + host.runQueuedTimeoutCallbacks(); + appendProjectFileText(project, session); + + session.logger.logs.push(`Modify main file::`); + session.executeCommandSeq({ + command: protocol.CommandTypes.Change, + arguments: { + file: main.path, + line: 4, + offset: 1, + endLine: 4, + endOffset: 1, + insertString: `something(); +` + } + }); + project.updateGraph(); + appendProjectFileText(project, session); + + session.logger.logs.push(`Add new module and update main file::`); + host.writeFile(`${tscWatch.projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); + session.executeCommandSeq({ + command: protocol.CommandTypes.Change, + arguments: { + file: main.path, + line: 1, + offset: 1, + endLine: 1, + endOffset: 1, + insertString: `import { foo } from "./newFile"; +`, + } + }); + host.runQueuedTimeoutCallbacks(); + appendProjectFileText(project, session); + + session.logger.logs.push("Write file that could not be resolved"); + host.writeFile(`${tscWatch.projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"); + host.runQueuedTimeoutCallbacks(); // Invalidate resolutions + host.runQueuedTimeoutCallbacks(); // Actual Update + appendProjectFileText(project, session); + + baselineTsserverLogs("persistResolutions", "creates new resolutions for program if tsbuildinfo is not present", session); + }); + + it("creates new resolutions for program if tsbuildinfo is present but program is not persisted", () => { + const result = setupHostWithClearedResolutions(); + const { project, session } = setup(result); + const { host, main, globalMain } = result; + appendProjectFileText(project, session); + + session.logger.logs.push(`Modify global file::`); + session.executeCommandSeq({ + command: protocol.CommandTypes.Change, + arguments: { + file: globalMain.path, + line: 4, + offset: 1, + endLine: 4, + endOffset: 1, + insertString: `globalSomething(); +` + } + }); + project.updateGraph(); + appendProjectFileText(project, session); + + session.logger.logs.push(`Add new globalFile and update globalMain file::`); + host.writeFile(`${tscWatch.projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + session.executeCommandSeq({ + command: protocol.CommandTypes.Change, + arguments: { + file: globalMain.path, + line: 1, + offset: 1, + endLine: 1, + endOffset: 1, + insertString: `/// +`, + } + }); + session.executeCommandSeq({ + command: protocol.CommandTypes.Change, + arguments: { + file: globalMain.path, + line: 6, + offset: 1, + endLine: 6, + endOffset: 1, + insertString: `globalFoo(); +` + } + }); + host.runQueuedTimeoutCallbacks(); + appendProjectFileText(project, session); + + session.logger.logs.push("Write file that could not be resolved by referenced path::"); + host.writeFile(`${tscWatch.projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"); + host.runQueuedTimeoutCallbacks(); + appendProjectFileText(project, session); + + session.logger.logs.push(`Modify main file::`); + session.executeCommandSeq({ + command: protocol.CommandTypes.Change, + arguments: { + file: main.path, + line: 4, + offset: 1, + endLine: 4, + endOffset: 1, + insertString: `something(); +` + } + }); + project.updateGraph(); + appendProjectFileText(project, session); + + session.logger.logs.push(`Add new module and update main file::`); + host.writeFile(`${tscWatch.projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); + session.executeCommandSeq({ + command: protocol.CommandTypes.Change, + arguments: { + file: main.path, + line: 1, + offset: 1, + endLine: 1, + endOffset: 1, + insertString: `import { foo } from "./newFile"; +`, + } + }); + host.runQueuedTimeoutCallbacks(); + appendProjectFileText(project, session); + + session.logger.logs.push("Write file that could not be resolved"); + host.writeFile(`${tscWatch.projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"); + host.runQueuedTimeoutCallbacks(); // Invalidate resolutions + host.runQueuedTimeoutCallbacks(); // Actual Update + appendProjectFileText(project, session); + + baselineTsserverLogs("persistResolutions", "creates new resolutions for program if tsbuildinfo is present but program is not persisted", session); + }); + }); +} \ No newline at end of file diff --git a/src/testRunner/unittests/tsserver/projectErrors.ts b/src/testRunner/unittests/tsserver/projectErrors.ts index f721a27cf316f..f991bf25c202a 100644 --- a/src/testRunner/unittests/tsserver/projectErrors.ts +++ b/src/testRunner/unittests/tsserver/projectErrors.ts @@ -248,7 +248,7 @@ namespace ts.projectSystem { projectRootPath: useProjectRoot ? folderPath : undefined } }); - appendAllScriptInfos(session.getProjectService(), session.logger.logs); + appendAllScriptInfos(session.getProjectService(), session); // Since this is not js project so no typings are queued host.checkTimeoutQueueLength(0); diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js new file mode 100644 index 0000000000000..0b8225fd8c85c --- /dev/null +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js @@ -0,0 +1,911 @@ +Provided types map file "/a/lib/typesMap.json" doesn't exist +request:{"seq":0,"type":"request","command":"open","arguments":{"file":"/user/username/projects/myproject/src/main.ts"}} +Search path: /user/username/projects/myproject/src +For info: /user/username/projects/myproject/src/main.ts :: Config file name: /user/username/projects/myproject/tsconfig.json +Creating configuration project /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Config: /user/username/projects/myproject/tsconfig.json : { + "rootNames": [ + "/user/username/projects/myproject/src/anotherFileReusingResolution.ts", + "/user/username/projects/myproject/src/filePresent.ts", + "/user/username/projects/myproject/src/fileWithRef.ts", + "/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts", + "/user/username/projects/myproject/src/globalFilePresent.ts", + "/user/username/projects/myproject/src/globalMain.ts", + "/user/username/projects/myproject/src/main.ts", + "/user/username/projects/myproject/src/types.ts" + ], + "options": { + "module": 2, + "composite": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" + } +} +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFilePresent.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (9) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Search path: /user/username/projects/myproject +For info: /user/username/projects/myproject/tsconfig.json :: No config files found. +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (9) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +response:{"responseRequired":false} +request:{"seq":0,"type":"request","command":"open","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts"}} +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 500 undefined WatchType: Closed Script info +Search path: /user/username/projects/myproject/src +For info: /user/username/projects/myproject/src/globalMain.ts :: Config file name: /user/username/projects/myproject/tsconfig.json +Search path: /user/username/projects/myproject +For info: /user/username/projects/myproject/tsconfig.json :: No config files found. +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (9) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +response:{"responseRequired":false} + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-12326309214-/// \n/// \nfunction globalMain() { }\n"} +/// +/// +function globalMain() { } + + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + + + +Modify global file:: +request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":4,"offset":1,"endLine":4,"endOffset":1,"insertString":"globalSomething();\n"},"seq":1,"type":"request"} +response:{"responseRequired":false} +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Different program with same set of files + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-7553807369-/// \n/// \nfunction globalMain() { }\nglobalSomething();\n"} +/// +/// +function globalMain() { } +globalSomething(); + + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + + + +Add new globalFile and update globalMain file:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":1,"offset":1,"endLine":1,"endOffset":1,"insertString":"/// \n"},"seq":2,"type":"request"} +response:{"responseRequired":false} +request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":6,"offset":1,"endLine":6,"endOffset":1,"insertString":"globalFoo();\n"},"seq":3,"type":"request"} +response:{"responseRequired":false} +Running: /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 3 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (10) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (10) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (10) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + + + +Write file that could not be resolved by referenced path:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Running: /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 4 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (11) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (11) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (11) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + + + +Modify main file:: +request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/main.ts","line":4,"offset":1,"endLine":4,"endOffset":1,"insertString":"something();\n"},"seq":4,"type":"request"} +response:{"responseRequired":false} +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 5 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Different program with same set of files + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-15360103634-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); + + + +Add new module and update main file:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/main.ts","line":1,"offset":1,"endLine":1,"endOffset":1,"insertString":"import { foo } from \"./newFile\";\n"},"seq":5,"type":"request"} +response:{"responseRequired":false} +Running: /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 6 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (12) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (12) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (12) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-94210647-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); + + + +Write file that could not be resolved +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Running: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 7 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (13) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (13) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (13) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-94210647-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); + + diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js new file mode 100644 index 0000000000000..0b8225fd8c85c --- /dev/null +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js @@ -0,0 +1,911 @@ +Provided types map file "/a/lib/typesMap.json" doesn't exist +request:{"seq":0,"type":"request","command":"open","arguments":{"file":"/user/username/projects/myproject/src/main.ts"}} +Search path: /user/username/projects/myproject/src +For info: /user/username/projects/myproject/src/main.ts :: Config file name: /user/username/projects/myproject/tsconfig.json +Creating configuration project /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Config: /user/username/projects/myproject/tsconfig.json : { + "rootNames": [ + "/user/username/projects/myproject/src/anotherFileReusingResolution.ts", + "/user/username/projects/myproject/src/filePresent.ts", + "/user/username/projects/myproject/src/fileWithRef.ts", + "/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts", + "/user/username/projects/myproject/src/globalFilePresent.ts", + "/user/username/projects/myproject/src/globalMain.ts", + "/user/username/projects/myproject/src/main.ts", + "/user/username/projects/myproject/src/types.ts" + ], + "options": { + "module": 2, + "composite": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" + } +} +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFilePresent.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (9) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Search path: /user/username/projects/myproject +For info: /user/username/projects/myproject/tsconfig.json :: No config files found. +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (9) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +response:{"responseRequired":false} +request:{"seq":0,"type":"request","command":"open","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts"}} +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 500 undefined WatchType: Closed Script info +Search path: /user/username/projects/myproject/src +For info: /user/username/projects/myproject/src/globalMain.ts :: Config file name: /user/username/projects/myproject/tsconfig.json +Search path: /user/username/projects/myproject +For info: /user/username/projects/myproject/tsconfig.json :: No config files found. +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (9) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +response:{"responseRequired":false} + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-12326309214-/// \n/// \nfunction globalMain() { }\n"} +/// +/// +function globalMain() { } + + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + + + +Modify global file:: +request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":4,"offset":1,"endLine":4,"endOffset":1,"insertString":"globalSomething();\n"},"seq":1,"type":"request"} +response:{"responseRequired":false} +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Different program with same set of files + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-7553807369-/// \n/// \nfunction globalMain() { }\nglobalSomething();\n"} +/// +/// +function globalMain() { } +globalSomething(); + + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + + + +Add new globalFile and update globalMain file:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":1,"offset":1,"endLine":1,"endOffset":1,"insertString":"/// \n"},"seq":2,"type":"request"} +response:{"responseRequired":false} +request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":6,"offset":1,"endLine":6,"endOffset":1,"insertString":"globalFoo();\n"},"seq":3,"type":"request"} +response:{"responseRequired":false} +Running: /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 3 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (10) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (10) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (10) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + + + +Write file that could not be resolved by referenced path:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Running: /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 4 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (11) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (11) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (11) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + + + +Modify main file:: +request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/main.ts","line":4,"offset":1,"endLine":4,"endOffset":1,"insertString":"something();\n"},"seq":4,"type":"request"} +response:{"responseRequired":false} +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 5 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Different program with same set of files + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-15360103634-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); + + + +Add new module and update main file:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/main.ts","line":1,"offset":1,"endLine":1,"endOffset":1,"insertString":"import { foo } from \"./newFile\";\n"},"seq":5,"type":"request"} +response:{"responseRequired":false} +Running: /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 6 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (12) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (12) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (12) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-94210647-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); + + + +Write file that could not be resolved +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Running: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 7 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (13) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (13) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (13) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-94210647-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); + + diff --git a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js new file mode 100644 index 0000000000000..0b8225fd8c85c --- /dev/null +++ b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js @@ -0,0 +1,911 @@ +Provided types map file "/a/lib/typesMap.json" doesn't exist +request:{"seq":0,"type":"request","command":"open","arguments":{"file":"/user/username/projects/myproject/src/main.ts"}} +Search path: /user/username/projects/myproject/src +For info: /user/username/projects/myproject/src/main.ts :: Config file name: /user/username/projects/myproject/tsconfig.json +Creating configuration project /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file +Config: /user/username/projects/myproject/tsconfig.json : { + "rootNames": [ + "/user/username/projects/myproject/src/anotherFileReusingResolution.ts", + "/user/username/projects/myproject/src/filePresent.ts", + "/user/username/projects/myproject/src/fileWithRef.ts", + "/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts", + "/user/username/projects/myproject/src/globalFilePresent.ts", + "/user/username/projects/myproject/src/globalMain.ts", + "/user/username/projects/myproject/src/main.ts", + "/user/username/projects/myproject/src/types.ts" + ], + "options": { + "module": 2, + "composite": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" + } +} +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFilePresent.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (9) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Search path: /user/username/projects/myproject +For info: /user/username/projects/myproject/tsconfig.json :: No config files found. +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (9) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +response:{"responseRequired":false} +request:{"seq":0,"type":"request","command":"open","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts"}} +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 500 undefined WatchType: Closed Script info +Search path: /user/username/projects/myproject/src +For info: /user/username/projects/myproject/src/globalMain.ts :: Config file name: /user/username/projects/myproject/tsconfig.json +Search path: /user/username/projects/myproject +For info: /user/username/projects/myproject/tsconfig.json :: No config files found. +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (9) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +response:{"responseRequired":false} + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-12326309214-/// \n/// \nfunction globalMain() { }\n"} +/// +/// +function globalMain() { } + + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + + + +Modify global file:: +request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":4,"offset":1,"endLine":4,"endOffset":1,"insertString":"globalSomething();\n"},"seq":1,"type":"request"} +response:{"responseRequired":false} +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Different program with same set of files + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-7553807369-/// \n/// \nfunction globalMain() { }\nglobalSomething();\n"} +/// +/// +function globalMain() { } +globalSomething(); + + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + + + +Add new globalFile and update globalMain file:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":1,"offset":1,"endLine":1,"endOffset":1,"insertString":"/// \n"},"seq":2,"type":"request"} +response:{"responseRequired":false} +request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":6,"offset":1,"endLine":6,"endOffset":1,"insertString":"globalFoo();\n"},"seq":3,"type":"request"} +response:{"responseRequired":false} +Running: /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 3 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (10) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (10) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (10) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + + + +Write file that could not be resolved by referenced path:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Running: /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 4 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (11) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (11) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (11) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; + + + +Modify main file:: +request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/main.ts","line":4,"offset":1,"endLine":4,"endOffset":1,"insertString":"something();\n"},"seq":4,"type":"request"} +response:{"responseRequired":false} +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 5 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Different program with same set of files + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-15360103634-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); + + + +Add new module and update main file:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/main.ts","line":1,"offset":1,"endLine":1,"endOffset":1,"insertString":"import { foo } from \"./newFile\";\n"},"seq":5,"type":"request"} +response:{"responseRequired":false} +Running: /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 6 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (12) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (12) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (12) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-94210647-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); + + + +Write file that could not be resolved +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Running: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 7 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (13) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (13) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (13) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-94210647-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); + + From 0fc318e5a77e58c238a450110c2de5d2dbeeee59 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 4 Mar 2021 18:30:17 -0800 Subject: [PATCH 37/48] Actually make the tsserver tests with persistResolutions --- .../unittests/tsserver/persistResolutions.ts | 2 +- ...r-program-if-tsbuildinfo-is-not-present.js | 67 ++++++++----------- ...is-present-but-program-is-not-persisted.js | 67 ++++++++----------- .../uses-saved-resolution-for-program.js | 67 ++++++++----------- 4 files changed, 88 insertions(+), 115 deletions(-) diff --git a/src/testRunner/unittests/tsserver/persistResolutions.ts b/src/testRunner/unittests/tsserver/persistResolutions.ts index 080afdefce8aa..991873c0694de 100644 --- a/src/testRunner/unittests/tsserver/persistResolutions.ts +++ b/src/testRunner/unittests/tsserver/persistResolutions.ts @@ -53,7 +53,7 @@ namespace ts.projectSystem { compilerOptions: { module: "amd", composite: true, - // persistResolutions: true, + persistResolutions: true, traceResolution: true, outFile }, diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js index 0b8225fd8c85c..2799b5da0f455 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js @@ -18,6 +18,7 @@ Config: /user/username/projects/myproject/tsconfig.json : { "options": { "module": 2, "composite": true, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/myproject/tsconfig.json" } @@ -45,10 +46,15 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -231,9 +237,6 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNe Scheduled: /user/username/projects/myproject/tsconfig.json Scheduled: *ensureProjectForOpenFiles* Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":1,"offset":1,"endLine":1,"endOffset":1,"insertString":"/// \n"},"seq":2,"type":"request"} response:{"responseRequired":false} request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":6,"offset":1,"endLine":6,"endOffset":1,"insertString":"globalFoo();\n"},"seq":3,"type":"request"} @@ -244,8 +247,9 @@ Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 3 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (10) /a/lib/lib.d.ts @@ -376,17 +380,15 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFi Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 4 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 4 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (11) /a/lib/lib.d.ts @@ -520,6 +522,7 @@ request:{"command":"change","arguments":{"file":"/user/username/projects/myproje response:{"responseRequired":false} Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 5 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Different program with same set of files @@ -588,9 +591,6 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Scheduled: /user/username/projects/myproject/tsconfig.json Scheduled: *ensureProjectForOpenFiles* Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/main.ts","line":1,"offset":1,"endLine":1,"endOffset":1,"insertString":"import { foo } from \"./newFile\";\n"},"seq":5,"type":"request"} response:{"responseRequired":false} Running: /user/username/projects/myproject/tsconfig.json @@ -598,13 +598,14 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.t Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 6 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 6 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (12) /a/lib/lib.d.ts @@ -747,29 +748,20 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotF Scheduled: /user/username/projects/myproject/tsconfig.json Scheduled: *ensureProjectForOpenFiles* Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json -Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 7 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 7 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (13) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts - /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -780,6 +772,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/src/fileNotFound.ts ../../../../a/lib/lib.d.ts @@ -789,10 +782,6 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' - src/fileNotFound.ts - Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' - Imported via "./fileNotFound" from file 'src/main.ts' - Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -820,6 +809,8 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileNotFound.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' ----------------------------------------------- Running: *ensureProjectForOpenFiles* @@ -861,9 +852,6 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} -export function something2() { return 20; } - {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; @@ -909,3 +897,6 @@ import { something2 } from "./fileNotFound"; something(); +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js index 0b8225fd8c85c..2799b5da0f455 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js @@ -18,6 +18,7 @@ Config: /user/username/projects/myproject/tsconfig.json : { "options": { "module": 2, "composite": true, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/myproject/tsconfig.json" } @@ -45,10 +46,15 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -231,9 +237,6 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNe Scheduled: /user/username/projects/myproject/tsconfig.json Scheduled: *ensureProjectForOpenFiles* Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":1,"offset":1,"endLine":1,"endOffset":1,"insertString":"/// \n"},"seq":2,"type":"request"} response:{"responseRequired":false} request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":6,"offset":1,"endLine":6,"endOffset":1,"insertString":"globalFoo();\n"},"seq":3,"type":"request"} @@ -244,8 +247,9 @@ Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 3 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (10) /a/lib/lib.d.ts @@ -376,17 +380,15 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFi Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 4 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 4 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (11) /a/lib/lib.d.ts @@ -520,6 +522,7 @@ request:{"command":"change","arguments":{"file":"/user/username/projects/myproje response:{"responseRequired":false} Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 5 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Different program with same set of files @@ -588,9 +591,6 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Scheduled: /user/username/projects/myproject/tsconfig.json Scheduled: *ensureProjectForOpenFiles* Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/main.ts","line":1,"offset":1,"endLine":1,"endOffset":1,"insertString":"import { foo } from \"./newFile\";\n"},"seq":5,"type":"request"} response:{"responseRequired":false} Running: /user/username/projects/myproject/tsconfig.json @@ -598,13 +598,14 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.t Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 6 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 6 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (12) /a/lib/lib.d.ts @@ -747,29 +748,20 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotF Scheduled: /user/username/projects/myproject/tsconfig.json Scheduled: *ensureProjectForOpenFiles* Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json -Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 7 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 7 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (13) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts - /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -780,6 +772,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/src/fileNotFound.ts ../../../../a/lib/lib.d.ts @@ -789,10 +782,6 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' - src/fileNotFound.ts - Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' - Imported via "./fileNotFound" from file 'src/main.ts' - Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -820,6 +809,8 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileNotFound.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' ----------------------------------------------- Running: *ensureProjectForOpenFiles* @@ -861,9 +852,6 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} -export function something2() { return 20; } - {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; @@ -909,3 +897,6 @@ import { something2 } from "./fileNotFound"; something(); +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + diff --git a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js index 0b8225fd8c85c..2799b5da0f455 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js +++ b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js @@ -18,6 +18,7 @@ Config: /user/username/projects/myproject/tsconfig.json : { "options": { "module": 2, "composite": true, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/myproject/tsconfig.json" } @@ -45,10 +46,15 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -231,9 +237,6 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNe Scheduled: /user/username/projects/myproject/tsconfig.json Scheduled: *ensureProjectForOpenFiles* Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":1,"offset":1,"endLine":1,"endOffset":1,"insertString":"/// \n"},"seq":2,"type":"request"} response:{"responseRequired":false} request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":6,"offset":1,"endLine":6,"endOffset":1,"insertString":"globalFoo();\n"},"seq":3,"type":"request"} @@ -244,8 +247,9 @@ Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 3 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (10) /a/lib/lib.d.ts @@ -376,17 +380,15 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFi Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 4 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 4 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (11) /a/lib/lib.d.ts @@ -520,6 +522,7 @@ request:{"command":"change","arguments":{"file":"/user/username/projects/myproje response:{"responseRequired":false} Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 5 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Different program with same set of files @@ -588,9 +591,6 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Scheduled: /user/username/projects/myproject/tsconfig.json Scheduled: *ensureProjectForOpenFiles* Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/main.ts","line":1,"offset":1,"endLine":1,"endOffset":1,"insertString":"import { foo } from \"./newFile\";\n"},"seq":5,"type":"request"} response:{"responseRequired":false} Running: /user/username/projects/myproject/tsconfig.json @@ -598,13 +598,14 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.t Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 6 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 6 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (12) /a/lib/lib.d.ts @@ -747,29 +748,20 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotF Scheduled: /user/username/projects/myproject/tsconfig.json Scheduled: *ensureProjectForOpenFiles* Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json -Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 7 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 7 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (13) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts - /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -780,6 +772,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/src/fileNotFound.ts ../../../../a/lib/lib.d.ts @@ -789,10 +782,6 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' - src/fileNotFound.ts - Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' - Imported via "./fileNotFound" from file 'src/main.ts' - Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -820,6 +809,8 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileNotFound.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' ----------------------------------------------- Running: *ensureProjectForOpenFiles* @@ -861,9 +852,6 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} -export function something2() { return 20; } - {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; @@ -909,3 +897,6 @@ import { something2 } from "./fileNotFound"; something(); +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + From 4dbd53fde38fdc8e0dda57557392c22db2264ed9 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 24 Mar 2021 15:54:56 -0700 Subject: [PATCH 38/48] Refactoring --- src/compiler/builder.ts | 265 ++++++++++++++++++++++------------------ 1 file changed, 147 insertions(+), 118 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index 56400d3e2b65a..9e8ea12ac8aa7 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -74,7 +74,7 @@ namespace ts { * true if semantic diagnostics are ReusableDiagnostic instead of Diagnostic */ hasReusableDiagnostic?: true; - persistedProgramInfo?: PersistedProgramState; + persistedProgramState?: PersistedProgramState; } export interface PersistedProgramState { @@ -174,7 +174,7 @@ namespace ts { * true if program has been emitted */ programEmitComplete?: true; - persistedProgramInfo?: PersistedProgramState; + persistedProgramState?: PersistedProgramState; } let diagnosticKeyMap: Map | undefined; @@ -287,7 +287,7 @@ namespace ts { } if (oldState && newProgram.structureIsReused === StructureIsReused.Completely) { - state.persistedProgramInfo = oldState.persistedProgramInfo; + state.persistedProgramState = oldState.persistedProgramState; } state.buildInfoEmitPending = !!state.changedFilesSet.size || !!compilerOptions.persistResolutions && newProgram.structureIsReused !== StructureIsReused.Completely; @@ -336,11 +336,11 @@ namespace ts { } function createPersistedProgramInfo(state: BuilderProgramState) { - if (!state.program || !state.compilerOptions.persistResolutions || state.persistedProgramInfo) return; + if (!state.program || !state.compilerOptions.persistResolutions || state.persistedProgramState) return; const filesByName = mapEntries(state.program.getFilesByNameMap(), (key, value) => [key, value ? value.path : value as SourceFileOfProgramFromBuildInfo | Path | typeof missingSourceOfProjectReferenceRedirect | typeof missingFile]); let sourceFileFromExternalLibraryPath: Set | undefined; const files = mapToReadonlyArray(state.program.getSourceFiles(), toSourceFileOfProgramFromBuildInfo); - state.persistedProgramInfo = { + state.persistedProgramState = { files, rootFileNames: state.program.getRootFileNames(), filesByName, @@ -1606,13 +1606,45 @@ namespace ts { { version: fileInfo.version, signature: fileInfo.signature === false ? undefined : fileInfo.version, affectsGlobalScope: fileInfo.affectsGlobalScope }; } - export function createBuildProgramUsingProgramBuildInfo(program: ProgramBuildInfo, buildInfoPath: string, host: ReadBuildProgramHost): EmitAndSemanticDiagnosticsBuilderProgram { + function getProgramBuildInfoIdDecoder(program: ProgramBuildInfo, buildInfoPath: string, host: ReadBuildProgramHost) { const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory())); const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames()); - const filePaths: (Path | undefined)[] = []; let fileAbsolutePaths: (string | undefined)[] | undefined; - const filePathsSetList = program.fileIdsList?.map(fileIds => new Set(fileIds.map(toFilePath))); + let filePathsSetList: (Set | undefined)[] | undefined; + return { + toAbsolutePath, + toFilePath, + toFileAbsolutePath, + toFilePathsSet, + }; + + function toPath(path: string) { + return ts.toPath(path, buildInfoDirectory, getCanonicalFileName); + } + + function toAbsolutePath(path: string) { + return getNormalizedAbsolutePath(path, buildInfoDirectory); + } + + function toFilePath(fileId: ProgramBuildInfoFileId): Path { + const result = filePaths[fileId - 1]; + return result !== undefined ? result : filePaths[fileId - 1] = toPath(program.fileNames[fileId - 1]); + } + + function toFileAbsolutePath(fileId: ProgramBuildInfoAbsoluteFileId): string { + const result = fileAbsolutePaths?.[fileId - 1]; + return result !== undefined ? result : (fileAbsolutePaths ||= [])[fileId - 1] = toAbsolutePath(program.fileNames[fileId - 1]); + } + + function toFilePathsSet(fileIdsListId: ProgramBuildInfoFileIdListId): Set { + const result = filePathsSetList?.[fileIdsListId - 1]; + return result !== undefined ? result : (filePathsSetList ||= [])[fileIdsListId - 1] = new Set(program.fileIdsList![fileIdsListId - 1].map(toFilePath)); + } + } + + export function createBuildProgramUsingProgramBuildInfo(program: ProgramBuildInfo, buildInfoPath: string, host: ReadBuildProgramHost): EmitAndSemanticDiagnosticsBuilderProgram { + const { toAbsolutePath, toFilePath, toFilePathsSet } = getProgramBuildInfoIdDecoder(program, buildInfoPath, host); const fileInfos = new Map(); program.fileInfos.forEach((fileInfo, index) => fileInfos.set(toFilePath(index + 1 as ProgramBuildInfoFileId), toBuilderStateFileInfo(fileInfo))); const state: ReusableBuilderProgramState = { @@ -1654,107 +1686,104 @@ namespace ts { }; function getProgramOrProgramFromBuildInfoOrUndefined() { - if (programFromBuildInfo !== undefined) return programFromBuildInfo || undefined; - - if (!program.peristedProgram) { - programFromBuildInfo = false; - return undefined; - } - - const filesByName = new Map(); - const fileIncludeReasons = createMultiMap(); - let sourceFileFromExternalLibraryPath: Set | undefined; - const redirectTargetsMap = createMultiMap(); - const sourceFileToPackageName = new Map(); - program.peristedProgram.filesByName?.forEach(entry => { - if (isArray(entry)) { - filesByName.set(toFilePath(entry[0]), entry[1] ? toFilePath(entry[1]) : entry[1] as typeof missingSourceOfProjectReferenceRedirect | typeof missingFile); + if (programFromBuildInfo === undefined) { + const result = createProgramFromBuildInfo(program, buildInfoPath, host, state.compilerOptions); + if (result) { + state.persistedProgramState = result.persistedProgramState; + programFromBuildInfo = result.program; } else { - const path = toFilePath(entry); - filesByName.set(path, path); + programFromBuildInfo = false; } - }); - const resolutions = mapToReadonlyArray(program.peristedProgram.resolutions, toResolution); - const files = mapToReadonlyArray(program.peristedProgram.files, toSourceFileOfProgramFromBuildInfo); - state.persistedProgramInfo = { - files, - rootFileNames: mapToReadonlyArray(program.peristedProgram.rootFileNames, toFileAbsolutePath), - filesByName, - fileIncludeReasons, - sourceFileFromExternalLibraryPath, - redirectTargetsMap, - sourceFileToPackageName, - projectReferences: program.peristedProgram.projectReferences?.map(toProjectReference), - resolvedProjectReferences: program.peristedProgram.resolvedProjectReferences?.map(toResolvedProjectReference), - resolvedTypeReferenceDirectives: toResolutionMap(program.peristedProgram.resolvedTypeReferenceDirectives) || new Map(), - fileProcessingDiagnostics: map(program.peristedProgram.fileProcessingDiagnostics, toFileProcessingDiagnostic), - }; - return programFromBuildInfo = createProgramFromBuildInfo(state.persistedProgramInfo, state.compilerOptions); - - function toSourceFileOfProgramFromBuildInfo(file: PersistedProgramSourceFile): SourceFileOfProgramFromBuildInfo { - const path = toFilePath(file.path); - const resolvedPath = toFilePath(file.resolvedPath); - - fileIncludeReasons.set(path, file.includeReasons.map(toFileIncludeReason)); - if (file.isSourceFileFromExternalLibraryPath) (sourceFileFromExternalLibraryPath ||= new Set()).add(path); - if (file.redirectTargets) redirectTargetsMap.set(path, file.redirectTargets.map(toFileAbsolutePath)); - if (file.packageName) sourceFileToPackageName.set(path, file.packageName); - - const sourceFile: SourceFileOfProgramFromBuildInfo = { - fileName: toFileAbsolutePath(file.fileName), - originalFileName: toFileAbsolutePath(file.originalFileName), - path, - resolvedPath, - flags: file.flags, - version: file.version, - typeReferenceDirectives: file.typeReferenceDirectives || emptyArray, - libReferenceDirectives: file.libReferenceDirectives || emptyArray, - referencedFiles: file.referencedFiles || emptyArray, - imports: file.imports || emptyArray, - moduleAugmentations: file.moduleAugmentations || emptyArray, - ambientModuleNames: file.ambientModuleNames || emptyArray, - hasNoDefaultLib: file.hasNoDefaultLib || false, - resolvedModules: toResolutionMap(file.resolvedModules), - resolvedTypeReferenceDirectiveNames: toResolutionMap(file.resolvedTypeReferenceDirectiveNames), - redirectInfo: file.redirectInfo && { redirectTarget: { path: toFilePath(file.redirectInfo.redirectTarget.path) } } - }; - - if (!filesByName.has(path)) filesByName.set(path, sourceFile); - if (!filesByName.has(resolvedPath)) filesByName.set(resolvedPath, sourceFile); - return sourceFile; } - function toResolutionMap(resolutionMap: readonly PersistedProgramResolutionEntry[] | undefined) { - if (!resolutionMap) return undefined; - return resolutionMap && arrayToMap(resolutionMap, value => value[0], value => resolutions[value[1] - 1]); - } + return programFromBuildInfo || undefined; } - function toPath(path: string) { - return ts.toPath(path, buildInfoDirectory, getCanonicalFileName); - } - - function toAbsolutePath(path: string) { - return getNormalizedAbsolutePath(path, buildInfoDirectory); + function toMapOfReferencedSet(referenceMap: ProgramBuildInfoReferencedMap | undefined): ReadonlyESMap | undefined { + return referenceMap && arrayToMap(referenceMap, value => toFilePath(value[0]), value => toFilePathsSet(value[1])); } + } - function toFilePath(fileId: ProgramBuildInfoFileId): Path { - const result = filePaths[fileId - 1]; - return result !== undefined ? result : filePaths[fileId - 1] = toPath(program.fileNames[fileId - 1]); - } + function mapToReadonlyArray(array: readonly T[] | undefined, map: (value: T) => U): readonly U[] { + return array?.length ? array.map(map) : emptyArray; + } - function toFileAbsolutePath(fileId: ProgramBuildInfoAbsoluteFileId): string { - const result = fileAbsolutePaths?.[fileId - 1]; - return result !== undefined ? result : (fileAbsolutePaths ||= [])[fileId - 1] = toAbsolutePath(program.fileNames[fileId - 1]); - } + export function createProgramFromBuildInfo( + program: ProgramBuildInfo, + buildInfoPath: string, + host: ReadBuildProgramHost, + compilerOptions?: CompilerOptions + ): { program: ProgramFromBuildInfo; persistedProgramState: PersistedProgramState; } | undefined { + if (!program.peristedProgram) return undefined; + const { toAbsolutePath, toFilePath, toFileAbsolutePath } = getProgramBuildInfoIdDecoder(program, buildInfoPath, host); + + compilerOptions ||= program.options ? convertToOptionsWithAbsolutePaths(program.options, toAbsolutePath) : {}; + const filesByName = new Map(); + const fileIncludeReasons = createMultiMap(); + let sourceFileFromExternalLibraryPath: Set | undefined; + const redirectTargetsMap = createMultiMap(); + const sourceFileToPackageName = new Map(); + program.peristedProgram.filesByName?.forEach(entry => { + if (isArray(entry)) { + filesByName.set(toFilePath(entry[0]), entry[1] ? toFilePath(entry[1]) : entry[1] as typeof missingSourceOfProjectReferenceRedirect | typeof missingFile); + } + else { + const path = toFilePath(entry); + filesByName.set(path, path); + } + }); + const resolutions = mapToReadonlyArray(program.peristedProgram.resolutions, toResolution); + const files = mapToReadonlyArray(program.peristedProgram.files, toSourceFileOfProgramFromBuildInfo); + const persistedProgramState: PersistedProgramState = { + files, + rootFileNames: mapToReadonlyArray(program.peristedProgram.rootFileNames, toFileAbsolutePath), + filesByName, + fileIncludeReasons, + sourceFileFromExternalLibraryPath, + redirectTargetsMap, + sourceFileToPackageName, + projectReferences: program.peristedProgram.projectReferences?.map(toProjectReference), + resolvedProjectReferences: program.peristedProgram.resolvedProjectReferences?.map(toResolvedProjectReference), + resolvedTypeReferenceDirectives: toResolutionMap(program.peristedProgram.resolvedTypeReferenceDirectives) || new Map(), + fileProcessingDiagnostics: map(program.peristedProgram.fileProcessingDiagnostics, toFileProcessingDiagnostic), + }; + return { + program: createProgramFromPersistedProgramState(persistedProgramState, compilerOptions), + persistedProgramState + }; - function toFilePathsSet(fileIdsListId: ProgramBuildInfoFileIdListId): Set { - return filePathsSetList![fileIdsListId - 1]; - } + function toSourceFileOfProgramFromBuildInfo(file: PersistedProgramSourceFile): SourceFileOfProgramFromBuildInfo { + const path = toFilePath(file.path); + const resolvedPath = toFilePath(file.resolvedPath); + + fileIncludeReasons.set(path, file.includeReasons.map(toFileIncludeReason)); + if (file.isSourceFileFromExternalLibraryPath) (sourceFileFromExternalLibraryPath ||= new Set()).add(path); + if (file.redirectTargets) redirectTargetsMap.set(path, file.redirectTargets.map(toFileAbsolutePath)); + if (file.packageName) sourceFileToPackageName.set(path, file.packageName); + + const sourceFile: SourceFileOfProgramFromBuildInfo = { + fileName: toFileAbsolutePath(file.fileName), + originalFileName: toFileAbsolutePath(file.originalFileName), + path, + resolvedPath, + flags: file.flags, + version: file.version, + typeReferenceDirectives: file.typeReferenceDirectives || emptyArray, + libReferenceDirectives: file.libReferenceDirectives || emptyArray, + referencedFiles: file.referencedFiles || emptyArray, + imports: file.imports || emptyArray, + moduleAugmentations: file.moduleAugmentations || emptyArray, + ambientModuleNames: file.ambientModuleNames || emptyArray, + hasNoDefaultLib: file.hasNoDefaultLib || false, + resolvedModules: toResolutionMap(file.resolvedModules), + resolvedTypeReferenceDirectiveNames: toResolutionMap(file.resolvedTypeReferenceDirectiveNames), + redirectInfo: file.redirectInfo && { redirectTarget: { path: toFilePath(file.redirectInfo.redirectTarget.path) } } + }; - function toMapOfReferencedSet(referenceMap: ProgramBuildInfoReferencedMap | undefined): ReadonlyESMap | undefined { - return referenceMap && arrayToMap(referenceMap, value => toFilePath(value[0]), value => toFilePathsSet(value[1])); + if (!filesByName.has(path)) filesByName.set(path, sourceFile); + if (!filesByName.has(resolvedPath)) filesByName.set(resolvedPath, sourceFile); + return sourceFile; } function toReferencedFile(reason: PersistedProgramReferencedFile): ReferencedFile { @@ -1765,6 +1794,10 @@ namespace ts { return isReferencedFile(reason) ? toReferencedFile(reason) : reason; } + function toResolutionMap(resolutionMap: readonly PersistedProgramResolutionEntry[] | undefined) { + return resolutionMap && arrayToMap(resolutionMap, value => value[0], value => resolutions[value[1] - 1]); + } + function toResolution({ resolvedModule, resolvedTypeReferenceDirective, failedLookupLocations }: PersistedProgramResolution): ResolvedModuleWithFailedLookupLocations & ResolvedTypeReferenceDirectiveWithFailedLookupLocations { return { resolvedModule: resolvedModule && { @@ -1817,35 +1850,31 @@ namespace ts { } } - function mapToReadonlyArray(array: readonly T[] | undefined, map: (value: T) => U): readonly U[] { - return array?.length ? array.map(map) : emptyArray; - } - - function createProgramFromBuildInfo(persistedProgramInfo: PersistedProgramState, compilerOptions: CompilerOptions): ProgramFromBuildInfo { + function createProgramFromPersistedProgramState(persistedProgramState: PersistedProgramState, compilerOptions: CompilerOptions): ProgramFromBuildInfo { let missingFilePaths: readonly Path[] | undefined; return { programFromBuildInfo: true, getCompilerOptions: () => compilerOptions, - getRootFileNames: () => persistedProgramInfo.rootFileNames, - getSourceFiles: () => persistedProgramInfo.files, + getRootFileNames: () => persistedProgramState.rootFileNames, + getSourceFiles: () => persistedProgramState.files, getSourceFileByPath: path => { - const file = persistedProgramInfo.filesByName.get(path); + const file = persistedProgramState.filesByName.get(path); return file && !isString(file) ? file : undefined; }, - getProjectReferences: () => persistedProgramInfo.projectReferences, - getResolvedProjectReferences: () => persistedProgramInfo.resolvedProjectReferences, - getMissingFilePaths: () => missingFilePaths ||= getMissingFilePaths(persistedProgramInfo.filesByName), - getFileIncludeReasons: () => persistedProgramInfo.fileIncludeReasons, - getResolvedTypeReferenceDirectives: () => persistedProgramInfo.resolvedTypeReferenceDirectives, - getFilesByNameMap: () => persistedProgramInfo.filesByName, - isSourceFileFromExternalLibraryPath: path => !!persistedProgramInfo.sourceFileFromExternalLibraryPath?.has(path), - getFileProcessingDiagnostics: () => persistedProgramInfo.fileProcessingDiagnostics, - redirectTargetsMap: persistedProgramInfo.redirectTargetsMap, - sourceFileToPackageName: persistedProgramInfo.sourceFileToPackageName, + getProjectReferences: () => persistedProgramState.projectReferences, + getResolvedProjectReferences: () => persistedProgramState.resolvedProjectReferences, + getMissingFilePaths: () => missingFilePaths ||= getMissingFilePaths(persistedProgramState.filesByName), + getFileIncludeReasons: () => persistedProgramState.fileIncludeReasons, + getResolvedTypeReferenceDirectives: () => persistedProgramState.resolvedTypeReferenceDirectives, + getFilesByNameMap: () => persistedProgramState.filesByName, + isSourceFileFromExternalLibraryPath: path => !!persistedProgramState.sourceFileFromExternalLibraryPath?.has(path), + getFileProcessingDiagnostics: () => persistedProgramState.fileProcessingDiagnostics, + redirectTargetsMap: persistedProgramState.redirectTargetsMap, + sourceFileToPackageName: persistedProgramState.sourceFileToPackageName, }; } - export function createRedirectedBuilderProgram(getState: () => Pick, configFileParsingDiagnostics: readonly Diagnostic[]): BuilderProgram { + export function createRedirectedBuilderProgram(getState: () => Pick, configFileParsingDiagnostics: readonly Diagnostic[]): BuilderProgram { let programFromBuildInfo: ProgramFromBuildInfo | false | undefined; return { getState: notImplemented, @@ -1879,11 +1908,11 @@ namespace ts { const state = getState(); if (state.program) return state.program; if (programFromBuildInfo !== undefined) return programFromBuildInfo || undefined; - if (!state.persistedProgramInfo) { + if (!state.persistedProgramState) { programFromBuildInfo = false; return undefined; } - return programFromBuildInfo = createProgramFromBuildInfo(state.persistedProgramInfo, state.compilerOptions); + return programFromBuildInfo = createProgramFromPersistedProgramState(state.persistedProgramState, state.compilerOptions); } } } From 86a3b17d284a8a9824fbd9090618855a0ddb556e Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 25 Mar 2021 14:09:32 -0700 Subject: [PATCH 39/48] Persist resolutions in services --- src/compiler/watchPublic.ts | 15 ++++++++---- src/services/services.ts | 11 ++++++++- .../uses-saved-resolution-for-program.js | 23 +------------------ 3 files changed, 21 insertions(+), 28 deletions(-) diff --git a/src/compiler/watchPublic.ts b/src/compiler/watchPublic.ts index 2c98f0ffa24a9..e1c0ededad11f 100644 --- a/src/compiler/watchPublic.ts +++ b/src/compiler/watchPublic.ts @@ -4,16 +4,21 @@ namespace ts { getCurrentDirectory(): string; readFile(fileName: string): string | undefined; } - export function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost) { - if (outFileWithoutPersistResolutions(compilerOptions)) return undefined; + /*@internal*/ + export function readBuildInfoForProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost) { const buildInfoPath = getTsBuildInfoEmitOutputFilePath(compilerOptions); if (!buildInfoPath) return undefined; - const content = host.readFile(buildInfoPath); + const content = host.readFile?.(buildInfoPath); if (!content) return undefined; const buildInfo = getBuildInfo(content); if (buildInfo.version !== version) return undefined; - if (!buildInfo.program) return undefined; - return createBuildProgramUsingProgramBuildInfo(buildInfo.program, buildInfoPath, host); + return { buildInfo, buildInfoPath }; + } + export function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost) { + if (outFileWithoutPersistResolutions(compilerOptions)) return undefined; + const result = readBuildInfoForProgram(compilerOptions, host); + if (!result?.buildInfo.program) return undefined; + return createBuildProgramUsingProgramBuildInfo(result.buildInfo.program, result.buildInfoPath, host); } export interface CleanPersistedProgramOfTsBuildInfoHost { diff --git a/src/services/services.ts b/src/services/services.ts index 1a33109c36bc8..5f728ce37b4e4 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -1272,6 +1272,15 @@ namespace ts { return sourceFile; } + function getOldProgram(options: CompilerOptions, compilerHost: CompilerHost): Program | ProgramFromBuildInfo | undefined { + if (program) return program; + if (!options.persistResolutions) return undefined; + const buildInfoResult = readBuildInfoForProgram(options, compilerHost); + if (!buildInfoResult?.buildInfo.program?.peristedProgram) return undefined; + const result = createProgramFromBuildInfo(buildInfoResult.buildInfo.program, buildInfoResult.buildInfoPath, compilerHost); + return result?.program; + } + function synchronizeHostData(): void { Debug.assert(languageServiceMode !== LanguageServiceMode.Syntactic); // perform fast check if host supports it @@ -1361,7 +1370,7 @@ namespace ts { rootNames: rootFileNames, options: newSettings, host: compilerHost, - oldProgram: program, + oldProgram: getOldProgram(newSettings, compilerHost), projectReferences }); diff --git a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js index 2799b5da0f455..ae37f6114ae19 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js +++ b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js @@ -34,32 +34,11 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFil FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 500 undefined WatchType: Closed Script info FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. -File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. -======== Module name './fileNotFound' was not resolved. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Completely Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (9) /a/lib/lib.d.ts From 87413219efb39922b70dbf5e44846f8c2c9e1074 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 30 Mar 2021 16:03:32 -0700 Subject: [PATCH 40/48] Add more tests --- .../unittests/tsbuild/persistResolutions.ts | 10 + .../tsbuildWatch/persistResolutions.ts | 60 +- .../unittests/tsc/persistResolutions.ts | 10 + .../unittests/tscWatch/persistResolutions.ts | 60 +- .../unittests/tsserver/persistResolutions.ts | 20 +- ...nd-uses-it-for-new-program-with-outFile.js | 12 + ...-resolution-and-uses-it-for-new-program.js | 12 + ...er-resolutions-are-cleaned-with-outFile.js | 577 ++++++++++++++ ...can-build-after-resolutions-are-cleaned.js | 677 ++++++++++++++++ ...-saved-in-tsbuildinfo-file-with-outFile.js | 577 ++++++++++++++ ...ons-have-been-saved-in-tsbuildinfo-file.js | 677 ++++++++++++++++ ...nd-uses-it-for-new-program-with-outFile.js | 577 ++++++++++++++ ...-resolution-and-uses-it-for-new-program.js | 677 ++++++++++++++++ ...nd-uses-it-for-new-program-with-outFile.js | 689 ++++++++++++++++ ...-resolution-and-uses-it-for-new-program.js | 608 ++++++++++++++ ...er-resolutions-are-cleaned-with-outFile.js | 745 ++++++++++++++++++ ...can-build-after-resolutions-are-cleaned.js | 664 ++++++++++++++++ ...-saved-in-tsbuildinfo-file-with-outFile.js | 745 ++++++++++++++++++ ...ons-have-been-saved-in-tsbuildinfo-file.js | 664 ++++++++++++++++ ...nd-uses-it-for-new-program-with-outFile.js | 745 ++++++++++++++++++ ...-resolution-and-uses-it-for-new-program.js | 664 ++++++++++++++++ ...r-program-if-tsbuildinfo-is-not-present.js | 156 ++++ ...is-present-but-program-is-not-persisted.js | 156 ++++ .../uses-saved-resolution-for-program.js | 156 ++++ 24 files changed, 9925 insertions(+), 13 deletions(-) diff --git a/src/testRunner/unittests/tsbuild/persistResolutions.ts b/src/testRunner/unittests/tsbuild/persistResolutions.ts index b6ae2ae4b31e3..93855fbd6b0af 100644 --- a/src/testRunner/unittests/tsbuild/persistResolutions.ts +++ b/src/testRunner/unittests/tsbuild/persistResolutions.ts @@ -146,6 +146,11 @@ namespace ts { buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), }, + { + subScenario: "Delete file that could not be resolved", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: sys => sys.unlinkSync(`/src/project/src/fileNotFound.ts`), + }, ], baselinePrograms: true, }); @@ -239,6 +244,11 @@ namespace ts { buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), }, + { + subScenario: "Delete file that could not be resolved", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: sys => sys.unlinkSync(`/src/project/src/fileNotFound.ts`), + }, ], baselinePrograms: true, }); diff --git a/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts b/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts index 13d1024f4ae7b..bf77a0a3dab6e 100644 --- a/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts +++ b/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts @@ -133,7 +133,15 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions sys.runQueuedTimeoutCallbacks(); // Actual update } - } + }, + { + caption: "Delete file that could not be resolved", + change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); verifyTscWatch({ @@ -182,7 +190,15 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions sys.runQueuedTimeoutCallbacks(); // Actual update } - } + }, + { + caption: "Delete file that could not be resolved", + change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); verifyTscWatch({ @@ -231,7 +247,15 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions sys.runQueuedTimeoutCallbacks(); // Actual update } - } + }, + { + caption: "Delete file that could not be resolved", + change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); @@ -281,7 +305,15 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions sys.runQueuedTimeoutCallbacks(); // Actual update } - } + }, + { + caption: "Delete file that could not be resolved", + change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); verifyTscWatch({ @@ -330,7 +362,15 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions sys.runQueuedTimeoutCallbacks(); // Actual update } - } + }, + { + caption: "Delete file that could not be resolved", + change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); verifyTscWatch({ @@ -379,7 +419,15 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions sys.runQueuedTimeoutCallbacks(); // Actual update } - } + }, + { + caption: "Delete file that could not be resolved", + change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); }); diff --git a/src/testRunner/unittests/tsc/persistResolutions.ts b/src/testRunner/unittests/tsc/persistResolutions.ts index 68fb0f3a41fa6..f9609c2068925 100644 --- a/src/testRunner/unittests/tsc/persistResolutions.ts +++ b/src/testRunner/unittests/tsc/persistResolutions.ts @@ -120,6 +120,11 @@ namespace ts { buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), }, + { + subScenario: "Delete file that could not be resolved", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: sys => sys.unlinkSync(`/src/project/src/fileNotFound.ts`), + }, ], baselinePrograms: true, }); @@ -212,6 +217,11 @@ namespace ts { buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), }, + { + subScenario: "Delete file that could not be resolved", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: sys => sys.unlinkSync(`/src/project/src/fileNotFound.ts`), + }, ], baselinePrograms: true, }); diff --git a/src/testRunner/unittests/tscWatch/persistResolutions.ts b/src/testRunner/unittests/tscWatch/persistResolutions.ts index 1d2eec512f87d..01d7338e2d7fa 100644 --- a/src/testRunner/unittests/tscWatch/persistResolutions.ts +++ b/src/testRunner/unittests/tscWatch/persistResolutions.ts @@ -133,7 +133,15 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions sys.runQueuedTimeoutCallbacks(); // Actual update } - } + }, + { + caption: "Delete file that could not be resolved", + change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); verifyTscWatch({ @@ -182,7 +190,15 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions sys.runQueuedTimeoutCallbacks(); // Actual update } - } + }, + { + caption: "Delete file that could not be resolved", + change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); verifyTscWatch({ @@ -231,7 +247,15 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions sys.runQueuedTimeoutCallbacks(); // Actual update } - } + }, + { + caption: "Delete file that could not be resolved", + change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); @@ -281,7 +305,15 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions sys.runQueuedTimeoutCallbacks(); // Actual update } - } + }, + { + caption: "Delete file that could not be resolved", + change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); verifyTscWatch({ @@ -330,7 +362,15 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions sys.runQueuedTimeoutCallbacks(); // Actual update } - } + }, + { + caption: "Delete file that could not be resolved", + change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); verifyTscWatch({ @@ -379,7 +419,15 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions sys.runQueuedTimeoutCallbacks(); // Actual update } - } + }, + { + caption: "Delete file that could not be resolved", + change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); }); diff --git a/src/testRunner/unittests/tsserver/persistResolutions.ts b/src/testRunner/unittests/tsserver/persistResolutions.ts index 991873c0694de..3beda18e9f281 100644 --- a/src/testRunner/unittests/tsserver/persistResolutions.ts +++ b/src/testRunner/unittests/tsserver/persistResolutions.ts @@ -151,7 +151,7 @@ namespace ts.projectSystem { session.logger.logs.push("Write file that could not be resolved by referenced path::"); host.writeFile(`${tscWatch.projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"); - host.runQueuedTimeoutCallbacks(); + host.runQueuedTimeoutCallbacks(); appendProjectFileText(project, session); session.logger.logs.push(`Modify main file::`); @@ -193,6 +193,12 @@ namespace ts.projectSystem { host.runQueuedTimeoutCallbacks(); // Actual Update appendProjectFileText(project, session); + session.logger.logs.push("Delete file that could not be resolved"); + host.deleteFile(`${tscWatch.projectRoot}/src/fileNotFound.ts`); + host.runQueuedTimeoutCallbacks(); // Invalidate resolutions + host.runQueuedTimeoutCallbacks(); // Actual Update + appendProjectFileText(project, session); + baselineTsserverLogs("persistResolutions", "uses saved resolution for program", session); }); @@ -291,6 +297,12 @@ namespace ts.projectSystem { host.runQueuedTimeoutCallbacks(); // Actual Update appendProjectFileText(project, session); + session.logger.logs.push("Delete file that could not be resolved"); + host.deleteFile(`${tscWatch.projectRoot}/src/fileNotFound.ts`); + host.runQueuedTimeoutCallbacks(); // Invalidate resolutions + host.runQueuedTimeoutCallbacks(); // Actual Update + appendProjectFileText(project, session); + baselineTsserverLogs("persistResolutions", "creates new resolutions for program if tsbuildinfo is not present", session); }); @@ -389,6 +401,12 @@ namespace ts.projectSystem { host.runQueuedTimeoutCallbacks(); // Actual Update appendProjectFileText(project, session); + session.logger.logs.push("Delete file that could not be resolved"); + host.deleteFile(`${tscWatch.projectRoot}/src/fileNotFound.ts`); + host.runQueuedTimeoutCallbacks(); // Invalidate resolutions + host.runQueuedTimeoutCallbacks(); // Actual Update + appendProjectFileText(project, session); + baselineTsserverLogs("persistResolutions", "creates new resolutions for program if tsbuildinfo is present but program is not persisted", session); }); }); diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 3e3d472fd4e95..e705a93d29b0a 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -5655,3 +5655,15 @@ declare module "src/main" { } "size": 8038 } + + +Change:: Delete file that could not be resolved +Input:: +//// [/src/project/src/fileNotFound.ts] unlink + + +Output:: +/lib/tsc --b src/project +exitCode:: ExitStatus.Success + + diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 7c42f12759f99..5ffc6edaab364 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -6278,3 +6278,15 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "size": 8426 } + + +Change:: Delete file that could not be resolved +Input:: +//// [/src/project/src/fileNotFound.ts] unlink + + +Output:: +/lib/tsc --b src/project +exitCode:: ExitStatus.Success + + diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index 58439ffdf3598..21116a43c609b 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -3825,3 +3825,580 @@ exitCode:: ExitStatus.undefined "size": 7403 } + +Change:: Delete file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:01:56 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:02:03 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7104 +} + diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js index 9ef222266bf4c..e36d48d737977 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -4488,3 +4488,680 @@ exitCode:: ExitStatus.undefined "size": 8831 } + +Change:: Delete file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:01:56 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:02:03 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"affectedFilesPendingEmit":[[3,1],[13,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[12,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,16,19,18,17,21,20,12,22,4],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":22,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filenotfound.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts", + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filenotfound.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 8496 +} + diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 9dc31ac09464a..520268fcc6d4f 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -3400,3 +3400,580 @@ exitCode:: ExitStatus.undefined "size": 7403 } + +Change:: Delete file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:01:47 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:54 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7104 +} + diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index 6fc17e822973c..84f8f975d02c0 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -3968,3 +3968,680 @@ exitCode:: ExitStatus.undefined "size": 8831 } + +Change:: Delete file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:01:47 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:54 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"affectedFilesPendingEmit":[[3,1],[13,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[12,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,16,19,18,17,21,20,12,22,4],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":22,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filenotfound.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts", + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filenotfound.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 8496 +} + diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index e42f0b41d805d..5cb3ea1a33411 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -3822,3 +3822,580 @@ exitCode:: ExitStatus.undefined "size": 7403 } + +Change:: Delete file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:01:50 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:57 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7104 +} + diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index 8add2863b22d6..34a54d4ac557e 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -4494,3 +4494,680 @@ exitCode:: ExitStatus.undefined "size": 8831 } + +Change:: Delete file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:01:50 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:01:57 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"affectedFilesPendingEmit":[[3,1],[13,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[12,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,16,19,18,17,21,20,12,22,4],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":22,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filenotfound.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts", + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/filenotfound.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 8496 +} + diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 8ea8da84afa99..b6bb3355f2f87 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -6739,3 +6739,692 @@ declare module "src/main" { } "size": 8053 } + + +Change:: Delete file that could not be resolved +Input:: +//// [/src/project/src/fileNotFound.ts] unlink + + +Output:: +/lib/tsc --p src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something();something(); +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + + +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1378,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":493,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"filesByName":[[22,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-1378) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-493) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1378, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 493, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/filenotfound.ts", + "./src/fileNotFound.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7712 +} + diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 34ff298cb9c8d..7f520e79efbb4 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -6058,3 +6058,611 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "size": 8441 } + + +Change:: Delete file that could not be resolved +Input:: +//// [/src/project/src/fileNotFound.ts] unlink + + +Output:: +/lib/tsc --p src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something();something(); +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/fileNotFound.d.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/fileNotFound.d.ts +/src/project/src/main.ts + + +//// [/src/project/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/src/project/src/anotherFileReusingResolution.js] file written with same contents +//// [/src/project/src/main.d.ts] file written with same contents +//// [/src/project/src/main.js] file written with same contents +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},"-13705775197-export declare function something2(): number;\r\n",{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-13705775197-export declare function something2(): number;\r\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"filesByName":[[24,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.d.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.d.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/filenotfound.ts", + "./src/fileNotFound.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-15062742831-export declare function something(): number;\r\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" + }, + "./src/filenotfound.d.ts": { + "version": "-13705775197-export declare function something2(): number;\r\n", + "signature": "-13705775197-export declare function something2(): number;\r\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-3405156953-export declare function foo(): number;\r\n" + }, + "./src/main.ts": { + "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-13705775197-export declare function something2(): number;\r\n", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 8867 +} + diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index f761e200fa35a..1b08ce671a0b1 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -4861,3 +4861,748 @@ declare module "src/main" { } ====================================================================== + +Change:: Delete file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:03:02 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:03:12 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1290, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 478, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7575 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1290) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-478) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js index 1114570614a0b..8de21d1787801 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -4538,3 +4538,667 @@ define(["require", "exports"], function (require, exports) { export declare function something2(): number; + +Change:: Delete file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:05:26 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.d.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:05:30 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/fileNotFound.d.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},"-14992185226-export declare function something2(): number;\n",{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,16,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.d.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.d.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 8668 +} + diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index b2a24302bcfc8..79c13ca1bbee0 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -4840,3 +4840,748 @@ declare module "src/main" { } ====================================================================== + +Change:: Delete file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:02:59 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:03:09 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1290, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 478, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7575 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1290) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-478) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index 2c705185e635e..cc21df16a36b9 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -4048,3 +4048,667 @@ define(["require", "exports"], function (require, exports) { export declare function something2(): number; + +Change:: Delete file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:05:17 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.d.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:05:21 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/fileNotFound.d.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},"-14992185226-export declare function something2(): number;\n",{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,16,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.d.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.d.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 8668 +} + diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 224261db696c5..23b8af8126430 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -4856,3 +4856,748 @@ declare module "src/main" { } ====================================================================== + +Change:: Delete file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:02:50 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:03:00 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1290, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 478, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 7575 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1290) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-478) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index 103be06ed938d..c63eca88142f2 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -4544,3 +4544,667 @@ define(["require", "exports"], function (require, exports) { export declare function something2(): number; + +Change:: Delete file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:05:20 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.d.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound";something(); +   ~~~~~~~~~~~~~~~~ + +[12:05:24 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/fileNotFound.d.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},"-14992185226-export declare function something2(): number;\n",{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,16,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.d.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.d.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 8668 +} + diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js index 2799b5da0f455..6cd5d5205995f 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js @@ -900,3 +900,159 @@ something(); {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} export function something2() { return 20; } + +Delete file that could not be resolved +FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Running: /user/username/projects/myproject/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 8 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (12) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (12) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (12) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-94210647-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); + + diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js index 2799b5da0f455..6cd5d5205995f 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js @@ -900,3 +900,159 @@ something(); {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} export function something2() { return 20; } + +Delete file that could not be resolved +FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Running: /user/username/projects/myproject/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 8 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (12) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (12) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (12) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-94210647-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); + + diff --git a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js index ae37f6114ae19..66f09add509c0 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js +++ b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js @@ -879,3 +879,159 @@ something(); {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} export function something2() { return 20; } + +Delete file that could not be resolved +FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Running: /user/username/projects/myproject/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 8 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (12) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (12) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (12) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-94210647-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); + + From 841b9aed9f3626f7b0b5bada3611ee6f2fdb61e9 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 30 Mar 2021 16:42:25 -0700 Subject: [PATCH 41/48] persistResolutions will reuse resolutions only if it is resolved --- src/compiler/program.ts | 28 +- src/compiler/resolutionCache.ts | 5 - .../unittests/tsbuild/persistResolutions.ts | 38 - .../unittests/tsc/persistResolutions.ts | 11 - ...nd-uses-it-for-new-program-with-outFile.js | 1080 +++++----------- ...-resolution-and-uses-it-for-new-program.js | 1117 ++++------------- ...er-resolutions-are-cleaned-with-outFile.js | 876 ++++--------- ...can-build-after-resolutions-are-cleaned.js | 602 +++++---- ...-saved-in-tsbuildinfo-file-with-outFile.js | 876 ++++--------- ...ons-have-been-saved-in-tsbuildinfo-file.js | 602 +++++---- ...nd-uses-it-for-new-program-with-outFile.js | 876 ++++--------- ...-resolution-and-uses-it-for-new-program.js | 602 +++++---- ...nd-uses-it-for-new-program-with-outFile.js | 886 ++----------- ...-resolution-and-uses-it-for-new-program.js | 751 ++--------- ...er-resolutions-are-cleaned-with-outFile.js | 226 ++-- ...can-build-after-resolutions-are-cleaned.js | 393 +++--- ...-saved-in-tsbuildinfo-file-with-outFile.js | 195 +-- ...ons-have-been-saved-in-tsbuildinfo-file.js | 362 +++--- ...nd-uses-it-for-new-program-with-outFile.js | 226 ++-- ...-resolution-and-uses-it-for-new-program.js | 425 ++++--- ...r-program-if-tsbuildinfo-is-not-present.js | 66 +- ...is-present-but-program-is-not-persisted.js | 66 +- .../uses-saved-resolution-for-program.js | 70 +- 23 files changed, 3838 insertions(+), 6541 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index d2f2bc0a16977..4b50c038dda1c 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1339,30 +1339,10 @@ namespace ts { let result: (ResolvedModuleWithFailedLookupLocations | typeof predictedToResolveToAmbientModuleMarker)[] | undefined; for (let i = 0; i < moduleNames.length; i++) { const moduleName = moduleNames[i]; - if (options.persistResolutions) { - const oldResolvedModule = oldSourceFile?.resolvedModules?.get(moduleName); - if (oldResolvedModule) { - if (isTraceEnabled(options, host)) { - trace( - host, - oldResolvedModule.resolvedModule?.resolvedFileName ? - oldResolvedModule.resolvedModule.packageId ? - Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : - Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : - Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved, - moduleName, - getNormalizedAbsolutePath(file.originalFileName, currentDirectory), - oldResolvedModule?.resolvedModule?.resolvedFileName, - oldResolvedModule?.resolvedModule?.packageId && packageIdToString(oldResolvedModule.resolvedModule.packageId) - ); - } - (result || (result = new Array(moduleNames.length)))[i] = oldResolvedModule; - (reusedNames || (reusedNames = [])).push(moduleName); - continue; - } - } - // If the source file is unchanged and doesnt have invalidated resolution, reuse the module resolutions - else if (oldSourceFile && file.version === oldSourceFile.version && !hasInvalidatedResolution(oldSourceFile.path)) { + // If the source file is unchanged or persistResolutions and doesnt have invalidated resolution, reuse the module resolutions + if (oldSourceFile && + (options.persistResolutions || file.version === oldSourceFile.version) && + !hasInvalidatedResolution(oldSourceFile.path)) { const oldResolvedModule = oldSourceFile.resolvedModules?.get(moduleName); if (oldResolvedModule?.resolvedModule) { if (isTraceEnabled(options, host)) { diff --git a/src/compiler/resolutionCache.ts b/src/compiler/resolutionCache.ts index e2732777ed2bd..378cf691cabae 100644 --- a/src/compiler/resolutionCache.ts +++ b/src/compiler/resolutionCache.ts @@ -364,11 +364,6 @@ namespace ts { shouldRetryResolution, reusedNames, logChanges }: ResolveNamesWithLocalCacheInput): T[] { const compilerOptions = resolutionHost.getCompilationSettings(); - // If resolutions are persisted, we just need to direct to loader and program will do job of storing resolutions, - // We also shouldnt be watching locations since those resolutions are always persisted till user opts not to - if (compilerOptions.persistResolutions) { - return names.map(name => loader(name, containingFile, compilerOptions, resolutionHost.getCompilerHost?.() || resolutionHost, redirectedReference)); - } const path = resolutionHost.toPath(containingFile); const resolutionsInFile = cache.get(path) || cache.set(path, new Map()).get(path)!; const dirPath = getDirectoryPath(path); diff --git a/src/testRunner/unittests/tsbuild/persistResolutions.ts b/src/testRunner/unittests/tsbuild/persistResolutions.ts index 93855fbd6b0af..cd10ada537601 100644 --- a/src/testRunner/unittests/tsbuild/persistResolutions.ts +++ b/src/testRunner/unittests/tsbuild/persistResolutions.ts @@ -97,36 +97,6 @@ namespace ts { subScenario: "Write file that could not be resolved", buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => fs.writeFileSync(`/src/project/src/fileNotFound.ts`, "export function something2() { return 20; }"), - // when doing clean build, fileNotFound.ts would be resolved so the output order in outFile.js would change - // In build mode the out is generated only when there are no errors - // Outputs are generated, buildinfo is updated to report no errors - cleanBuildDiscrepancies: () => new Map([ - [`/src/project/src/filepresent.js`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/filepresent.d.ts`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/filenotfound.js`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/filenotfound.d.ts`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/anotherfilereusingresolution.js`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/anotherfilereusingresolution.d.ts`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/main.js`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/main.d.ts`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/newfile.js`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/newfile.d.ts`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/types.js`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/types.d.ts`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/filewithref.js`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/filewithref.d.ts`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/globalfilepresent.js`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/globalfilepresent.d.ts`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/globalfilenotfound.js`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/globalfilenotfound.d.ts`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/globalanotherfilewithsamereferenes.js`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/globalanotherfilewithsamereferenes.d.ts`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/globalmain.js`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/globalmain.d.ts`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/globalnewfile.js`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/src/globalnewfile.d.ts`, CleanBuildDescrepancy.CleanFilePresent], - [`/src/project/tsconfig.tsbuildinfo`, CleanBuildDescrepancy.CleanFileTextDifferent], - ]), }, { subScenario: "Clean resolutions", @@ -217,14 +187,6 @@ namespace ts { subScenario: "Write file that could not be resolved", buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => fs.writeFileSync(`/src/project/src/fileNotFound.ts`, "export function something2() { return 20; }"), - // when doing clean build, fileNotFound.ts would be resolved so the output order in outFile.js would change - // In build mode the out is generated only when there are no errors - cleanBuildDiscrepancies: () => new Map([ - ["/src/project/outfile.tsbuildinfo", CleanBuildDescrepancy.CleanFileTextDifferent], - ["/src/project/outfile.js", CleanBuildDescrepancy.CleanFilePresent], - ["/src/project/outfile.d.ts", CleanBuildDescrepancy.CleanFilePresent], - ["/src/project/outfile.tsbuildinfo.baseline.txt", CleanBuildDescrepancy.CleanFilePresent], - ]), }, { subScenario: "Clean resolutions", diff --git a/src/testRunner/unittests/tsc/persistResolutions.ts b/src/testRunner/unittests/tsc/persistResolutions.ts index f9609c2068925..c285d13b5e797 100644 --- a/src/testRunner/unittests/tsc/persistResolutions.ts +++ b/src/testRunner/unittests/tsc/persistResolutions.ts @@ -97,10 +97,6 @@ namespace ts { subScenario: "Write file that could not be resolved", buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => fs.writeFileSync(`/src/project/src/fileNotFound.ts`, "export function something2() { return 20; }"), - // when doing clean build, fileNotFound.ts would be resolved so tsbuildinfo will contain the fileNotFound - cleanBuildDiscrepancies: () => new Map([ - [`/src/project/tsconfig.tsbuildinfo`, CleanBuildDescrepancy.CleanFileTextDifferent] - ]), }, { subScenario: "Clean resolutions", @@ -191,13 +187,6 @@ namespace ts { subScenario: "Write file that could not be resolved", buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => fs.writeFileSync(`/src/project/src/fileNotFound.ts`, "export function something2() { return 20; }"), - // when doing clean build, fileNotFound.ts would be resolved so the output order in outFile.js would change - cleanBuildDiscrepancies: () => new Map([ - ["/src/project/outfile.tsbuildinfo", CleanBuildDescrepancy.CleanFileTextDifferent], - ["/src/project/outfile.js", CleanBuildDescrepancy.CleanFileTextDifferent], - ["/src/project/outfile.d.ts", CleanBuildDescrepancy.CleanFileTextDifferent], - ["/src/project/outfile.tsbuildinfo.baseline.txt", CleanBuildDescrepancy.CleanFileTextDifferent] - ]), }, { subScenario: "Clean resolutions", diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index e705a93d29b0a..64ee602020fb8 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -1046,10 +1046,19 @@ function globalFoo() { return 20; } Output:: /lib/tsc --b src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1542,10 +1551,19 @@ function globalSomething2() { return 20; } Output:: /lib/tsc --b src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2608,7 +2626,14 @@ Output:: /lib/tsc --b src/project Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3098,14 +3123,23 @@ export function foo() { return 20; } Output:: /lib/tsc --b src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3640,33 +3674,25 @@ export function something2() { return 20; } Output:: /lib/tsc --b src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. -src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +exitCode:: ExitStatus.Success Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts -/src/project/src/anotherFileReusingResolution.ts /src/project/src/fileNotFound.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts /src/project/src/globalFilePresent.ts @@ -3680,17 +3706,196 @@ Program files:: No cached semantic diagnostics in the builder:: +//// [/src/project/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-1598) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-576) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1598, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 576, + "kind": "text" + } + ] + } + }, "program": { "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -3701,774 +3906,15 @@ No cached semantic diagnostics in the builder:: "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ], - "fileNamesList": [ - [ - "./src/filepresent.ts" - ], - [ - "./src/types.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalnewfile.ts" - ], - [ - "./src/filepresent.ts", - "./src/newfile.ts" - ] - ], - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }" - }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" - }, - "./src/filenotfound.ts": { - "version": "-497034637-export function something2() { return 20; }" - }, - "./src/types.ts": { - "version": "-12575322908-interface SomeType {}", - "affectsGlobalScope": true - }, - "./src/filewithref.ts": { - "version": "-6085631553-/// " - }, - "./src/globalfilepresent.ts": { - "version": "-5627034801-function globalSomething() { return 10; }", - "affectsGlobalScope": true - }, - "./src/globalfilenotfound.ts": { - "version": "-6310824062-function globalSomething2() { return 20; }", - "affectsGlobalScope": true - }, - "./src/globalanotherfilewithsamereferenes.ts": { - "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", - "affectsGlobalScope": true - }, - "./src/globalnewfile.ts": { - "version": "4916490342-function globalFoo() { return 20; }", - "affectsGlobalScope": true - }, - "./src/globalmain.ts": { - "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", - "affectsGlobalScope": true - }, - "./src/newfile.ts": { - "version": "4428918903-export function foo() { return 20; }" - }, - "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" - } - }, - "options": { - "composite": true, - "configFilePath": "./tsconfig.json", - "module": 2, - "outFile": "./outFile.js", - "persistResolutions": true, - "traceResolution": true - }, - "referencedMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ], - "./src/globalanotherfilewithsamereferenes.ts": [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - "./src/globalmain.ts": [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalnewfile.ts" - ], - "./src/main.ts": [ - "./src/filepresent.ts", - "./src/newfile.ts" - ] - }, - "exportedModulesMap": {}, - "peristedProgram": { - "files": [ - { - "fileName": "../../lib/lib.d.ts", - "originalFileName": "../../lib/lib.d.ts", - "path": "../../lib/lib.d.ts", - "resolvedPath": "../../lib/lib.d.ts", - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "flags": 0, - "hasNoDefaultLib": true, - "includeReasons": [ - { - "kind": "LibFile" - } - ] - }, - { - "fileName": "./src/filePresent.ts", - "originalFileName": "./src/filePresent.ts", - "path": "./src/filepresent.ts", - "resolvedPath": "./src/filepresent.ts", - "version": "11598859296-export function something() { return 10; }", - "flags": 0, - "includeReasons": [ - { - "kind": "Import", - "file": "./src/anotherfilereusingresolution.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 2 - }, - { - "kind": "Import", - "file": "./src/main.ts", - "index": 1 - }, - { - "kind": "Import", - "file": "./src/main.ts", - "index": 2 - } - ] - }, - { - "fileName": "./src/anotherFileReusingResolution.ts", - "originalFileName": "./src/anotherFileReusingResolution.ts", - "path": "./src/anotherfilereusingresolution.ts", - "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "flags": 0, - "imports": [ - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ - "./filePresent", - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - } - ], - [ - "./fileNotFound", - { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] - } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 0 - } - ] - }, - { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, - { - "fileName": "./src/types.ts", - "originalFileName": "./src/types.ts", - "path": "./src/types.ts", - "resolvedPath": "./src/types.ts", - "version": "-12575322908-interface SomeType {}", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/filewithref.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 11 - } - ] - }, - { - "fileName": "./src/fileWithRef.ts", - "originalFileName": "./src/fileWithRef.ts", - "path": "./src/filewithref.ts", - "resolvedPath": "./src/filewithref.ts", - "version": "-6085631553-/// ", - "flags": 0, - "referencedFiles": [ - "./types.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 3 - } - ] - }, - { - "fileName": "./src/globalFilePresent.ts", - "originalFileName": "./src/globalFilePresent.ts", - "path": "./src/globalfilepresent.ts", - "resolvedPath": "./src/globalfilepresent.ts", - "version": "-5627034801-function globalSomething() { return 10; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalanotherfilewithsamereferenes.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 6 - }, - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 1 - } - ] - }, - { - "fileName": "./src/globalFileNotFound.ts", - "originalFileName": "./src/globalFileNotFound.ts", - "path": "./src/globalfilenotfound.ts", - "resolvedPath": "./src/globalfilenotfound.ts", - "version": "-6310824062-function globalSomething2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalanotherfilewithsamereferenes.ts", - "index": 1 - }, - { - "kind": "RootFile", - "index": 5 - }, - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 2 - } - ] - }, - { - "fileName": "./src/globalAnotherFileWithSameReferenes.ts", - "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", - "path": "./src/globalanotherfilewithsamereferenes.ts", - "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", - "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", - "flags": 0, - "referencedFiles": [ - "./globalFilePresent.ts", - "./globalFileNotFound.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 4 - } - ] - }, - { - "fileName": "./src/globalNewFile.ts", - "originalFileName": "./src/globalNewFile.ts", - "path": "./src/globalnewfile.ts", - "resolvedPath": "./src/globalnewfile.ts", - "version": "4916490342-function globalFoo() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 8 - } - ] - }, - { - "fileName": "./src/globalMain.ts", - "originalFileName": "./src/globalMain.ts", - "path": "./src/globalmain.ts", - "resolvedPath": "./src/globalmain.ts", - "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", - "flags": 0, - "referencedFiles": [ - "./globalNewFile.ts", - "./globalFilePresent.ts", - "./globalFileNotFound.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 7 - } - ] - }, - { - "fileName": "./src/newFile.ts", - "originalFileName": "./src/newFile.ts", - "path": "./src/newfile.ts", - "resolvedPath": "./src/newfile.ts", - "version": "4428918903-export function foo() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "Import", - "file": "./src/main.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 10 - } - ] - }, - { - "fileName": "./src/main.ts", - "originalFileName": "./src/main.ts", - "path": "./src/main.ts", - "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", - "flags": 0, - "imports": [ - { - "kind": 10, - "text": "./newFile" - }, - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ - "./newFile", - { - "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" - } - } - ], - [ - "./filePresent", - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - } - ], - [ - "./fileNotFound", - { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] - } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 9 - } - ] - } - ], - "rootFileNames": [ - "./src/anotherFileReusingResolution.ts", - "./src/fileNotFound.ts", - "./src/filePresent.ts", - "./src/fileWithRef.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalFileNotFound.ts", - "./src/globalFilePresent.ts", - "./src/globalMain.ts", - "./src/globalNewFile.ts", - "./src/main.ts", - "./src/newFile.ts", - "./src/types.ts" - ], - "resolutions": [ - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - }, - { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] - }, - { - "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" - } - } - ] - } - }, - "version": "FakeTSVersion", - "size": 7551 -} - - - -Change:: Clean resolutions -Input:: - - -Output:: -/lib/tsc --b src/project --cleanPersistedProgram -exitCode:: ExitStatus.Success - - -//// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[]},"version":"FakeTSVersion"} - - - -Change:: Clean resolutions again -Input:: - - -Output:: -/lib/tsc --b src/project --cleanPersistedProgram -exitCode:: ExitStatus.Success - - - - -Change:: no-change-run -Input:: - - -Output:: -/lib/tsc --b src/project -======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. -======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== -======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/newFile.ts' exist - use it as a name resolution result. -======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== -======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/src/project/src'. -======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. -======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== -exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] -Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Not -Program files:: -/lib/lib.d.ts -/src/project/src/filePresent.ts -/src/project/src/fileNotFound.ts -/src/project/src/anotherFileReusingResolution.ts -/src/project/src/types.ts -/src/project/src/fileWithRef.ts -/src/project/src/globalFilePresent.ts -/src/project/src/globalFileNotFound.ts -/src/project/src/globalAnotherFileWithSameReferenes.ts -/src/project/src/globalNewFile.ts -/src/project/src/globalMain.ts -/src/project/src/newFile.ts -/src/project/src/main.ts - -No cached semantic diagnostics in the builder:: - - -//// [/src/project/outFile.d.ts] -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/fileNotFound" { - export function something2(): number; -} -declare module "src/anotherFileReusingResolution" { } -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } - - -//// [/src/project/outFile.js] -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -globalSomething(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - - -//// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} - -//// [/src/project/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project/outFile.js ----------------------------------------------------------------------- -text: (0-1598) -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -globalSomething(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - -====================================================================== -====================================================================== -File:: /src/project/outFile.d.ts ----------------------------------------------------------------------- -text: (0-576) -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/fileNotFound" { - export function something2(): number; -} -declare module "src/anotherFileReusingResolution" { } -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } - -====================================================================== - -//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/anotherFileReusingResolution.ts", - "./src/types.ts", - "./src/fileWithRef.ts", - "./src/globalFilePresent.ts", - "./src/globalFileNotFound.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalNewFile.ts", - "./src/globalMain.ts", - "./src/newFile.ts", - "./src/main.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 1598, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 576, - "kind": "text" - } - ] - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./src/filepresent.ts", - "./src/filenotfound.ts", - "./src/anotherfilereusingresolution.ts", - "./src/types.ts", - "./src/filewithref.ts", - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalanotherfilewithsamereferenes.ts", - "./src/globalnewfile.ts", - "./src/globalmain.ts", - "./src/newfile.ts", - "./src/main.ts", - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts", - "./src/globalFilePresent.ts", - "./src/globalFileNotFound.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalNewFile.ts", - "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts" ], "fileNamesList": [ [ @@ -4949,6 +4395,42 @@ declare module "src/main" { } +Change:: Clean resolutions +Input:: + + +Output:: +/lib/tsc --b src/project --cleanPersistedProgram +exitCode:: ExitStatus.Success + + +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[]},"version":"FakeTSVersion"} + + + +Change:: Clean resolutions again +Input:: + + +Output:: +/lib/tsc --b src/project --cleanPersistedProgram +exitCode:: ExitStatus.Success + + + + +Change:: no-change-run +Input:: + + +Output:: +/lib/tsc --b src/project +exitCode:: ExitStatus.Success + + + + Change:: Modify main file Input:: //// [/src/project/src/main.ts] @@ -4960,14 +4442,28 @@ import { something2 } from "./fileNotFound";something();something(); Output:: /lib/tsc --b src/project -Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. -Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== exitCode:: ExitStatus.Success Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Completely +Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 5ffc6edaab364..5a059d3f75ef4 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -1236,10 +1236,19 @@ function globalFoo() { return 20; } Output:: /lib/tsc --b src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1825,10 +1834,19 @@ function globalSomething2() { return 20; } Output:: /lib/tsc --b src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3081,7 +3099,14 @@ Output:: /lib/tsc --b src/project Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3661,14 +3686,23 @@ export function foo() { return 20; } Output:: /lib/tsc --b src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -4300,33 +4334,25 @@ export function something2() { return 20; } Output:: /lib/tsc --b src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. -src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +exitCode:: ExitStatus.Success Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts -/src/project/src/anotherFileReusingResolution.ts /src/project/src/fileNotFound.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts /src/project/src/globalFilePresent.ts @@ -4339,10 +4365,146 @@ Program files:: Semantic diagnostics in builder refreshed for:: /src/project/src/fileNotFound.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/main.ts +//// [/src/project/src/anotherFileReusingResolution.d.ts] +export {}; + + +//// [/src/project/src/anotherFileReusingResolution.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/src/project/src/fileNotFound.d.ts] +export declare function something2(): number; + + +//// [/src/project/src/fileNotFound.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); + + +//// [/src/project/src/filePresent.d.ts] +export declare function something(): number; + + +//// [/src/project/src/filePresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); + + +//// [/src/project/src/fileWithRef.d.ts] +/// + + +//// [/src/project/src/fileWithRef.js] +/// + + +//// [/src/project/src/globalAnotherFileWithSameReferenes.d.ts] +/// +/// +declare function globalAnotherFileWithSameReferenes(): void; + + +//// [/src/project/src/globalAnotherFileWithSameReferenes.js] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/src/project/src/globalFileNotFound.d.ts] +declare function globalSomething2(): number; + + +//// [/src/project/src/globalFileNotFound.js] +function globalSomething2() { return 20; } + + +//// [/src/project/src/globalFilePresent.d.ts] +declare function globalSomething(): number; + + +//// [/src/project/src/globalFilePresent.js] +function globalSomething() { return 10; } + + +//// [/src/project/src/globalMain.d.ts] +/// +/// +/// +declare function globalMain(): void; + + +//// [/src/project/src/globalMain.js] +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); + + +//// [/src/project/src/globalNewFile.d.ts] +declare function globalFoo(): number; + + +//// [/src/project/src/globalNewFile.js] +function globalFoo() { return 20; } + + +//// [/src/project/src/main.d.ts] +export {}; + + +//// [/src/project/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/src/project/src/newFile.d.ts] +export declare function foo(): number; + + +//// [/src/project/src/newFile.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); + + +//// [/src/project/src/types.d.ts] +interface SomeType { +} + + +//// [/src/project/src/types.js] + + //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4350,8 +4512,8 @@ Semantic diagnostics in builder refreshed for:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -4362,23 +4524,20 @@ Semantic diagnostics in builder refreshed for:: "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/newFile.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], [ "./src/types.ts" @@ -4394,6 +4553,7 @@ Semantic diagnostics in builder refreshed for:: ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -4407,14 +4567,14 @@ Semantic diagnostics in builder refreshed for:: "version": "11598859296-export function something() { return 10; }", "signature": "-15062742831-export declare function something(): number;\r\n" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-4882119183-export {};\r\n" - }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", "signature": "-13705775197-export declare function something2(): number;\r\n" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10608150606-interface SomeType {\r\n}\r\n", @@ -4467,7 +4627,8 @@ Semantic diagnostics in builder refreshed for:: }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4483,25 +4644,14 @@ Semantic diagnostics in builder refreshed for:: ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - [ - "./src/anotherfilereusingresolution.ts", - [ - { - "file": "./src/anotherfilereusingresolution.ts", - "start": 70, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -4510,72 +4660,10 @@ Semantic diagnostics in builder refreshed for:: "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - [ - "./src/main.ts", - [ - { - "file": "./src/main.ts", - "start": 159, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/main.ts", "./src/newfile.ts", "./src/types.ts" ], - "affectedFilesPendingEmit": [ - [ - "./src/anotherfilereusingresolution.ts", - "Full" - ], - [ - "./src/filenotfound.ts", - "Full" - ], - [ - "./src/filepresent.ts", - "Full" - ], - [ - "./src/filewithref.ts", - "Full" - ], - [ - "./src/globalanotherfilewithsamereferenes.ts", - "Full" - ], - [ - "./src/globalfilenotfound.ts", - "Full" - ], - [ - "./src/globalfilepresent.ts", - "Full" - ], - [ - "./src/globalmain.ts", - "Full" - ], - [ - "./src/globalnewfile.ts", - "Full" - ], - [ - "./src/main.ts", - "Full" - ], - [ - "./src/newfile.ts", - "Full" - ], - [ - "./src/types.ts", - "Full" - ] - ], "peristedProgram": { "files": [ { @@ -4621,6 +4709,30 @@ Semantic diagnostics in builder refreshed for:: } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", @@ -4651,13 +4763,10 @@ Semantic diagnostics in builder refreshed for:: [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4668,20 +4777,6 @@ Semantic diagnostics in builder refreshed for:: } ] }, - { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -4888,13 +4983,10 @@ Semantic diagnostics in builder refreshed for:: [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4928,13 +5020,10 @@ Semantic diagnostics in builder refreshed for:: } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -4946,7 +5035,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 9013 + "size": 8402 } @@ -4961,7 +5050,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5]},"version":"FakeTSVersion"} @@ -4980,6 +5069,22 @@ Change:: no-change-run Input:: +Output:: +/lib/tsc --b src/project +exitCode:: ExitStatus.Success + + + + +Change:: Modify main file +Input:: +//// [/src/project/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound";something();something(); + + + Output:: /lib/tsc --b src/project ======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== @@ -5019,716 +5124,6 @@ Program files:: /src/project/src/newFile.ts /src/project/src/main.ts -Semantic diagnostics in builder refreshed for:: -/src/project/src/anotherFileReusingResolution.ts -/src/project/src/main.ts - - -//// [/src/project/src/anotherFileReusingResolution.d.ts] -export {}; - - -//// [/src/project/src/anotherFileReusingResolution.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); - - -//// [/src/project/src/fileNotFound.d.ts] -export declare function something2(): number; - - -//// [/src/project/src/fileNotFound.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); - - -//// [/src/project/src/filePresent.d.ts] -export declare function something(): number; - - -//// [/src/project/src/filePresent.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); - - -//// [/src/project/src/fileWithRef.d.ts] -/// - - -//// [/src/project/src/fileWithRef.js] -/// - - -//// [/src/project/src/globalAnotherFileWithSameReferenes.d.ts] -/// -/// -declare function globalAnotherFileWithSameReferenes(): void; - - -//// [/src/project/src/globalAnotherFileWithSameReferenes.js] -/// -/// -function globalAnotherFileWithSameReferenes() { } - - -//// [/src/project/src/globalFileNotFound.d.ts] -declare function globalSomething2(): number; - - -//// [/src/project/src/globalFileNotFound.js] -function globalSomething2() { return 20; } - - -//// [/src/project/src/globalFilePresent.d.ts] -declare function globalSomething(): number; - - -//// [/src/project/src/globalFilePresent.js] -function globalSomething() { return 10; } - - -//// [/src/project/src/globalMain.d.ts] -/// -/// -/// -declare function globalMain(): void; - - -//// [/src/project/src/globalMain.js] -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -globalSomething(); - - -//// [/src/project/src/globalNewFile.d.ts] -declare function globalFoo(): number; - - -//// [/src/project/src/globalNewFile.js] -function globalFoo() { return 20; } - - -//// [/src/project/src/main.d.ts] -export {}; - - -//// [/src/project/src/main.js] -define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - - -//// [/src/project/src/newFile.d.ts] -export declare function foo(): number; - - -//// [/src/project/src/newFile.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); - - -//// [/src/project/src/types.d.ts] -interface SomeType { -} - - -//// [/src/project/src/types.js] - - -//// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} - -//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./src/filepresent.ts", - "./src/filenotfound.ts", - "./src/anotherfilereusingresolution.ts", - "./src/types.ts", - "./src/filewithref.ts", - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalanotherfilewithsamereferenes.ts", - "./src/globalnewfile.ts", - "./src/globalmain.ts", - "./src/newfile.ts", - "./src/main.ts", - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts", - "./src/globalFilePresent.ts", - "./src/globalFileNotFound.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalNewFile.ts", - "./src/globalMain.ts", - "./src/newFile.ts" - ], - "fileNamesList": [ - [ - "./src/filepresent.ts", - "./src/filenotfound.ts" - ], - [ - "./src/types.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalnewfile.ts" - ], - [ - "./src/filepresent.ts", - "./src/filenotfound.ts", - "./src/newfile.ts" - ] - ], - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }", - "signature": "-15062742831-export declare function something(): number;\r\n" - }, - "./src/filenotfound.ts": { - "version": "-497034637-export function something2() { return 20; }", - "signature": "-13705775197-export declare function something2(): number;\r\n" - }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-4882119183-export {};\r\n" - }, - "./src/types.ts": { - "version": "-12575322908-interface SomeType {}", - "signature": "-10608150606-interface SomeType {\r\n}\r\n", - "affectsGlobalScope": true - }, - "./src/filewithref.ts": { - "version": "-6085631553-/// ", - "signature": "-3515861877-/// \r\n" - }, - "./src/globalfilepresent.ts": { - "version": "-5627034801-function globalSomething() { return 10; }", - "signature": "-6032143744-declare function globalSomething(): number;\r\n", - "affectsGlobalScope": true - }, - "./src/globalfilenotfound.ts": { - "version": "-6310824062-function globalSomething2() { return 20; }", - "signature": "-7753781454-declare function globalSomething2(): number;\r\n", - "affectsGlobalScope": true - }, - "./src/globalanotherfilewithsamereferenes.ts": { - "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", - "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", - "affectsGlobalScope": true - }, - "./src/globalnewfile.ts": { - "version": "4916490342-function globalFoo() { return 20; }", - "signature": "4157970454-declare function globalFoo(): number;\r\n", - "affectsGlobalScope": true - }, - "./src/globalmain.ts": { - "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", - "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", - "affectsGlobalScope": true - }, - "./src/newfile.ts": { - "version": "4428918903-export function foo() { return 20; }", - "signature": "-3405156953-export declare function foo(): number;\r\n" - }, - "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", - "signature": "-4882119183-export {};\r\n" - } - }, - "options": { - "composite": true, - "configFilePath": "./tsconfig.json", - "module": 2, - "persistResolutions": true, - "traceResolution": true - }, - "referencedMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts", - "./src/filenotfound.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ], - "./src/globalanotherfilewithsamereferenes.ts": [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - "./src/globalmain.ts": [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalnewfile.ts" - ], - "./src/main.ts": [ - "./src/filepresent.ts", - "./src/filenotfound.ts", - "./src/newfile.ts" - ] - }, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", - "./src/filenotfound.ts", - "./src/filepresent.ts", - "./src/filewithref.ts", - "./src/globalanotherfilewithsamereferenes.ts", - "./src/globalfilenotfound.ts", - "./src/globalfilepresent.ts", - "./src/globalmain.ts", - "./src/globalnewfile.ts", - "./src/main.ts", - "./src/newfile.ts", - "./src/types.ts" - ], - "peristedProgram": { - "files": [ - { - "fileName": "../../lib/lib.d.ts", - "originalFileName": "../../lib/lib.d.ts", - "path": "../../lib/lib.d.ts", - "resolvedPath": "../../lib/lib.d.ts", - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "flags": 0, - "hasNoDefaultLib": true, - "includeReasons": [ - { - "kind": "LibFile" - } - ] - }, - { - "fileName": "./src/filePresent.ts", - "originalFileName": "./src/filePresent.ts", - "path": "./src/filepresent.ts", - "resolvedPath": "./src/filepresent.ts", - "version": "11598859296-export function something() { return 10; }", - "flags": 0, - "includeReasons": [ - { - "kind": "Import", - "file": "./src/anotherfilereusingresolution.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 2 - }, - { - "kind": "Import", - "file": "./src/main.ts", - "index": 1 - }, - { - "kind": "Import", - "file": "./src/main.ts", - "index": 2 - } - ] - }, - { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "Import", - "file": "./src/anotherfilereusingresolution.ts", - "index": 1 - }, - { - "kind": "RootFile", - "index": 1 - }, - { - "kind": "Import", - "file": "./src/main.ts", - "index": 3 - } - ] - }, - { - "fileName": "./src/anotherFileReusingResolution.ts", - "originalFileName": "./src/anotherFileReusingResolution.ts", - "path": "./src/anotherfilereusingresolution.ts", - "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "flags": 0, - "imports": [ - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ - "./filePresent", - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - } - ], - [ - "./fileNotFound", - { - "resolvedModule": { - "resolvedFileName": "./src/fileNotFound.ts", - "extension": ".ts" - } - } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 0 - } - ] - }, - { - "fileName": "./src/types.ts", - "originalFileName": "./src/types.ts", - "path": "./src/types.ts", - "resolvedPath": "./src/types.ts", - "version": "-12575322908-interface SomeType {}", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/filewithref.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 11 - } - ] - }, - { - "fileName": "./src/fileWithRef.ts", - "originalFileName": "./src/fileWithRef.ts", - "path": "./src/filewithref.ts", - "resolvedPath": "./src/filewithref.ts", - "version": "-6085631553-/// ", - "flags": 0, - "referencedFiles": [ - "./types.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 3 - } - ] - }, - { - "fileName": "./src/globalFilePresent.ts", - "originalFileName": "./src/globalFilePresent.ts", - "path": "./src/globalfilepresent.ts", - "resolvedPath": "./src/globalfilepresent.ts", - "version": "-5627034801-function globalSomething() { return 10; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalanotherfilewithsamereferenes.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 6 - }, - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 1 - } - ] - }, - { - "fileName": "./src/globalFileNotFound.ts", - "originalFileName": "./src/globalFileNotFound.ts", - "path": "./src/globalfilenotfound.ts", - "resolvedPath": "./src/globalfilenotfound.ts", - "version": "-6310824062-function globalSomething2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalanotherfilewithsamereferenes.ts", - "index": 1 - }, - { - "kind": "RootFile", - "index": 5 - }, - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 2 - } - ] - }, - { - "fileName": "./src/globalAnotherFileWithSameReferenes.ts", - "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", - "path": "./src/globalanotherfilewithsamereferenes.ts", - "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", - "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", - "flags": 0, - "referencedFiles": [ - "./globalFilePresent.ts", - "./globalFileNotFound.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 4 - } - ] - }, - { - "fileName": "./src/globalNewFile.ts", - "originalFileName": "./src/globalNewFile.ts", - "path": "./src/globalnewfile.ts", - "resolvedPath": "./src/globalnewfile.ts", - "version": "4916490342-function globalFoo() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 8 - } - ] - }, - { - "fileName": "./src/globalMain.ts", - "originalFileName": "./src/globalMain.ts", - "path": "./src/globalmain.ts", - "resolvedPath": "./src/globalmain.ts", - "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", - "flags": 0, - "referencedFiles": [ - "./globalNewFile.ts", - "./globalFilePresent.ts", - "./globalFileNotFound.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 7 - } - ] - }, - { - "fileName": "./src/newFile.ts", - "originalFileName": "./src/newFile.ts", - "path": "./src/newfile.ts", - "resolvedPath": "./src/newfile.ts", - "version": "4428918903-export function foo() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "Import", - "file": "./src/main.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 10 - } - ] - }, - { - "fileName": "./src/main.ts", - "originalFileName": "./src/main.ts", - "path": "./src/main.ts", - "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", - "flags": 0, - "imports": [ - { - "kind": 10, - "text": "./newFile" - }, - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ - "./newFile", - { - "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" - } - } - ], - [ - "./filePresent", - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - } - ], - [ - "./fileNotFound", - { - "resolvedModule": { - "resolvedFileName": "./src/fileNotFound.ts", - "extension": ".ts" - } - } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 9 - } - ] - } - ], - "rootFileNames": [ - "./src/anotherFileReusingResolution.ts", - "./src/fileNotFound.ts", - "./src/filePresent.ts", - "./src/fileWithRef.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalFileNotFound.ts", - "./src/globalFilePresent.ts", - "./src/globalMain.ts", - "./src/globalNewFile.ts", - "./src/main.ts", - "./src/newFile.ts", - "./src/types.ts" - ], - "resolutions": [ - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - }, - { - "resolvedModule": { - "resolvedFileName": "./src/fileNotFound.ts", - "extension": ".ts" - } - }, - { - "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" - } - } - ] - } - }, - "version": "FakeTSVersion", - "size": 8402 -} - - - -Change:: Modify main file -Input:: -//// [/src/project/src/main.ts] -import { foo } from "./newFile";import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something();something(); - - - -Output:: -/lib/tsc --b src/project -Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. -Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. -exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] -Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Completely -Program files:: -/lib/lib.d.ts -/src/project/src/filePresent.ts -/src/project/src/fileNotFound.ts -/src/project/src/anotherFileReusingResolution.ts -/src/project/src/types.ts -/src/project/src/fileWithRef.ts -/src/project/src/globalFilePresent.ts -/src/project/src/globalFileNotFound.ts -/src/project/src/globalAnotherFileWithSameReferenes.ts -/src/project/src/globalNewFile.ts -/src/project/src/globalMain.ts -/src/project/src/newFile.ts -/src/project/src/main.ts - Semantic diagnostics in builder refreshed for:: /src/project/src/main.ts diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index 21116a43c609b..a64f2b44714e8 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -1077,10 +1077,19 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1607,10 +1616,19 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2133,7 +2151,14 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2661,14 +2686,23 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3241,22 +3275,17 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ - -[12:01:54 AM] Found 2 errors. Watching for file changes. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +[12:02:00 AM] Found 0 errors. Watching for file changes. @@ -3266,8 +3295,8 @@ Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -3317,16 +3346,51 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1535, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 558, + "kind": "text" + } + ] + } + }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -3337,23 +3401,20 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/newFile.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], [ "./src/types.ts" @@ -3369,6 +3430,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -3380,12 +3442,12 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" - }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "affectsGlobalScope": true @@ -3432,7 +3494,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3448,6 +3511,7 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, @@ -3497,6 +3561,30 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", @@ -3527,13 +3615,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -3544,20 +3629,6 @@ exitCode:: ExitStatus.undefined } ] }, - { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -3764,13 +3835,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -3804,13 +3872,10 @@ exitCode:: ExitStatus.undefined } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -3822,8 +3887,150 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 7403 + "size": 7866 +} + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1535) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-558) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; } +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== Change:: Delete file that could not be resolved @@ -3836,47 +4043,12 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound. Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:56 AM] File change detected. Starting incremental compilation... +[12:02:02 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. -Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ +[12:02:03 AM] Found 0 errors. Watching for file changes. -[12:02:03 AM] Found 2 errors. Watching for file changes. - - - -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] -Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: SafeModules -Program files:: -/a/lib/lib.d.ts -/user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/types.ts -/user/username/projects/myproject/src/fileWithRef.ts -/user/username/projects/myproject/src/globalFilePresent.ts -/user/username/projects/myproject/src/globalFileNotFound.ts -/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts -/user/username/projects/myproject/src/globalNewFile.ts -/user/username/projects/myproject/src/globalMain.ts -/user/username/projects/myproject/src/newFile.ts -/user/username/projects/myproject/src/main.ts -No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -3912,493 +4084,3 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} - -//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] -{ - "program": { - "fileNames": [ - "../../../../a/lib/lib.d.ts", - "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", - "./src/types.ts", - "./src/filewithref.ts", - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalanotherfilewithsamereferenes.ts", - "./src/globalnewfile.ts", - "./src/globalmain.ts", - "./src/newfile.ts", - "./src/main.ts", - "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts", - "./src/globalFilePresent.ts", - "./src/globalFileNotFound.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalNewFile.ts", - "./src/globalMain.ts", - "./src/newFile.ts", - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ], - "fileNamesList": [ - [ - "./src/filepresent.ts" - ], - [ - "./src/types.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalnewfile.ts" - ], - [ - "./src/filepresent.ts", - "./src/newfile.ts" - ] - ], - "fileInfos": { - "../../../../a/lib/lib.d.ts": { - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true - }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }" - }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" - }, - "./src/types.ts": { - "version": "-12575322908-interface SomeType {}", - "affectsGlobalScope": true - }, - "./src/filewithref.ts": { - "version": "-6085631553-/// " - }, - "./src/globalfilepresent.ts": { - "version": "-5627034801-function globalSomething() { return 10; }", - "affectsGlobalScope": true - }, - "./src/globalfilenotfound.ts": { - "version": "-6310824062-function globalSomething2() { return 20; }", - "affectsGlobalScope": true - }, - "./src/globalanotherfilewithsamereferenes.ts": { - "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", - "affectsGlobalScope": true - }, - "./src/globalnewfile.ts": { - "version": "4916490342-function globalFoo() { return 20; }", - "affectsGlobalScope": true - }, - "./src/globalmain.ts": { - "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", - "affectsGlobalScope": true - }, - "./src/newfile.ts": { - "version": "4428918903-export function foo() { return 20; }" - }, - "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" - } - }, - "options": { - "composite": true, - "configFilePath": "./tsconfig.json", - "extendedDiagnostics": true, - "module": 2, - "outFile": "./outFile.js", - "persistResolutions": true, - "traceResolution": true, - "watch": true - }, - "referencedMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ], - "./src/globalanotherfilewithsamereferenes.ts": [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - "./src/globalmain.ts": [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalnewfile.ts" - ], - "./src/main.ts": [ - "./src/filepresent.ts", - "./src/newfile.ts" - ] - }, - "exportedModulesMap": {}, - "peristedProgram": { - "files": [ - { - "fileName": "../../../../a/lib/lib.d.ts", - "originalFileName": "../../../../a/lib/lib.d.ts", - "path": "../../../../a/lib/lib.d.ts", - "resolvedPath": "../../../../a/lib/lib.d.ts", - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "flags": 0, - "hasNoDefaultLib": true, - "includeReasons": [ - { - "kind": "LibFile" - } - ] - }, - { - "fileName": "./src/filePresent.ts", - "originalFileName": "./src/filePresent.ts", - "path": "./src/filepresent.ts", - "resolvedPath": "./src/filepresent.ts", - "version": "11598859296-export function something() { return 10; }", - "flags": 0, - "includeReasons": [ - { - "kind": "Import", - "file": "./src/anotherfilereusingresolution.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 1 - }, - { - "kind": "Import", - "file": "./src/main.ts", - "index": 1 - }, - { - "kind": "Import", - "file": "./src/main.ts", - "index": 2 - } - ] - }, - { - "fileName": "./src/anotherFileReusingResolution.ts", - "originalFileName": "./src/anotherFileReusingResolution.ts", - "path": "./src/anotherfilereusingresolution.ts", - "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "flags": 0, - "imports": [ - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ - "./filePresent", - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - } - ], - [ - "./fileNotFound", - { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] - } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 0 - } - ] - }, - { - "fileName": "./src/types.ts", - "originalFileName": "./src/types.ts", - "path": "./src/types.ts", - "resolvedPath": "./src/types.ts", - "version": "-12575322908-interface SomeType {}", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/filewithref.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 10 - } - ] - }, - { - "fileName": "./src/fileWithRef.ts", - "originalFileName": "./src/fileWithRef.ts", - "path": "./src/filewithref.ts", - "resolvedPath": "./src/filewithref.ts", - "version": "-6085631553-/// ", - "flags": 0, - "referencedFiles": [ - "./types.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 2 - } - ] - }, - { - "fileName": "./src/globalFilePresent.ts", - "originalFileName": "./src/globalFilePresent.ts", - "path": "./src/globalfilepresent.ts", - "resolvedPath": "./src/globalfilepresent.ts", - "version": "-5627034801-function globalSomething() { return 10; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalanotherfilewithsamereferenes.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 5 - }, - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 1 - } - ] - }, - { - "fileName": "./src/globalFileNotFound.ts", - "originalFileName": "./src/globalFileNotFound.ts", - "path": "./src/globalfilenotfound.ts", - "resolvedPath": "./src/globalfilenotfound.ts", - "version": "-6310824062-function globalSomething2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalanotherfilewithsamereferenes.ts", - "index": 1 - }, - { - "kind": "RootFile", - "index": 4 - }, - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 2 - } - ] - }, - { - "fileName": "./src/globalAnotherFileWithSameReferenes.ts", - "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", - "path": "./src/globalanotherfilewithsamereferenes.ts", - "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", - "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", - "flags": 0, - "referencedFiles": [ - "./globalFilePresent.ts", - "./globalFileNotFound.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 3 - } - ] - }, - { - "fileName": "./src/globalNewFile.ts", - "originalFileName": "./src/globalNewFile.ts", - "path": "./src/globalnewfile.ts", - "resolvedPath": "./src/globalnewfile.ts", - "version": "4916490342-function globalFoo() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 7 - } - ] - }, - { - "fileName": "./src/globalMain.ts", - "originalFileName": "./src/globalMain.ts", - "path": "./src/globalmain.ts", - "resolvedPath": "./src/globalmain.ts", - "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", - "flags": 0, - "referencedFiles": [ - "./globalNewFile.ts", - "./globalFilePresent.ts", - "./globalFileNotFound.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 6 - } - ] - }, - { - "fileName": "./src/newFile.ts", - "originalFileName": "./src/newFile.ts", - "path": "./src/newfile.ts", - "resolvedPath": "./src/newfile.ts", - "version": "4428918903-export function foo() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "Import", - "file": "./src/main.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 9 - } - ] - }, - { - "fileName": "./src/main.ts", - "originalFileName": "./src/main.ts", - "path": "./src/main.ts", - "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", - "flags": 0, - "imports": [ - { - "kind": 10, - "text": "./newFile" - }, - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ - "./newFile", - { - "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" - } - } - ], - [ - "./filePresent", - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - } - ], - [ - "./fileNotFound", - { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] - } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 8 - } - ] - } - ], - "rootFileNames": [ - "./src/anotherFileReusingResolution.ts", - "./src/filePresent.ts", - "./src/fileWithRef.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalFileNotFound.ts", - "./src/globalFilePresent.ts", - "./src/globalMain.ts", - "./src/globalNewFile.ts", - "./src/main.ts", - "./src/newFile.ts", - "./src/types.ts" - ], - "resolutions": [ - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - }, - { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] - }, - { - "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" - } - } - ] - } - }, - "version": "FakeTSVersion", - "size": 7104 -} - diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js index e36d48d737977..3ea59d6f78e52 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -1258,10 +1258,19 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1881,10 +1890,19 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2507,7 +2525,14 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3125,14 +3150,23 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3802,22 +3836,89 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ - -[12:01:54 AM] Found 2 errors. Watching for file changes. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/anotherFileReusingResolution.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/filePresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/filePresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileWithRef.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileWithRef.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFilePresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFilePresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalMain.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalMain.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/main.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/main.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/types.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/types.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalNewFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalNewFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:42 AM] Found 0 errors. Watching for file changes. @@ -3827,8 +3928,8 @@ Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -3841,6 +3942,8 @@ Program files:: Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -3879,7 +3982,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3887,8 +3990,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -3899,23 +4002,20 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/newFile.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], [ "./src/types.ts" @@ -3931,6 +4031,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -3944,14 +4045,14 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-3531856636-export {};\n" - }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10760962856-interface SomeType {\n}\n", @@ -4006,7 +4107,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4022,25 +4124,14 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - [ - "./src/anotherfilereusingresolution.ts", - [ - { - "file": "./src/anotherfilereusingresolution.ts", - "start": 70, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -4049,72 +4140,10 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - [ - "./src/main.ts", - [ - { - "file": "./src/main.ts", - "start": 159, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/main.ts", "./src/newfile.ts", "./src/types.ts" ], - "affectedFilesPendingEmit": [ - [ - "./src/anotherfilereusingresolution.ts", - "Full" - ], - [ - "./src/filenotfound.ts", - "Full" - ], - [ - "./src/filepresent.ts", - "Full" - ], - [ - "./src/filewithref.ts", - "Full" - ], - [ - "./src/globalanotherfilewithsamereferenes.ts", - "Full" - ], - [ - "./src/globalfilenotfound.ts", - "Full" - ], - [ - "./src/globalfilepresent.ts", - "Full" - ], - [ - "./src/globalmain.ts", - "Full" - ], - [ - "./src/globalnewfile.ts", - "Full" - ], - [ - "./src/main.ts", - "Full" - ], - [ - "./src/newfile.ts", - "Full" - ], - [ - "./src/types.ts", - "Full" - ] - ], "peristedProgram": { "files": [ { @@ -4160,6 +4189,30 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", @@ -4190,13 +4243,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4207,20 +4257,6 @@ exitCode:: ExitStatus.undefined } ] }, - { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -4427,13 +4463,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4467,13 +4500,10 @@ exitCode:: ExitStatus.undefined } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -4485,9 +4515,142 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8831 + "size": 8220 } +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] +export {}; + + +//// [/user/username/projects/myproject/src/filePresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); + + +//// [/user/username/projects/myproject/src/filePresent.d.ts] +export declare function something(): number; + + +//// [/user/username/projects/myproject/src/fileWithRef.js] +/// + + +//// [/user/username/projects/myproject/src/fileWithRef.d.ts] +/// + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] +/// +/// +declare function globalAnotherFileWithSameReferenes(): void; + + +//// [/user/username/projects/myproject/src/globalFilePresent.js] +function globalSomething() { return 10; } + + +//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] +declare function globalSomething(): number; + + +//// [/user/username/projects/myproject/src/globalMain.js] +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +//// [/user/username/projects/myproject/src/globalMain.d.ts] +/// +/// +/// +declare function globalMain(): void; + + +//// [/user/username/projects/myproject/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/src/main.d.ts] +export {}; + + +//// [/user/username/projects/myproject/src/types.js] + + +//// [/user/username/projects/myproject/src/types.d.ts] +interface SomeType { +} + + +//// [/user/username/projects/myproject/src/globalNewFile.js] +function globalFoo() { return 20; } + + +//// [/user/username/projects/myproject/src/globalNewFile.d.ts] +declare function globalFoo(): number; + + +//// [/user/username/projects/myproject/src/globalFileNotFound.js] +function globalSomething2() { return 20; } + + +//// [/user/username/projects/myproject/src/globalFileNotFound.d.ts] +declare function globalSomething2(): number; + + +//// [/user/username/projects/myproject/src/newFile.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); + + +//// [/user/username/projects/myproject/src/newFile.d.ts] +export declare function foo(): number; + + +//// [/user/username/projects/myproject/src/fileNotFound.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); + + +//// [/user/username/projects/myproject/src/fileNotFound.d.ts] +export declare function something2(): number; + + Change:: Delete file that could not be resolved @@ -4499,15 +4662,16 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound. Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:56 AM] File change detected. Starting incremental compilation... +[12:02:44 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -4518,17 +4682,18 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:02:03 AM] Found 2 errors. Watching for file changes. +[12:02:51 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.d.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -4540,6 +4705,9 @@ Program files:: /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -4566,6 +4734,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} FsWatches:: @@ -4576,7 +4746,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"affectedFilesPendingEmit":[[3,1],[13,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[12,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,16,19,18,17,21,20,12,22,4],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":22,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},"-14992185226-export declare function something2(): number;\n",{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[3,1],[4,1],[13,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"filesByName":[[24,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4585,6 +4755,7 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.d.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -4594,9 +4765,9 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", - "./src/filenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.d.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -4604,11 +4775,8 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/filenotfound.ts", + "./src/fileNotFound.ts" ], "fileNamesList": [ [ @@ -4645,6 +4813,10 @@ exitCode:: ExitStatus.undefined "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-3531856636-export {};\n" }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10760962856-interface SomeType {\n}\n", @@ -4734,6 +4906,7 @@ exitCode:: ExitStatus.undefined } ] ], + "./src/filenotfound.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -4763,48 +4936,12 @@ exitCode:: ExitStatus.undefined "Full" ], [ - "./src/filenotfound.ts", - "Full" - ], - [ - "./src/filepresent.ts", - "Full" - ], - [ - "./src/filewithref.ts", - "Full" - ], - [ - "./src/globalanotherfilewithsamereferenes.ts", - "Full" - ], - [ - "./src/globalfilenotfound.ts", - "Full" - ], - [ - "./src/globalfilepresent.ts", - "Full" - ], - [ - "./src/globalmain.ts", - "Full" - ], - [ - "./src/globalnewfile.ts", + "./src/filenotfound.d.ts", "Full" ], [ "./src/main.ts", "Full" - ], - [ - "./src/newfile.ts", - "Full" - ], - [ - "./src/types.ts", - "Full" ] ], "peristedProgram": { @@ -4838,7 +4975,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -4882,13 +5019,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4899,6 +5033,20 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -4914,7 +5062,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -4931,7 +5079,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -4950,7 +5098,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -4974,7 +5122,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -4997,7 +5145,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -5016,7 +5164,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -5035,7 +5183,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -5054,7 +5202,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -5105,26 +5253,24 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -5136,6 +5282,9 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, "resolutions": [ { "resolvedModule": { @@ -5144,13 +5293,10 @@ exitCode:: ExitStatus.undefined } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -5162,6 +5308,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8496 + "size": 8692 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 520268fcc6d4f..b402981ea42eb 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -652,10 +652,19 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1182,10 +1191,19 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1708,7 +1726,14 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2236,14 +2261,23 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2816,22 +2850,17 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ - -[12:01:45 AM] Found 2 errors. Watching for file changes. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +[12:01:51 AM] Found 0 errors. Watching for file changes. @@ -2841,8 +2870,8 @@ Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -2892,16 +2921,51 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1535, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 558, + "kind": "text" + } + ] + } + }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -2912,23 +2976,20 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/newFile.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], [ "./src/types.ts" @@ -2944,6 +3005,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -2955,12 +3017,12 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" - }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "affectsGlobalScope": true @@ -3007,7 +3069,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3023,6 +3086,7 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, @@ -3072,6 +3136,30 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", @@ -3102,13 +3190,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -3119,20 +3204,6 @@ exitCode:: ExitStatus.undefined } ] }, - { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -3339,13 +3410,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -3379,13 +3447,10 @@ exitCode:: ExitStatus.undefined } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -3397,8 +3462,150 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 7403 + "size": 7866 +} + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1535) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-558) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; } +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== Change:: Delete file that could not be resolved @@ -3411,47 +3618,12 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound. Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:47 AM] File change detected. Starting incremental compilation... +[12:01:53 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. -Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ +[12:01:54 AM] Found 0 errors. Watching for file changes. -[12:01:54 AM] Found 2 errors. Watching for file changes. - - - -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] -Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: SafeModules -Program files:: -/a/lib/lib.d.ts -/user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/types.ts -/user/username/projects/myproject/src/fileWithRef.ts -/user/username/projects/myproject/src/globalFilePresent.ts -/user/username/projects/myproject/src/globalFileNotFound.ts -/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts -/user/username/projects/myproject/src/globalNewFile.ts -/user/username/projects/myproject/src/globalMain.ts -/user/username/projects/myproject/src/newFile.ts -/user/username/projects/myproject/src/main.ts -No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -3487,493 +3659,3 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} - -//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] -{ - "program": { - "fileNames": [ - "../../../../a/lib/lib.d.ts", - "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", - "./src/types.ts", - "./src/filewithref.ts", - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalanotherfilewithsamereferenes.ts", - "./src/globalnewfile.ts", - "./src/globalmain.ts", - "./src/newfile.ts", - "./src/main.ts", - "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts", - "./src/globalFilePresent.ts", - "./src/globalFileNotFound.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalNewFile.ts", - "./src/globalMain.ts", - "./src/newFile.ts", - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ], - "fileNamesList": [ - [ - "./src/filepresent.ts" - ], - [ - "./src/types.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalnewfile.ts" - ], - [ - "./src/filepresent.ts", - "./src/newfile.ts" - ] - ], - "fileInfos": { - "../../../../a/lib/lib.d.ts": { - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true - }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }" - }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" - }, - "./src/types.ts": { - "version": "-12575322908-interface SomeType {}", - "affectsGlobalScope": true - }, - "./src/filewithref.ts": { - "version": "-6085631553-/// " - }, - "./src/globalfilepresent.ts": { - "version": "-5627034801-function globalSomething() { return 10; }", - "affectsGlobalScope": true - }, - "./src/globalfilenotfound.ts": { - "version": "-6310824062-function globalSomething2() { return 20; }", - "affectsGlobalScope": true - }, - "./src/globalanotherfilewithsamereferenes.ts": { - "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", - "affectsGlobalScope": true - }, - "./src/globalnewfile.ts": { - "version": "4916490342-function globalFoo() { return 20; }", - "affectsGlobalScope": true - }, - "./src/globalmain.ts": { - "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", - "affectsGlobalScope": true - }, - "./src/newfile.ts": { - "version": "4428918903-export function foo() { return 20; }" - }, - "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" - } - }, - "options": { - "composite": true, - "configFilePath": "./tsconfig.json", - "extendedDiagnostics": true, - "module": 2, - "outFile": "./outFile.js", - "persistResolutions": true, - "traceResolution": true, - "watch": true - }, - "referencedMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ], - "./src/globalanotherfilewithsamereferenes.ts": [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - "./src/globalmain.ts": [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalnewfile.ts" - ], - "./src/main.ts": [ - "./src/filepresent.ts", - "./src/newfile.ts" - ] - }, - "exportedModulesMap": {}, - "peristedProgram": { - "files": [ - { - "fileName": "../../../../a/lib/lib.d.ts", - "originalFileName": "../../../../a/lib/lib.d.ts", - "path": "../../../../a/lib/lib.d.ts", - "resolvedPath": "../../../../a/lib/lib.d.ts", - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "flags": 0, - "hasNoDefaultLib": true, - "includeReasons": [ - { - "kind": "LibFile" - } - ] - }, - { - "fileName": "./src/filePresent.ts", - "originalFileName": "./src/filePresent.ts", - "path": "./src/filepresent.ts", - "resolvedPath": "./src/filepresent.ts", - "version": "11598859296-export function something() { return 10; }", - "flags": 0, - "includeReasons": [ - { - "kind": "Import", - "file": "./src/anotherfilereusingresolution.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 1 - }, - { - "kind": "Import", - "file": "./src/main.ts", - "index": 1 - }, - { - "kind": "Import", - "file": "./src/main.ts", - "index": 2 - } - ] - }, - { - "fileName": "./src/anotherFileReusingResolution.ts", - "originalFileName": "./src/anotherFileReusingResolution.ts", - "path": "./src/anotherfilereusingresolution.ts", - "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "flags": 0, - "imports": [ - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ - "./filePresent", - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - } - ], - [ - "./fileNotFound", - { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] - } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 0 - } - ] - }, - { - "fileName": "./src/types.ts", - "originalFileName": "./src/types.ts", - "path": "./src/types.ts", - "resolvedPath": "./src/types.ts", - "version": "-12575322908-interface SomeType {}", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/filewithref.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 10 - } - ] - }, - { - "fileName": "./src/fileWithRef.ts", - "originalFileName": "./src/fileWithRef.ts", - "path": "./src/filewithref.ts", - "resolvedPath": "./src/filewithref.ts", - "version": "-6085631553-/// ", - "flags": 0, - "referencedFiles": [ - "./types.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 2 - } - ] - }, - { - "fileName": "./src/globalFilePresent.ts", - "originalFileName": "./src/globalFilePresent.ts", - "path": "./src/globalfilepresent.ts", - "resolvedPath": "./src/globalfilepresent.ts", - "version": "-5627034801-function globalSomething() { return 10; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalanotherfilewithsamereferenes.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 5 - }, - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 1 - } - ] - }, - { - "fileName": "./src/globalFileNotFound.ts", - "originalFileName": "./src/globalFileNotFound.ts", - "path": "./src/globalfilenotfound.ts", - "resolvedPath": "./src/globalfilenotfound.ts", - "version": "-6310824062-function globalSomething2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalanotherfilewithsamereferenes.ts", - "index": 1 - }, - { - "kind": "RootFile", - "index": 4 - }, - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 2 - } - ] - }, - { - "fileName": "./src/globalAnotherFileWithSameReferenes.ts", - "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", - "path": "./src/globalanotherfilewithsamereferenes.ts", - "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", - "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", - "flags": 0, - "referencedFiles": [ - "./globalFilePresent.ts", - "./globalFileNotFound.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 3 - } - ] - }, - { - "fileName": "./src/globalNewFile.ts", - "originalFileName": "./src/globalNewFile.ts", - "path": "./src/globalnewfile.ts", - "resolvedPath": "./src/globalnewfile.ts", - "version": "4916490342-function globalFoo() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 7 - } - ] - }, - { - "fileName": "./src/globalMain.ts", - "originalFileName": "./src/globalMain.ts", - "path": "./src/globalmain.ts", - "resolvedPath": "./src/globalmain.ts", - "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", - "flags": 0, - "referencedFiles": [ - "./globalNewFile.ts", - "./globalFilePresent.ts", - "./globalFileNotFound.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 6 - } - ] - }, - { - "fileName": "./src/newFile.ts", - "originalFileName": "./src/newFile.ts", - "path": "./src/newfile.ts", - "resolvedPath": "./src/newfile.ts", - "version": "4428918903-export function foo() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "Import", - "file": "./src/main.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 9 - } - ] - }, - { - "fileName": "./src/main.ts", - "originalFileName": "./src/main.ts", - "path": "./src/main.ts", - "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", - "flags": 0, - "imports": [ - { - "kind": 10, - "text": "./newFile" - }, - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ - "./newFile", - { - "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" - } - } - ], - [ - "./filePresent", - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - } - ], - [ - "./fileNotFound", - { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] - } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 8 - } - ] - } - ], - "rootFileNames": [ - "./src/anotherFileReusingResolution.ts", - "./src/filePresent.ts", - "./src/fileWithRef.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalFileNotFound.ts", - "./src/globalFilePresent.ts", - "./src/globalMain.ts", - "./src/globalNewFile.ts", - "./src/main.ts", - "./src/newFile.ts", - "./src/types.ts" - ], - "resolutions": [ - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - }, - { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] - }, - { - "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" - } - } - ] - } - }, - "version": "FakeTSVersion", - "size": 7104 -} - diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index 84f8f975d02c0..a77dca0a27192 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -738,10 +738,19 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1361,10 +1370,19 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1987,7 +2005,14 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2605,14 +2630,23 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3282,22 +3316,89 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ - -[12:01:45 AM] Found 2 errors. Watching for file changes. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/anotherFileReusingResolution.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/filePresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/filePresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileWithRef.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileWithRef.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFilePresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFilePresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalMain.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalMain.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/main.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/main.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/types.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/types.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalNewFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalNewFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:33 AM] Found 0 errors. Watching for file changes. @@ -3307,8 +3408,8 @@ Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -3321,6 +3422,8 @@ Program files:: Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -3359,7 +3462,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3367,8 +3470,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -3379,23 +3482,20 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/newFile.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], [ "./src/types.ts" @@ -3411,6 +3511,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -3424,14 +3525,14 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-3531856636-export {};\n" - }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10760962856-interface SomeType {\n}\n", @@ -3486,7 +3587,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3502,25 +3604,14 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - [ - "./src/anotherfilereusingresolution.ts", - [ - { - "file": "./src/anotherfilereusingresolution.ts", - "start": 70, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -3529,72 +3620,10 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - [ - "./src/main.ts", - [ - { - "file": "./src/main.ts", - "start": 159, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/main.ts", "./src/newfile.ts", "./src/types.ts" ], - "affectedFilesPendingEmit": [ - [ - "./src/anotherfilereusingresolution.ts", - "Full" - ], - [ - "./src/filenotfound.ts", - "Full" - ], - [ - "./src/filepresent.ts", - "Full" - ], - [ - "./src/filewithref.ts", - "Full" - ], - [ - "./src/globalanotherfilewithsamereferenes.ts", - "Full" - ], - [ - "./src/globalfilenotfound.ts", - "Full" - ], - [ - "./src/globalfilepresent.ts", - "Full" - ], - [ - "./src/globalmain.ts", - "Full" - ], - [ - "./src/globalnewfile.ts", - "Full" - ], - [ - "./src/main.ts", - "Full" - ], - [ - "./src/newfile.ts", - "Full" - ], - [ - "./src/types.ts", - "Full" - ] - ], "peristedProgram": { "files": [ { @@ -3640,6 +3669,30 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", @@ -3670,13 +3723,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -3687,20 +3737,6 @@ exitCode:: ExitStatus.undefined } ] }, - { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -3907,13 +3943,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -3947,13 +3980,10 @@ exitCode:: ExitStatus.undefined } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -3965,9 +3995,142 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8831 + "size": 8220 } +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] +export {}; + + +//// [/user/username/projects/myproject/src/filePresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); + + +//// [/user/username/projects/myproject/src/filePresent.d.ts] +export declare function something(): number; + + +//// [/user/username/projects/myproject/src/fileWithRef.js] +/// + + +//// [/user/username/projects/myproject/src/fileWithRef.d.ts] +/// + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] +/// +/// +declare function globalAnotherFileWithSameReferenes(): void; + + +//// [/user/username/projects/myproject/src/globalFilePresent.js] +function globalSomething() { return 10; } + + +//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] +declare function globalSomething(): number; + + +//// [/user/username/projects/myproject/src/globalMain.js] +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +//// [/user/username/projects/myproject/src/globalMain.d.ts] +/// +/// +/// +declare function globalMain(): void; + + +//// [/user/username/projects/myproject/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/src/main.d.ts] +export {}; + + +//// [/user/username/projects/myproject/src/types.js] + + +//// [/user/username/projects/myproject/src/types.d.ts] +interface SomeType { +} + + +//// [/user/username/projects/myproject/src/globalNewFile.js] +function globalFoo() { return 20; } + + +//// [/user/username/projects/myproject/src/globalNewFile.d.ts] +declare function globalFoo(): number; + + +//// [/user/username/projects/myproject/src/globalFileNotFound.js] +function globalSomething2() { return 20; } + + +//// [/user/username/projects/myproject/src/globalFileNotFound.d.ts] +declare function globalSomething2(): number; + + +//// [/user/username/projects/myproject/src/newFile.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); + + +//// [/user/username/projects/myproject/src/newFile.d.ts] +export declare function foo(): number; + + +//// [/user/username/projects/myproject/src/fileNotFound.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); + + +//// [/user/username/projects/myproject/src/fileNotFound.d.ts] +export declare function something2(): number; + + Change:: Delete file that could not be resolved @@ -3979,15 +4142,16 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound. Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:47 AM] File change detected. Starting incremental compilation... +[12:02:35 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3998,17 +4162,18 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:54 AM] Found 2 errors. Watching for file changes. +[12:02:42 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.d.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -4020,6 +4185,9 @@ Program files:: /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -4046,6 +4214,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} FsWatches:: @@ -4056,7 +4226,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"affectedFilesPendingEmit":[[3,1],[13,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[12,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,16,19,18,17,21,20,12,22,4],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":22,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},"-14992185226-export declare function something2(): number;\n",{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[3,1],[4,1],[13,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"filesByName":[[24,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4065,6 +4235,7 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.d.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -4074,9 +4245,9 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", - "./src/filenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.d.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -4084,11 +4255,8 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/filenotfound.ts", + "./src/fileNotFound.ts" ], "fileNamesList": [ [ @@ -4125,6 +4293,10 @@ exitCode:: ExitStatus.undefined "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-3531856636-export {};\n" }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10760962856-interface SomeType {\n}\n", @@ -4214,6 +4386,7 @@ exitCode:: ExitStatus.undefined } ] ], + "./src/filenotfound.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -4243,48 +4416,12 @@ exitCode:: ExitStatus.undefined "Full" ], [ - "./src/filenotfound.ts", - "Full" - ], - [ - "./src/filepresent.ts", - "Full" - ], - [ - "./src/filewithref.ts", - "Full" - ], - [ - "./src/globalanotherfilewithsamereferenes.ts", - "Full" - ], - [ - "./src/globalfilenotfound.ts", - "Full" - ], - [ - "./src/globalfilepresent.ts", - "Full" - ], - [ - "./src/globalmain.ts", - "Full" - ], - [ - "./src/globalnewfile.ts", + "./src/filenotfound.d.ts", "Full" ], [ "./src/main.ts", "Full" - ], - [ - "./src/newfile.ts", - "Full" - ], - [ - "./src/types.ts", - "Full" ] ], "peristedProgram": { @@ -4318,7 +4455,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -4362,13 +4499,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4379,6 +4513,20 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -4394,7 +4542,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -4411,7 +4559,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -4430,7 +4578,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -4454,7 +4602,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -4477,7 +4625,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -4496,7 +4644,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -4515,7 +4663,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -4534,7 +4682,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -4585,26 +4733,24 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -4616,6 +4762,9 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, "resolutions": [ { "resolvedModule": { @@ -4624,13 +4773,10 @@ exitCode:: ExitStatus.undefined } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -4642,6 +4788,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8496 + "size": 8692 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 5cb3ea1a33411..aec4dca5fa9f1 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -1074,10 +1074,19 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1604,10 +1613,19 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2130,7 +2148,14 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2658,14 +2683,23 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3238,22 +3272,17 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ - -[12:01:48 AM] Found 2 errors. Watching for file changes. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +[12:01:54 AM] Found 0 errors. Watching for file changes. @@ -3263,8 +3292,8 @@ Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -3314,16 +3343,51 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1535, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 558, + "kind": "text" + } + ] + } + }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -3334,23 +3398,20 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/newFile.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], [ "./src/types.ts" @@ -3366,6 +3427,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -3377,12 +3439,12 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" - }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "affectsGlobalScope": true @@ -3429,7 +3491,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3445,6 +3508,7 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, @@ -3494,6 +3558,30 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", @@ -3524,13 +3612,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -3541,20 +3626,6 @@ exitCode:: ExitStatus.undefined } ] }, - { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -3761,13 +3832,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -3801,13 +3869,10 @@ exitCode:: ExitStatus.undefined } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -3819,8 +3884,150 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 7403 + "size": 7866 +} + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1535) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-558) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; } +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== Change:: Delete file that could not be resolved @@ -3833,47 +4040,12 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound. Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:50 AM] File change detected. Starting incremental compilation... +[12:01:56 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. -Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ +[12:01:57 AM] Found 0 errors. Watching for file changes. -[12:01:57 AM] Found 2 errors. Watching for file changes. - - - -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] -Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program structureReused: SafeModules -Program files:: -/a/lib/lib.d.ts -/user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/types.ts -/user/username/projects/myproject/src/fileWithRef.ts -/user/username/projects/myproject/src/globalFilePresent.ts -/user/username/projects/myproject/src/globalFileNotFound.ts -/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts -/user/username/projects/myproject/src/globalNewFile.ts -/user/username/projects/myproject/src/globalMain.ts -/user/username/projects/myproject/src/newFile.ts -/user/username/projects/myproject/src/main.ts -No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -3909,493 +4081,3 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} - -//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] -{ - "program": { - "fileNames": [ - "../../../../a/lib/lib.d.ts", - "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", - "./src/types.ts", - "./src/filewithref.ts", - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalanotherfilewithsamereferenes.ts", - "./src/globalnewfile.ts", - "./src/globalmain.ts", - "./src/newfile.ts", - "./src/main.ts", - "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts", - "./src/globalFilePresent.ts", - "./src/globalFileNotFound.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalNewFile.ts", - "./src/globalMain.ts", - "./src/newFile.ts", - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ], - "fileNamesList": [ - [ - "./src/filepresent.ts" - ], - [ - "./src/types.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalnewfile.ts" - ], - [ - "./src/filepresent.ts", - "./src/newfile.ts" - ] - ], - "fileInfos": { - "../../../../a/lib/lib.d.ts": { - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true - }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }" - }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" - }, - "./src/types.ts": { - "version": "-12575322908-interface SomeType {}", - "affectsGlobalScope": true - }, - "./src/filewithref.ts": { - "version": "-6085631553-/// " - }, - "./src/globalfilepresent.ts": { - "version": "-5627034801-function globalSomething() { return 10; }", - "affectsGlobalScope": true - }, - "./src/globalfilenotfound.ts": { - "version": "-6310824062-function globalSomething2() { return 20; }", - "affectsGlobalScope": true - }, - "./src/globalanotherfilewithsamereferenes.ts": { - "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", - "affectsGlobalScope": true - }, - "./src/globalnewfile.ts": { - "version": "4916490342-function globalFoo() { return 20; }", - "affectsGlobalScope": true - }, - "./src/globalmain.ts": { - "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", - "affectsGlobalScope": true - }, - "./src/newfile.ts": { - "version": "4428918903-export function foo() { return 20; }" - }, - "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" - } - }, - "options": { - "composite": true, - "configFilePath": "./tsconfig.json", - "extendedDiagnostics": true, - "module": 2, - "outFile": "./outFile.js", - "persistResolutions": true, - "traceResolution": true, - "watch": true - }, - "referencedMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ], - "./src/globalanotherfilewithsamereferenes.ts": [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - "./src/globalmain.ts": [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalnewfile.ts" - ], - "./src/main.ts": [ - "./src/filepresent.ts", - "./src/newfile.ts" - ] - }, - "exportedModulesMap": {}, - "peristedProgram": { - "files": [ - { - "fileName": "../../../../a/lib/lib.d.ts", - "originalFileName": "../../../../a/lib/lib.d.ts", - "path": "../../../../a/lib/lib.d.ts", - "resolvedPath": "../../../../a/lib/lib.d.ts", - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "flags": 0, - "hasNoDefaultLib": true, - "includeReasons": [ - { - "kind": "LibFile" - } - ] - }, - { - "fileName": "./src/filePresent.ts", - "originalFileName": "./src/filePresent.ts", - "path": "./src/filepresent.ts", - "resolvedPath": "./src/filepresent.ts", - "version": "11598859296-export function something() { return 10; }", - "flags": 0, - "includeReasons": [ - { - "kind": "Import", - "file": "./src/anotherfilereusingresolution.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 1 - }, - { - "kind": "Import", - "file": "./src/main.ts", - "index": 1 - }, - { - "kind": "Import", - "file": "./src/main.ts", - "index": 2 - } - ] - }, - { - "fileName": "./src/anotherFileReusingResolution.ts", - "originalFileName": "./src/anotherFileReusingResolution.ts", - "path": "./src/anotherfilereusingresolution.ts", - "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "flags": 0, - "imports": [ - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ - "./filePresent", - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - } - ], - [ - "./fileNotFound", - { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] - } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 0 - } - ] - }, - { - "fileName": "./src/types.ts", - "originalFileName": "./src/types.ts", - "path": "./src/types.ts", - "resolvedPath": "./src/types.ts", - "version": "-12575322908-interface SomeType {}", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/filewithref.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 10 - } - ] - }, - { - "fileName": "./src/fileWithRef.ts", - "originalFileName": "./src/fileWithRef.ts", - "path": "./src/filewithref.ts", - "resolvedPath": "./src/filewithref.ts", - "version": "-6085631553-/// ", - "flags": 0, - "referencedFiles": [ - "./types.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 2 - } - ] - }, - { - "fileName": "./src/globalFilePresent.ts", - "originalFileName": "./src/globalFilePresent.ts", - "path": "./src/globalfilepresent.ts", - "resolvedPath": "./src/globalfilepresent.ts", - "version": "-5627034801-function globalSomething() { return 10; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalanotherfilewithsamereferenes.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 5 - }, - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 1 - } - ] - }, - { - "fileName": "./src/globalFileNotFound.ts", - "originalFileName": "./src/globalFileNotFound.ts", - "path": "./src/globalfilenotfound.ts", - "resolvedPath": "./src/globalfilenotfound.ts", - "version": "-6310824062-function globalSomething2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalanotherfilewithsamereferenes.ts", - "index": 1 - }, - { - "kind": "RootFile", - "index": 4 - }, - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 2 - } - ] - }, - { - "fileName": "./src/globalAnotherFileWithSameReferenes.ts", - "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", - "path": "./src/globalanotherfilewithsamereferenes.ts", - "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", - "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", - "flags": 0, - "referencedFiles": [ - "./globalFilePresent.ts", - "./globalFileNotFound.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 3 - } - ] - }, - { - "fileName": "./src/globalNewFile.ts", - "originalFileName": "./src/globalNewFile.ts", - "path": "./src/globalnewfile.ts", - "resolvedPath": "./src/globalnewfile.ts", - "version": "4916490342-function globalFoo() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 7 - } - ] - }, - { - "fileName": "./src/globalMain.ts", - "originalFileName": "./src/globalMain.ts", - "path": "./src/globalmain.ts", - "resolvedPath": "./src/globalmain.ts", - "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", - "flags": 0, - "referencedFiles": [ - "./globalNewFile.ts", - "./globalFilePresent.ts", - "./globalFileNotFound.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 6 - } - ] - }, - { - "fileName": "./src/newFile.ts", - "originalFileName": "./src/newFile.ts", - "path": "./src/newfile.ts", - "resolvedPath": "./src/newfile.ts", - "version": "4428918903-export function foo() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "Import", - "file": "./src/main.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 9 - } - ] - }, - { - "fileName": "./src/main.ts", - "originalFileName": "./src/main.ts", - "path": "./src/main.ts", - "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", - "flags": 0, - "imports": [ - { - "kind": 10, - "text": "./newFile" - }, - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ - "./newFile", - { - "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" - } - } - ], - [ - "./filePresent", - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - } - ], - [ - "./fileNotFound", - { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] - } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 8 - } - ] - } - ], - "rootFileNames": [ - "./src/anotherFileReusingResolution.ts", - "./src/filePresent.ts", - "./src/fileWithRef.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalFileNotFound.ts", - "./src/globalFilePresent.ts", - "./src/globalMain.ts", - "./src/globalNewFile.ts", - "./src/main.ts", - "./src/newFile.ts", - "./src/types.ts" - ], - "resolutions": [ - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - }, - { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] - }, - { - "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" - } - } - ] - } - }, - "version": "FakeTSVersion", - "size": 7104 -} - diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index 34a54d4ac557e..f196dbb918a62 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -1264,10 +1264,19 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1887,10 +1896,19 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2513,7 +2531,14 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3131,14 +3156,23 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3808,22 +3842,89 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ - -[12:01:48 AM] Found 2 errors. Watching for file changes. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/filePresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/filePresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/anotherFileReusingResolution.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/types.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/types.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileWithRef.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileWithRef.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFilePresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFilePresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalMain.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalMain.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/main.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/main.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalNewFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalNewFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:36 AM] Found 0 errors. Watching for file changes. @@ -3833,8 +3934,8 @@ Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -3847,6 +3948,8 @@ Program files:: Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -3885,7 +3988,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[3,1],[4,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3893,8 +3996,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -3905,23 +4008,20 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/newFile.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], [ "./src/types.ts" @@ -3937,6 +4037,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -3950,14 +4051,14 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-3531856636-export {};\n" - }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10760962856-interface SomeType {\n}\n", @@ -4012,7 +4113,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4028,25 +4130,14 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - [ - "./src/anotherfilereusingresolution.ts", - [ - { - "file": "./src/anotherfilereusingresolution.ts", - "start": 70, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -4055,72 +4146,10 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - [ - "./src/main.ts", - [ - { - "file": "./src/main.ts", - "start": 159, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/main.ts", "./src/newfile.ts", "./src/types.ts" ], - "affectedFilesPendingEmit": [ - [ - "./src/anotherfilereusingresolution.ts", - "Full" - ], - [ - "./src/filenotfound.ts", - "Full" - ], - [ - "./src/filepresent.ts", - "Full" - ], - [ - "./src/filewithref.ts", - "Full" - ], - [ - "./src/globalanotherfilewithsamereferenes.ts", - "Full" - ], - [ - "./src/globalfilenotfound.ts", - "Full" - ], - [ - "./src/globalfilepresent.ts", - "Full" - ], - [ - "./src/globalmain.ts", - "Full" - ], - [ - "./src/globalnewfile.ts", - "Full" - ], - [ - "./src/main.ts", - "Full" - ], - [ - "./src/newfile.ts", - "Full" - ], - [ - "./src/types.ts", - "Full" - ] - ], "peristedProgram": { "files": [ { @@ -4166,6 +4195,30 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", @@ -4196,13 +4249,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4213,20 +4263,6 @@ exitCode:: ExitStatus.undefined } ] }, - { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -4433,13 +4469,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4473,13 +4506,10 @@ exitCode:: ExitStatus.undefined } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -4491,9 +4521,142 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8831 + "size": 8220 } +//// [/user/username/projects/myproject/src/filePresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); + + +//// [/user/username/projects/myproject/src/filePresent.d.ts] +export declare function something(): number; + + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] +export {}; + + +//// [/user/username/projects/myproject/src/types.js] + + +//// [/user/username/projects/myproject/src/types.d.ts] +interface SomeType { +} + + +//// [/user/username/projects/myproject/src/fileWithRef.js] +/// + + +//// [/user/username/projects/myproject/src/fileWithRef.d.ts] +/// + + +//// [/user/username/projects/myproject/src/globalFilePresent.js] +function globalSomething() { return 10; } + + +//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] +declare function globalSomething(): number; + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] +/// +/// +declare function globalAnotherFileWithSameReferenes(): void; + + +//// [/user/username/projects/myproject/src/globalMain.js] +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +//// [/user/username/projects/myproject/src/globalMain.d.ts] +/// +/// +/// +declare function globalMain(): void; + + +//// [/user/username/projects/myproject/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/src/main.d.ts] +export {}; + + +//// [/user/username/projects/myproject/src/globalNewFile.js] +function globalFoo() { return 20; } + + +//// [/user/username/projects/myproject/src/globalNewFile.d.ts] +declare function globalFoo(): number; + + +//// [/user/username/projects/myproject/src/globalFileNotFound.js] +function globalSomething2() { return 20; } + + +//// [/user/username/projects/myproject/src/globalFileNotFound.d.ts] +declare function globalSomething2(): number; + + +//// [/user/username/projects/myproject/src/newFile.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); + + +//// [/user/username/projects/myproject/src/newFile.d.ts] +export declare function foo(): number; + + +//// [/user/username/projects/myproject/src/fileNotFound.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); + + +//// [/user/username/projects/myproject/src/fileNotFound.d.ts] +export declare function something2(): number; + + Change:: Delete file that could not be resolved @@ -4505,15 +4668,16 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound. Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:50 AM] File change detected. Starting incremental compilation... +[12:02:38 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -4524,17 +4688,18 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";something();    ~~~~~~~~~~~~~~~~ -[12:01:57 AM] Found 2 errors. Watching for file changes. +[12:02:45 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.d.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -4546,6 +4711,9 @@ Program files:: /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -4572,6 +4740,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} FsWatches:: @@ -4582,7 +4752,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"affectedFilesPendingEmit":[[3,1],[13,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[12,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,16,19,18,17,21,20,12,22,4],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":22,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},"-14992185226-export declare function something2(): number;\n",{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[3,1],[4,1],[13,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"filesByName":[[24,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4591,6 +4761,7 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.d.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -4600,9 +4771,9 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", - "./src/filenotfound.ts", "./src/filePresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.d.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -4610,11 +4781,8 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/filenotfound.ts", + "./src/fileNotFound.ts" ], "fileNamesList": [ [ @@ -4651,6 +4819,10 @@ exitCode:: ExitStatus.undefined "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", "signature": "-3531856636-export {};\n" }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10760962856-interface SomeType {\n}\n", @@ -4740,6 +4912,7 @@ exitCode:: ExitStatus.undefined } ] ], + "./src/filenotfound.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -4769,48 +4942,12 @@ exitCode:: ExitStatus.undefined "Full" ], [ - "./src/filenotfound.ts", - "Full" - ], - [ - "./src/filepresent.ts", - "Full" - ], - [ - "./src/filewithref.ts", - "Full" - ], - [ - "./src/globalanotherfilewithsamereferenes.ts", - "Full" - ], - [ - "./src/globalfilenotfound.ts", - "Full" - ], - [ - "./src/globalfilepresent.ts", - "Full" - ], - [ - "./src/globalmain.ts", - "Full" - ], - [ - "./src/globalnewfile.ts", + "./src/filenotfound.d.ts", "Full" ], [ "./src/main.ts", "Full" - ], - [ - "./src/newfile.ts", - "Full" - ], - [ - "./src/types.ts", - "Full" ] ], "peristedProgram": { @@ -4844,7 +4981,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -4888,13 +5025,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4905,6 +5039,20 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -4920,7 +5068,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -4937,7 +5085,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -4956,7 +5104,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -4980,7 +5128,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -5003,7 +5151,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -5022,7 +5170,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -5041,7 +5189,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -5060,7 +5208,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -5111,26 +5259,24 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -5142,6 +5288,9 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, "resolutions": [ { "resolvedModule": { @@ -5150,13 +5299,10 @@ exitCode:: ExitStatus.undefined } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -5168,6 +5314,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8496 + "size": 8692 } diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index b6bb3355f2f87..4338a0348f82a 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -1277,10 +1277,19 @@ function globalFoo() { return 20; } Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1902,10 +1911,19 @@ function globalSomething2() { return 20; } Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3227,7 +3245,14 @@ Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3841,14 +3866,23 @@ export function foo() { return 20; } Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -4542,33 +4576,25 @@ export function something2() { return 20; } Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. -src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +exitCode:: ExitStatus.Success Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts -/src/project/src/anotherFileReusingResolution.ts /src/project/src/fileNotFound.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts /src/project/src/globalFilePresent.ts @@ -4586,10 +4612,10 @@ No cached semantic diagnostics in the builder:: declare module "src/filePresent" { export function something(): number; } -declare module "src/anotherFileReusingResolution" { } declare module "src/fileNotFound" { export function something2(): number; } +declare module "src/anotherFileReusingResolution" { } interface SomeType { } declare function globalSomething(): number; @@ -4611,10 +4637,6 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -4622,6 +4644,10 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); /// function globalSomething() { return 10; } function globalSomething2() { return 20; } @@ -4651,7 +4677,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -4665,10 +4691,6 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -4676,6 +4698,10 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); /// function globalSomething() { return 10; } function globalSomething2() { return 20; } @@ -4711,10 +4737,10 @@ text: (0-576) declare module "src/filePresent" { export function something(): number; } -declare module "src/anotherFileReusingResolution" { } declare module "src/fileNotFound" { export function something2(): number; } +declare module "src/anotherFileReusingResolution" { } interface SomeType { } declare function globalSomething(): number; @@ -4735,8 +4761,8 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -4770,8 +4796,8 @@ declare module "src/main" { } "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -4782,23 +4808,20 @@ declare module "src/main" { } "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/newFile.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], [ "./src/types.ts" @@ -4814,6 +4837,7 @@ declare module "src/main" { } ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -4825,12 +4849,12 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" - }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "affectsGlobalScope": true @@ -4876,7 +4900,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4892,6 +4917,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, @@ -4941,6 +4967,30 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", @@ -4971,13 +5021,10 @@ declare module "src/main" { } [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4988,20 +5035,6 @@ declare module "src/main" { } } ] }, - { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -5208,13 +5241,10 @@ declare module "src/main" { } [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -5248,13 +5278,10 @@ declare module "src/main" { } } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -5266,7 +5293,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 8046 + "size": 8029 } @@ -5281,7 +5308,7 @@ exitCode:: ExitStatus.Success //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[]},"version":"FakeTSVersion"} @@ -5342,694 +5369,13 @@ Program files:: No cached semantic diagnostics in the builder:: -//// [/src/project/outFile.d.ts] -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/fileNotFound" { - export function something2(): number; -} -declare module "src/anotherFileReusingResolution" { } -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } - - -//// [/src/project/outFile.js] -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -globalSomething(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - - +//// [/src/project/outFile.d.ts] file written with same contents +//// [/src/project/outFile.js] file written with same contents //// [/src/project/outFile.tsbuildinfo] {"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} -//// [/src/project/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project/outFile.js ----------------------------------------------------------------------- -text: (0-1598) -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -globalSomething(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - -====================================================================== -====================================================================== -File:: /src/project/outFile.d.ts ----------------------------------------------------------------------- -text: (0-576) -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/fileNotFound" { - export function something2(): number; -} -declare module "src/anotherFileReusingResolution" { } -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } - -====================================================================== - -//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/anotherFileReusingResolution.ts", - "./src/types.ts", - "./src/fileWithRef.ts", - "./src/globalFilePresent.ts", - "./src/globalFileNotFound.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalNewFile.ts", - "./src/globalMain.ts", - "./src/newFile.ts", - "./src/main.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 1598, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 576, - "kind": "text" - } - ] - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./src/filepresent.ts", - "./src/filenotfound.ts", - "./src/anotherfilereusingresolution.ts", - "./src/types.ts", - "./src/filewithref.ts", - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalanotherfilewithsamereferenes.ts", - "./src/globalnewfile.ts", - "./src/globalmain.ts", - "./src/newfile.ts", - "./src/main.ts", - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts", - "./src/globalFilePresent.ts", - "./src/globalFileNotFound.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalNewFile.ts", - "./src/globalMain.ts", - "./src/newFile.ts" - ], - "fileNamesList": [ - [ - "./src/filepresent.ts", - "./src/filenotfound.ts" - ], - [ - "./src/types.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalnewfile.ts" - ], - [ - "./src/filepresent.ts", - "./src/filenotfound.ts", - "./src/newfile.ts" - ] - ], - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }" - }, - "./src/filenotfound.ts": { - "version": "-497034637-export function something2() { return 20; }" - }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" - }, - "./src/types.ts": { - "version": "-12575322908-interface SomeType {}", - "affectsGlobalScope": true - }, - "./src/filewithref.ts": { - "version": "-6085631553-/// " - }, - "./src/globalfilepresent.ts": { - "version": "-5627034801-function globalSomething() { return 10; }", - "affectsGlobalScope": true - }, - "./src/globalfilenotfound.ts": { - "version": "-6310824062-function globalSomething2() { return 20; }", - "affectsGlobalScope": true - }, - "./src/globalanotherfilewithsamereferenes.ts": { - "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", - "affectsGlobalScope": true - }, - "./src/globalnewfile.ts": { - "version": "4916490342-function globalFoo() { return 20; }", - "affectsGlobalScope": true - }, - "./src/globalmain.ts": { - "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", - "affectsGlobalScope": true - }, - "./src/newfile.ts": { - "version": "4428918903-export function foo() { return 20; }" - }, - "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" - } - }, - "options": { - "composite": true, - "configFilePath": "./tsconfig.json", - "module": 2, - "outFile": "./outFile.js", - "persistResolutions": true, - "project": "./", - "traceResolution": true - }, - "referencedMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts", - "./src/filenotfound.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ], - "./src/globalanotherfilewithsamereferenes.ts": [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - "./src/globalmain.ts": [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalnewfile.ts" - ], - "./src/main.ts": [ - "./src/filepresent.ts", - "./src/filenotfound.ts", - "./src/newfile.ts" - ] - }, - "exportedModulesMap": {}, - "peristedProgram": { - "files": [ - { - "fileName": "../../lib/lib.d.ts", - "originalFileName": "../../lib/lib.d.ts", - "path": "../../lib/lib.d.ts", - "resolvedPath": "../../lib/lib.d.ts", - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "flags": 0, - "hasNoDefaultLib": true, - "includeReasons": [ - { - "kind": "LibFile" - } - ] - }, - { - "fileName": "./src/filePresent.ts", - "originalFileName": "./src/filePresent.ts", - "path": "./src/filepresent.ts", - "resolvedPath": "./src/filepresent.ts", - "version": "11598859296-export function something() { return 10; }", - "flags": 0, - "includeReasons": [ - { - "kind": "Import", - "file": "./src/anotherfilereusingresolution.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 2 - }, - { - "kind": "Import", - "file": "./src/main.ts", - "index": 1 - }, - { - "kind": "Import", - "file": "./src/main.ts", - "index": 2 - } - ] - }, - { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "Import", - "file": "./src/anotherfilereusingresolution.ts", - "index": 1 - }, - { - "kind": "RootFile", - "index": 1 - }, - { - "kind": "Import", - "file": "./src/main.ts", - "index": 3 - } - ] - }, - { - "fileName": "./src/anotherFileReusingResolution.ts", - "originalFileName": "./src/anotherFileReusingResolution.ts", - "path": "./src/anotherfilereusingresolution.ts", - "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "flags": 0, - "imports": [ - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ - "./filePresent", - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - } - ], - [ - "./fileNotFound", - { - "resolvedModule": { - "resolvedFileName": "./src/fileNotFound.ts", - "extension": ".ts" - } - } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 0 - } - ] - }, - { - "fileName": "./src/types.ts", - "originalFileName": "./src/types.ts", - "path": "./src/types.ts", - "resolvedPath": "./src/types.ts", - "version": "-12575322908-interface SomeType {}", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/filewithref.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 11 - } - ] - }, - { - "fileName": "./src/fileWithRef.ts", - "originalFileName": "./src/fileWithRef.ts", - "path": "./src/filewithref.ts", - "resolvedPath": "./src/filewithref.ts", - "version": "-6085631553-/// ", - "flags": 0, - "referencedFiles": [ - "./types.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 3 - } - ] - }, - { - "fileName": "./src/globalFilePresent.ts", - "originalFileName": "./src/globalFilePresent.ts", - "path": "./src/globalfilepresent.ts", - "resolvedPath": "./src/globalfilepresent.ts", - "version": "-5627034801-function globalSomething() { return 10; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalanotherfilewithsamereferenes.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 6 - }, - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 1 - } - ] - }, - { - "fileName": "./src/globalFileNotFound.ts", - "originalFileName": "./src/globalFileNotFound.ts", - "path": "./src/globalfilenotfound.ts", - "resolvedPath": "./src/globalfilenotfound.ts", - "version": "-6310824062-function globalSomething2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalanotherfilewithsamereferenes.ts", - "index": 1 - }, - { - "kind": "RootFile", - "index": 5 - }, - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 2 - } - ] - }, - { - "fileName": "./src/globalAnotherFileWithSameReferenes.ts", - "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", - "path": "./src/globalanotherfilewithsamereferenes.ts", - "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", - "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", - "flags": 0, - "referencedFiles": [ - "./globalFilePresent.ts", - "./globalFileNotFound.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 4 - } - ] - }, - { - "fileName": "./src/globalNewFile.ts", - "originalFileName": "./src/globalNewFile.ts", - "path": "./src/globalnewfile.ts", - "resolvedPath": "./src/globalnewfile.ts", - "version": "4916490342-function globalFoo() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 8 - } - ] - }, - { - "fileName": "./src/globalMain.ts", - "originalFileName": "./src/globalMain.ts", - "path": "./src/globalmain.ts", - "resolvedPath": "./src/globalmain.ts", - "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", - "flags": 0, - "referencedFiles": [ - "./globalNewFile.ts", - "./globalFilePresent.ts", - "./globalFileNotFound.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 7 - } - ] - }, - { - "fileName": "./src/newFile.ts", - "originalFileName": "./src/newFile.ts", - "path": "./src/newfile.ts", - "resolvedPath": "./src/newfile.ts", - "version": "4428918903-export function foo() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "Import", - "file": "./src/main.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 10 - } - ] - }, - { - "fileName": "./src/main.ts", - "originalFileName": "./src/main.ts", - "path": "./src/main.ts", - "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", - "flags": 0, - "imports": [ - { - "kind": 10, - "text": "./newFile" - }, - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ - "./newFile", - { - "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" - } - } - ], - [ - "./filePresent", - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - } - ], - [ - "./fileNotFound", - { - "resolvedModule": { - "resolvedFileName": "./src/fileNotFound.ts", - "extension": ".ts" - } - } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 9 - } - ] - } - ], - "rootFileNames": [ - "./src/anotherFileReusingResolution.ts", - "./src/fileNotFound.ts", - "./src/filePresent.ts", - "./src/fileWithRef.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalFileNotFound.ts", - "./src/globalFilePresent.ts", - "./src/globalMain.ts", - "./src/globalNewFile.ts", - "./src/main.ts", - "./src/newFile.ts", - "./src/types.ts" - ], - "resolutions": [ - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - }, - { - "resolvedModule": { - "resolvedFileName": "./src/fileNotFound.ts", - "extension": ".ts" - } - }, - { - "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" - } - } - ] - } - }, - "version": "FakeTSVersion", - "size": 8029 -} - +//// [/src/project/outFile.tsbuildinfo.baseline.txt] file written with same contents +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents Change:: Modify main file diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 7f520e79efbb4..837d48d5ed1d4 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -1274,10 +1274,19 @@ function globalFoo() { return 20; } Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1863,10 +1872,19 @@ function globalSomething2() { return 20; } Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3085,7 +3103,14 @@ Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3633,14 +3658,23 @@ export function foo() { return 20; } Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' does not exist. +File '/src/project/src/fileNotFound.tsx' does not exist. +File '/src/project/src/fileNotFound.d.ts' does not exist. +File '/src/project/src/fileNotFound.js' does not exist. +File '/src/project/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -4243,33 +4277,25 @@ export function something2() { return 20; } Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was not resolved. -src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +exitCode:: ExitStatus.Success Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts -/src/project/src/anotherFileReusingResolution.ts /src/project/src/fileNotFound.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts /src/project/src/globalFilePresent.ts @@ -4282,8 +4308,12 @@ Program files:: Semantic diagnostics in builder refreshed for:: /src/project/src/fileNotFound.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/main.ts +//// [/src/project/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/src/project/src/anotherFileReusingResolution.js] file written with same contents //// [/src/project/src/fileNotFound.d.ts] export declare function something2(): number; @@ -4298,8 +4328,10 @@ define(["require", "exports"], function (require, exports) { }); +//// [/src/project/src/main.d.ts] file written with same contents +//// [/src/project/src/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4307,8 +4339,8 @@ define(["require", "exports"], function (require, exports) { "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -4319,23 +4351,20 @@ define(["require", "exports"], function (require, exports) { "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/newFile.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], [ "./src/types.ts" @@ -4351,6 +4380,7 @@ define(["require", "exports"], function (require, exports) { ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -4364,14 +4394,14 @@ define(["require", "exports"], function (require, exports) { "version": "11598859296-export function something() { return 10; }", "signature": "-15062742831-export declare function something(): number;\r\n" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-4882119183-export {};\r\n" - }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", "signature": "-13705775197-export declare function something2(): number;\r\n" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-4882119183-export {};\r\n" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10608150606-interface SomeType {\r\n}\r\n", @@ -4425,7 +4455,8 @@ define(["require", "exports"], function (require, exports) { }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4441,25 +4472,14 @@ define(["require", "exports"], function (require, exports) { ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - [ - "./src/anotherfilereusingresolution.ts", - [ - { - "file": "./src/anotherfilereusingresolution.ts", - "start": 70, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -4468,19 +4488,7 @@ define(["require", "exports"], function (require, exports) { "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - [ - "./src/main.ts", - [ - { - "file": "./src/main.ts", - "start": 159, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/main.ts", "./src/newfile.ts", "./src/types.ts" ], @@ -4529,6 +4537,30 @@ define(["require", "exports"], function (require, exports) { } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", @@ -4559,13 +4591,10 @@ define(["require", "exports"], function (require, exports) { [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4576,20 +4605,6 @@ define(["require", "exports"], function (require, exports) { } ] }, - { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -4796,13 +4811,10 @@ define(["require", "exports"], function (require, exports) { [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4836,13 +4848,10 @@ define(["require", "exports"], function (require, exports) { } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -4854,7 +4863,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 8923 + "size": 8417 } @@ -4869,7 +4878,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5]},"version":"FakeTSVersion"} @@ -4928,550 +4937,12 @@ Program files:: /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: -/src/project/src/anotherFileReusingResolution.ts -/src/project/src/main.ts -//// [/src/project/src/anotherFileReusingResolution.d.ts] file written with same contents -//// [/src/project/src/anotherFileReusingResolution.js] file written with same contents -//// [/src/project/src/main.d.ts] file written with same contents -//// [/src/project/src/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] {"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} -//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./src/filepresent.ts", - "./src/filenotfound.ts", - "./src/anotherfilereusingresolution.ts", - "./src/types.ts", - "./src/filewithref.ts", - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalanotherfilewithsamereferenes.ts", - "./src/globalnewfile.ts", - "./src/globalmain.ts", - "./src/newfile.ts", - "./src/main.ts", - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/anotherFileReusingResolution.ts", - "./src/fileWithRef.ts", - "./src/globalFilePresent.ts", - "./src/globalFileNotFound.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalNewFile.ts", - "./src/globalMain.ts", - "./src/newFile.ts" - ], - "fileNamesList": [ - [ - "./src/filepresent.ts", - "./src/filenotfound.ts" - ], - [ - "./src/types.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalnewfile.ts" - ], - [ - "./src/filepresent.ts", - "./src/filenotfound.ts", - "./src/newfile.ts" - ] - ], - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }", - "signature": "-15062742831-export declare function something(): number;\r\n" - }, - "./src/filenotfound.ts": { - "version": "-497034637-export function something2() { return 20; }", - "signature": "-13705775197-export declare function something2(): number;\r\n" - }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-4882119183-export {};\r\n" - }, - "./src/types.ts": { - "version": "-12575322908-interface SomeType {}", - "signature": "-10608150606-interface SomeType {\r\n}\r\n", - "affectsGlobalScope": true - }, - "./src/filewithref.ts": { - "version": "-6085631553-/// ", - "signature": "-3515861877-/// \r\n" - }, - "./src/globalfilepresent.ts": { - "version": "-5627034801-function globalSomething() { return 10; }", - "signature": "-6032143744-declare function globalSomething(): number;\r\n", - "affectsGlobalScope": true - }, - "./src/globalfilenotfound.ts": { - "version": "-6310824062-function globalSomething2() { return 20; }", - "signature": "-7753781454-declare function globalSomething2(): number;\r\n", - "affectsGlobalScope": true - }, - "./src/globalanotherfilewithsamereferenes.ts": { - "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", - "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", - "affectsGlobalScope": true - }, - "./src/globalnewfile.ts": { - "version": "4916490342-function globalFoo() { return 20; }", - "signature": "4157970454-declare function globalFoo(): number;\r\n", - "affectsGlobalScope": true - }, - "./src/globalmain.ts": { - "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", - "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", - "affectsGlobalScope": true - }, - "./src/newfile.ts": { - "version": "4428918903-export function foo() { return 20; }", - "signature": "-3405156953-export declare function foo(): number;\r\n" - }, - "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", - "signature": "-4882119183-export {};\r\n" - } - }, - "options": { - "composite": true, - "configFilePath": "./tsconfig.json", - "module": 2, - "persistResolutions": true, - "project": "./", - "traceResolution": true - }, - "referencedMap": { - "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts", - "./src/filenotfound.ts" - ], - "./src/filewithref.ts": [ - "./src/types.ts" - ], - "./src/globalanotherfilewithsamereferenes.ts": [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - "./src/globalmain.ts": [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalnewfile.ts" - ], - "./src/main.ts": [ - "./src/filepresent.ts", - "./src/filenotfound.ts", - "./src/newfile.ts" - ] - }, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", - "./src/filenotfound.ts", - "./src/filepresent.ts", - "./src/filewithref.ts", - "./src/globalanotherfilewithsamereferenes.ts", - "./src/globalfilenotfound.ts", - "./src/globalfilepresent.ts", - "./src/globalmain.ts", - "./src/globalnewfile.ts", - "./src/main.ts", - "./src/newfile.ts", - "./src/types.ts" - ], - "peristedProgram": { - "files": [ - { - "fileName": "../../lib/lib.d.ts", - "originalFileName": "../../lib/lib.d.ts", - "path": "../../lib/lib.d.ts", - "resolvedPath": "../../lib/lib.d.ts", - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "flags": 0, - "hasNoDefaultLib": true, - "includeReasons": [ - { - "kind": "LibFile" - } - ] - }, - { - "fileName": "./src/filePresent.ts", - "originalFileName": "./src/filePresent.ts", - "path": "./src/filepresent.ts", - "resolvedPath": "./src/filepresent.ts", - "version": "11598859296-export function something() { return 10; }", - "flags": 0, - "includeReasons": [ - { - "kind": "Import", - "file": "./src/anotherfilereusingresolution.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 2 - }, - { - "kind": "Import", - "file": "./src/main.ts", - "index": 1 - }, - { - "kind": "Import", - "file": "./src/main.ts", - "index": 2 - } - ] - }, - { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "Import", - "file": "./src/anotherfilereusingresolution.ts", - "index": 1 - }, - { - "kind": "RootFile", - "index": 1 - }, - { - "kind": "Import", - "file": "./src/main.ts", - "index": 3 - } - ] - }, - { - "fileName": "./src/anotherFileReusingResolution.ts", - "originalFileName": "./src/anotherFileReusingResolution.ts", - "path": "./src/anotherfilereusingresolution.ts", - "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "flags": 0, - "imports": [ - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ - "./filePresent", - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - } - ], - [ - "./fileNotFound", - { - "resolvedModule": { - "resolvedFileName": "./src/fileNotFound.ts", - "extension": ".ts" - } - } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 0 - } - ] - }, - { - "fileName": "./src/types.ts", - "originalFileName": "./src/types.ts", - "path": "./src/types.ts", - "resolvedPath": "./src/types.ts", - "version": "-12575322908-interface SomeType {}", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/filewithref.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 11 - } - ] - }, - { - "fileName": "./src/fileWithRef.ts", - "originalFileName": "./src/fileWithRef.ts", - "path": "./src/filewithref.ts", - "resolvedPath": "./src/filewithref.ts", - "version": "-6085631553-/// ", - "flags": 0, - "referencedFiles": [ - "./types.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 3 - } - ] - }, - { - "fileName": "./src/globalFilePresent.ts", - "originalFileName": "./src/globalFilePresent.ts", - "path": "./src/globalfilepresent.ts", - "resolvedPath": "./src/globalfilepresent.ts", - "version": "-5627034801-function globalSomething() { return 10; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalanotherfilewithsamereferenes.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 6 - }, - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 1 - } - ] - }, - { - "fileName": "./src/globalFileNotFound.ts", - "originalFileName": "./src/globalFileNotFound.ts", - "path": "./src/globalfilenotfound.ts", - "resolvedPath": "./src/globalfilenotfound.ts", - "version": "-6310824062-function globalSomething2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalanotherfilewithsamereferenes.ts", - "index": 1 - }, - { - "kind": "RootFile", - "index": 5 - }, - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 2 - } - ] - }, - { - "fileName": "./src/globalAnotherFileWithSameReferenes.ts", - "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", - "path": "./src/globalanotherfilewithsamereferenes.ts", - "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", - "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", - "flags": 0, - "referencedFiles": [ - "./globalFilePresent.ts", - "./globalFileNotFound.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 4 - } - ] - }, - { - "fileName": "./src/globalNewFile.ts", - "originalFileName": "./src/globalNewFile.ts", - "path": "./src/globalnewfile.ts", - "resolvedPath": "./src/globalnewfile.ts", - "version": "4916490342-function globalFoo() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "ReferenceFile", - "file": "./src/globalmain.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 8 - } - ] - }, - { - "fileName": "./src/globalMain.ts", - "originalFileName": "./src/globalMain.ts", - "path": "./src/globalmain.ts", - "resolvedPath": "./src/globalmain.ts", - "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", - "flags": 0, - "referencedFiles": [ - "./globalNewFile.ts", - "./globalFilePresent.ts", - "./globalFileNotFound.ts" - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 7 - } - ] - }, - { - "fileName": "./src/newFile.ts", - "originalFileName": "./src/newFile.ts", - "path": "./src/newfile.ts", - "resolvedPath": "./src/newfile.ts", - "version": "4428918903-export function foo() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "Import", - "file": "./src/main.ts", - "index": 0 - }, - { - "kind": "RootFile", - "index": 10 - } - ] - }, - { - "fileName": "./src/main.ts", - "originalFileName": "./src/main.ts", - "path": "./src/main.ts", - "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", - "flags": 0, - "imports": [ - { - "kind": 10, - "text": "./newFile" - }, - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./filePresent" - }, - { - "kind": 10, - "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ - "./newFile", - { - "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" - } - } - ], - [ - "./filePresent", - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - } - ], - [ - "./fileNotFound", - { - "resolvedModule": { - "resolvedFileName": "./src/fileNotFound.ts", - "extension": ".ts" - } - } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 9 - } - ] - } - ], - "rootFileNames": [ - "./src/anotherFileReusingResolution.ts", - "./src/fileNotFound.ts", - "./src/filePresent.ts", - "./src/fileWithRef.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalFileNotFound.ts", - "./src/globalFilePresent.ts", - "./src/globalMain.ts", - "./src/globalNewFile.ts", - "./src/main.ts", - "./src/newFile.ts", - "./src/types.ts" - ], - "resolutions": [ - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - }, - { - "resolvedModule": { - "resolvedFileName": "./src/fileNotFound.ts", - "extension": ".ts" - } - }, - { - "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" - } - } - ] - } - }, - "version": "FakeTSVersion", - "size": 8417 -} - +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Change:: Modify main file diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index 1b08ce671a0b1..f87a7187fd64a 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -114,6 +114,8 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file @@ -121,15 +123,8 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAno FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFilePresent.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots @@ -203,10 +198,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -786,10 +782,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -1324,6 +1321,9 @@ function globalFoo() { return 20; } Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -1416,10 +1416,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -2005,6 +2006,9 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNot FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -2082,10 +2086,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -2749,10 +2754,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -3333,6 +3339,9 @@ export function foo() { return 20; } Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -3350,11 +3359,11 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -3420,10 +3429,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -4083,9 +4093,13 @@ export function something2() { return 20; } Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update [12:02:44 AM] File change detected. Starting incremental compilation... Reloading new file names and options @@ -4094,23 +4108,17 @@ CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ - -[12:02:54 AM] Found 2 errors. Watching for file changes. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +[12:02:54 AM] Found 0 errors. Watching for file changes. @@ -4120,8 +4128,8 @@ Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -4167,10 +4175,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -4182,10 +4190,6 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -4193,6 +4197,10 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); /// function globalSomething() { return 10; } function globalSomething2() { return 20; } @@ -4224,10 +4232,10 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, declare module "src/filePresent" { export function something(): number; } -declare module "src/anotherFileReusingResolution" { } declare module "src/fileNotFound" { export function something2(): number; } +declare module "src/anotherFileReusingResolution" { } interface SomeType { } declare function globalSomething(): number; @@ -4242,7 +4250,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4250,8 +4258,8 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -4285,8 +4293,8 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -4297,23 +4305,20 @@ declare module "src/main" { } "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/newFile.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], [ "./src/types.ts" @@ -4329,6 +4334,7 @@ declare module "src/main" { } ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -4340,12 +4346,12 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" - }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "affectsGlobalScope": true @@ -4393,7 +4399,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4409,6 +4416,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, @@ -4458,6 +4466,30 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", @@ -4488,13 +4520,10 @@ declare module "src/main" { } [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4505,20 +4534,6 @@ declare module "src/main" { } } ] }, - { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -4725,13 +4740,10 @@ declare module "src/main" { } [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4765,13 +4777,10 @@ declare module "src/main" { } } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -4783,7 +4792,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 7898 + "size": 7881 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -4798,10 +4807,6 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -4809,6 +4814,10 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); /// function globalSomething() { return 10; } function globalSomething2() { return 20; } @@ -4843,10 +4852,10 @@ text: (0-558) declare module "src/filePresent" { export function something(): number; } -declare module "src/anotherFileReusingResolution" { } declare module "src/fileNotFound" { export function something2(): number; } +declare module "src/anotherFileReusingResolution" { } interface SomeType { } declare function globalSomething(): number; @@ -4882,11 +4891,19 @@ CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -4952,10 +4969,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js index 8de21d1787801..d2e53934434c2 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -157,6 +157,8 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file @@ -164,15 +166,8 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAno FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFilePresent.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots @@ -246,10 +241,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -819,10 +815,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -1315,6 +1312,9 @@ function globalFoo() { return 20; } Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -1337,9 +1337,13 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNew Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalNewFile.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalNewFile.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -1423,10 +1427,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -1966,6 +1971,9 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNot FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -1982,9 +1990,13 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFil Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFileNotFound.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFileNotFound.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -2060,10 +2072,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -2679,10 +2692,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -3198,6 +3212,9 @@ export function foo() { return 20; } Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -3215,15 +3232,19 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -3293,10 +3314,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -3865,9 +3887,13 @@ export function something2() { return 20; } Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update [12:05:13 AM] File change detected. Starting incremental compilation... Reloading new file names and options @@ -3876,29 +3902,23 @@ CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ - -[12:05:21 AM] Found 2 errors. Watching for file changes. +[12:05:33 AM] Found 0 errors. Watching for file changes. @@ -3908,8 +3928,8 @@ Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -3922,6 +3942,8 @@ Program files:: Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -3956,15 +3978,19 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3972,8 +3998,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -3984,23 +4010,20 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/newFile.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], [ "./src/types.ts" @@ -4016,6 +4039,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -4029,14 +4053,14 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-3531856636-export {};\n" - }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10760962856-interface SomeType {\n}\n", @@ -4092,7 +4116,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4108,25 +4133,14 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - [ - "./src/anotherfilereusingresolution.ts", - [ - { - "file": "./src/anotherfilereusingresolution.ts", - "start": 70, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -4135,19 +4149,7 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - [ - "./src/main.ts", - [ - { - "file": "./src/main.ts", - "start": 159, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/main.ts", "./src/newfile.ts", "./src/types.ts" ], @@ -4196,6 +4198,30 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", @@ -4226,13 +4252,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4243,20 +4266,6 @@ exitCode:: ExitStatus.undefined } ] }, - { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -4463,13 +4472,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4503,13 +4509,10 @@ exitCode:: ExitStatus.undefined } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -4521,7 +4524,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8741 + "size": 8235 } //// [/user/username/projects/myproject/src/fileNotFound.js] @@ -4551,7 +4554,7 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:05:26 AM] File change detected. Starting incremental compilation... +[12:05:38 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -4559,24 +4562,20 @@ CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.d.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ - -[12:05:30 AM] Found 2 errors. Watching for file changes. +[12:05:54 AM] Found 0 errors. Watching for file changes. @@ -4586,8 +4585,8 @@ Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -4600,6 +4599,8 @@ Program files:: Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -4634,15 +4635,20 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},"-14992185226-export declare function something2(): number;\n",{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,16,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n",{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4650,8 +4656,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", "./src/filenotfound.d.ts", + "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -4662,8 +4668,8 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.d.ts", + "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -4672,13 +4678,12 @@ exitCode:: ExitStatus.undefined "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.tsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.d.ts" ], [ "./src/types.ts" @@ -4694,6 +4699,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/filenotfound.d.ts", "./src/newfile.ts" ] ], @@ -4707,14 +4713,14 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-3531856636-export {};\n" - }, "./src/filenotfound.d.ts": { "version": "-14992185226-export declare function something2(): number;\n", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10760962856-interface SomeType {\n}\n", @@ -4770,7 +4776,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4786,25 +4793,14 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.d.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - [ - "./src/anotherfilereusingresolution.ts", - [ - { - "file": "./src/anotherfilereusingresolution.ts", - "start": 70, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/anotherfilereusingresolution.ts", "./src/filenotfound.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -4813,19 +4809,7 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - [ - "./src/main.ts", - [ - { - "file": "./src/main.ts", - "start": 159, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/main.ts", "./src/newfile.ts", "./src/types.ts" ], @@ -4874,6 +4858,30 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", @@ -4904,12 +4912,13 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, "failedLookupLocations": [ "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.tsx" ] } ] @@ -4921,20 +4930,6 @@ exitCode:: ExitStatus.undefined } ] }, - { - "fileName": "./src/fileNotFound.d.ts", - "originalFileName": "./src/fileNotFound.d.ts", - "path": "./src/filenotfound.d.ts", - "resolvedPath": "./src/filenotfound.d.ts", - "version": "-14992185226-export declare function something2(): number;\n", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -5141,12 +5136,13 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, "failedLookupLocations": [ "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.tsx" ] } ] @@ -5181,12 +5177,13 @@ exitCode:: ExitStatus.undefined } }, { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, "failedLookupLocations": [ "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.tsx" ] }, { @@ -5199,6 +5196,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8668 + "size": 8247 } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 79c13ca1bbee0..86a0843ef1c1a 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -1320,11 +1320,20 @@ CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1399,6 +1408,7 @@ FsWatchesRecursive:: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -1987,6 +1997,9 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations [12:01:42 AM] File change detected. Starting incremental compilation... Reloading new file names and options @@ -2065,6 +2078,7 @@ FsWatchesRecursive:: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -2732,6 +2746,7 @@ FsWatchesRecursive:: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -3315,6 +3330,9 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file @@ -3329,11 +3347,11 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -3403,6 +3421,7 @@ FsWatchesRecursive:: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -4065,6 +4084,9 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations [12:02:41 AM] File change detected. Starting incremental compilation... Reloading new file names and options @@ -4072,24 +4094,21 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ - -[12:02:51 AM] Found 2 errors. Watching for file changes. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +[12:02:51 AM] Found 0 errors. Watching for file changes. @@ -4099,8 +4118,8 @@ Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -4161,10 +4180,6 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -4172,6 +4187,10 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); /// function globalSomething() { return 10; } function globalSomething2() { return 20; } @@ -4203,10 +4222,10 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, declare module "src/filePresent" { export function something(): number; } -declare module "src/anotherFileReusingResolution" { } declare module "src/fileNotFound" { export function something2(): number; } +declare module "src/anotherFileReusingResolution" { } interface SomeType { } declare function globalSomething(): number; @@ -4221,7 +4240,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4229,8 +4248,8 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -4264,8 +4283,8 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -4276,23 +4295,20 @@ declare module "src/main" { } "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/newFile.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], [ "./src/types.ts" @@ -4308,6 +4324,7 @@ declare module "src/main" { } ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -4319,12 +4336,12 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" - }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "affectsGlobalScope": true @@ -4372,7 +4389,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4388,6 +4406,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, @@ -4437,6 +4456,30 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", @@ -4467,13 +4510,10 @@ declare module "src/main" { } [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4484,20 +4524,6 @@ declare module "src/main" { } } ] }, - { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -4704,13 +4730,10 @@ declare module "src/main" { } [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4744,13 +4767,10 @@ declare module "src/main" { } } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -4762,7 +4782,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 7898 + "size": 7881 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -4777,10 +4797,6 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -4788,6 +4804,10 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); /// function globalSomething() { return 10; } function globalSomething2() { return 20; } @@ -4822,10 +4842,10 @@ text: (0-558) declare module "src/filePresent" { export function something(): number; } -declare module "src/anotherFileReusingResolution" { } declare module "src/fileNotFound" { export function something2(): number; } +declare module "src/anotherFileReusingResolution" { } interface SomeType { } declare function globalSomething(): number; @@ -4861,11 +4881,19 @@ CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -4935,6 +4963,7 @@ FsWatchesRecursive:: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index cc21df16a36b9..ba803938bfd72 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -842,17 +842,30 @@ CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalNewFile.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalNewFile.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -937,6 +950,7 @@ FsWatchesRecursive:: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -1479,6 +1493,9 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations [12:03:18 AM] File change detected. Starting incremental compilation... Reloading new file names and options @@ -1495,9 +1512,13 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFileNotFound.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFileNotFound.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1574,6 +1595,7 @@ FsWatchesRecursive:: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -2193,6 +2215,7 @@ FsWatchesRecursive:: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -2711,6 +2734,9 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file @@ -2725,18 +2751,22 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2807,6 +2837,7 @@ FsWatchesRecursive:: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -3378,6 +3409,9 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations [12:05:04 AM] File change detected. Starting incremental compilation... Reloading new file names and options @@ -3385,30 +3419,27 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ - -[12:05:12 AM] Found 2 errors. Watching for file changes. +[12:05:24 AM] Found 0 errors. Watching for file changes. @@ -3418,8 +3449,8 @@ Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -3432,6 +3463,8 @@ Program files:: Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -3473,8 +3506,12 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3482,8 +3519,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -3494,23 +3531,20 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/newFile.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], [ "./src/types.ts" @@ -3526,6 +3560,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -3539,14 +3574,14 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-3531856636-export {};\n" - }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10760962856-interface SomeType {\n}\n", @@ -3602,7 +3637,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3618,25 +3654,14 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - [ - "./src/anotherfilereusingresolution.ts", - [ - { - "file": "./src/anotherfilereusingresolution.ts", - "start": 70, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -3645,19 +3670,7 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - [ - "./src/main.ts", - [ - { - "file": "./src/main.ts", - "start": 159, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/main.ts", "./src/newfile.ts", "./src/types.ts" ], @@ -3706,6 +3719,30 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", @@ -3736,13 +3773,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -3753,20 +3787,6 @@ exitCode:: ExitStatus.undefined } ] }, - { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -3973,13 +3993,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4013,13 +4030,10 @@ exitCode:: ExitStatus.undefined } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -4031,7 +4045,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8741 + "size": 8235 } //// [/user/username/projects/myproject/src/fileNotFound.js] @@ -4061,7 +4075,7 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:05:17 AM] File change detected. Starting incremental compilation... +[12:05:29 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -4069,24 +4083,20 @@ CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.d.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ - -[12:05:21 AM] Found 2 errors. Watching for file changes. +[12:05:45 AM] Found 0 errors. Watching for file changes. @@ -4096,8 +4106,8 @@ Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -4110,6 +4120,8 @@ Program files:: Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -4148,11 +4160,16 @@ FsWatchesRecursive:: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},"-14992185226-export declare function something2(): number;\n",{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,16,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n",{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4160,8 +4177,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", "./src/filenotfound.d.ts", + "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -4172,8 +4189,8 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.d.ts", + "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -4182,13 +4199,12 @@ exitCode:: ExitStatus.undefined "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.tsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.d.ts" ], [ "./src/types.ts" @@ -4204,6 +4220,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/filenotfound.d.ts", "./src/newfile.ts" ] ], @@ -4217,14 +4234,14 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-3531856636-export {};\n" - }, "./src/filenotfound.d.ts": { "version": "-14992185226-export declare function something2(): number;\n", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10760962856-interface SomeType {\n}\n", @@ -4280,7 +4297,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4296,25 +4314,14 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.d.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - [ - "./src/anotherfilereusingresolution.ts", - [ - { - "file": "./src/anotherfilereusingresolution.ts", - "start": 70, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/anotherfilereusingresolution.ts", "./src/filenotfound.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -4323,19 +4330,7 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - [ - "./src/main.ts", - [ - { - "file": "./src/main.ts", - "start": 159, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/main.ts", "./src/newfile.ts", "./src/types.ts" ], @@ -4384,6 +4379,30 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", @@ -4414,12 +4433,13 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, "failedLookupLocations": [ "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.tsx" ] } ] @@ -4431,20 +4451,6 @@ exitCode:: ExitStatus.undefined } ] }, - { - "fileName": "./src/fileNotFound.d.ts", - "originalFileName": "./src/fileNotFound.d.ts", - "path": "./src/filenotfound.d.ts", - "resolvedPath": "./src/filenotfound.d.ts", - "version": "-14992185226-export declare function something2(): number;\n", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -4651,12 +4657,13 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, "failedLookupLocations": [ "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.tsx" ] } ] @@ -4691,12 +4698,13 @@ exitCode:: ExitStatus.undefined } }, { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, "failedLookupLocations": [ "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.tsx" ] }, { @@ -4709,6 +4717,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8668 + "size": 8247 } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 23b8af8126430..65d4c37b7950c 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -72,6 +72,8 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file @@ -79,15 +81,8 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAno FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFilePresent.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots @@ -161,10 +156,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -781,10 +777,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -1319,6 +1316,9 @@ function globalFoo() { return 20; } Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -1411,10 +1411,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -2000,6 +2001,9 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNot FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -2077,10 +2081,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -2744,10 +2749,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -3328,6 +3334,9 @@ export function foo() { return 20; } Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -3345,11 +3354,11 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -3415,10 +3424,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -4078,9 +4088,13 @@ export function something2() { return 20; } Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update [12:02:32 AM] File change detected. Starting incremental compilation... Reloading new file names and options @@ -4089,23 +4103,17 @@ CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ - -[12:02:42 AM] Found 2 errors. Watching for file changes. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +[12:02:42 AM] Found 0 errors. Watching for file changes. @@ -4115,8 +4123,8 @@ Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -4162,10 +4170,10 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -4177,10 +4185,6 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -4188,6 +4192,10 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); /// function globalSomething() { return 10; } function globalSomething2() { return 20; } @@ -4219,10 +4227,10 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, declare module "src/filePresent" { export function something(): number; } -declare module "src/anotherFileReusingResolution" { } declare module "src/fileNotFound" { export function something2(): number; } +declare module "src/anotherFileReusingResolution" { } interface SomeType { } declare function globalSomething(): number; @@ -4237,7 +4245,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4245,8 +4253,8 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -4280,8 +4288,8 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -4292,23 +4300,20 @@ declare module "src/main" { } "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/newFile.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], [ "./src/types.ts" @@ -4324,6 +4329,7 @@ declare module "src/main" { } ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -4335,12 +4341,12 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" - }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "affectsGlobalScope": true @@ -4388,7 +4394,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4404,6 +4411,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, @@ -4453,6 +4461,30 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", @@ -4483,13 +4515,10 @@ declare module "src/main" { } [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4500,20 +4529,6 @@ declare module "src/main" { } } ] }, - { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -4720,13 +4735,10 @@ declare module "src/main" { } [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4760,13 +4772,10 @@ declare module "src/main" { } } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -4778,7 +4787,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 7898 + "size": 7881 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -4793,10 +4802,6 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -4804,6 +4809,10 @@ define("src/fileNotFound", ["require", "exports"], function (require, exports) { function something2() { return 20; } exports.something2 = something2; }); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); /// function globalSomething() { return 10; } function globalSomething2() { return 20; } @@ -4838,10 +4847,10 @@ text: (0-558) declare module "src/filePresent" { export function something(): number; } -declare module "src/anotherFileReusingResolution" { } declare module "src/fileNotFound" { export function something2(): number; } +declare module "src/anotherFileReusingResolution" { } interface SomeType { } declare function globalSomething(): number; @@ -4877,11 +4886,19 @@ CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -4947,10 +4964,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index c63eca88142f2..ddb3eee55b042 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -72,6 +72,8 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file @@ -79,19 +81,44 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAno FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFilePresent.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -170,10 +197,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -825,10 +853,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -1321,6 +1350,9 @@ function globalFoo() { return 20; } Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -1343,9 +1375,13 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNew Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalNewFile.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalNewFile.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -1429,10 +1465,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -1972,6 +2009,9 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNot FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -1988,9 +2028,13 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFil Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFileNotFound.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFileNotFound.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -2066,10 +2110,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -2685,10 +2730,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -3204,6 +3250,9 @@ export function foo() { return 20; } Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -3221,15 +3270,19 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -3299,10 +3352,11 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -3871,9 +3925,13 @@ export function something2() { return 20; } Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update [12:05:07 AM] File change detected. Starting incremental compilation... Reloading new file names and options @@ -3882,29 +3940,23 @@ CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ - -[12:05:15 AM] Found 2 errors. Watching for file changes. +[12:05:27 AM] Found 0 errors. Watching for file changes. @@ -3914,8 +3966,8 @@ Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -3928,6 +3980,8 @@ Program files:: Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -3962,15 +4016,19 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[16,24,25,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3978,8 +4036,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", + "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -3990,23 +4048,20 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.ts", + "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/newFile.ts" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], [ "./src/types.ts" @@ -4022,6 +4077,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] ], @@ -4035,14 +4091,14 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-3531856636-export {};\n" - }, "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10760962856-interface SomeType {\n}\n", @@ -4098,7 +4154,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4114,25 +4171,14 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - [ - "./src/anotherfilereusingresolution.ts", - [ - { - "file": "./src/anotherfilereusingresolution.ts", - "start": 70, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/anotherfilereusingresolution.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -4141,19 +4187,7 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - [ - "./src/main.ts", - [ - { - "file": "./src/main.ts", - "start": 159, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/main.ts", "./src/newfile.ts", "./src/types.ts" ], @@ -4202,6 +4236,30 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", @@ -4232,13 +4290,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4249,20 +4304,6 @@ exitCode:: ExitStatus.undefined } ] }, - { - "fileName": "./src/fileNotFound.ts", - "originalFileName": "./src/fileNotFound.ts", - "path": "./src/filenotfound.ts", - "resolvedPath": "./src/filenotfound.ts", - "version": "-497034637-export function something2() { return 20; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -4469,13 +4510,10 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ] ], @@ -4509,13 +4547,10 @@ exitCode:: ExitStatus.undefined } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -4527,7 +4562,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8741 + "size": 8235 } //// [/user/username/projects/myproject/src/fileNotFound.js] @@ -4557,7 +4592,7 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:05:20 AM] File change detected. Starting incremental compilation... +[12:05:32 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -4565,24 +4600,20 @@ CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.d.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound";something(); -   ~~~~~~~~~~~~~~~~ - -[12:05:24 AM] Found 2 errors. Watching for file changes. +[12:05:48 AM] Found 0 errors. Watching for file changes. @@ -4592,8 +4623,8 @@ Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -4606,6 +4637,8 @@ Program files:: Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -4640,15 +4673,20 @@ WatchedFiles:: FsWatches:: FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},"-14992185226-export declare function something2(): number;\n",{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,16,26,27]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n",{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4656,8 +4694,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/anotherfilereusingresolution.ts", "./src/filenotfound.d.ts", + "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -4668,8 +4706,8 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.d.ts", + "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -4678,13 +4716,12 @@ exitCode:: ExitStatus.undefined "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.tsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.d.ts" ], [ "./src/types.ts" @@ -4700,6 +4737,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/filenotfound.d.ts", "./src/newfile.ts" ] ], @@ -4713,14 +4751,14 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, - "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-3531856636-export {};\n" - }, "./src/filenotfound.d.ts": { "version": "-14992185226-export declare function something2(): number;\n", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/anotherfilereusingresolution.ts": { + "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "signature": "-3531856636-export {};\n" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10760962856-interface SomeType {\n}\n", @@ -4776,7 +4814,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/filenotfound.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4792,25 +4831,14 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.d.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - [ - "./src/anotherfilereusingresolution.ts", - [ - { - "file": "./src/anotherfilereusingresolution.ts", - "start": 70, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/anotherfilereusingresolution.ts", "./src/filenotfound.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -4819,19 +4847,7 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - [ - "./src/main.ts", - [ - { - "file": "./src/main.ts", - "start": 159, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/main.ts", "./src/newfile.ts", "./src/types.ts" ], @@ -4880,6 +4896,30 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", @@ -4910,12 +4950,13 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, "failedLookupLocations": [ "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.tsx" ] } ] @@ -4927,20 +4968,6 @@ exitCode:: ExitStatus.undefined } ] }, - { - "fileName": "./src/fileNotFound.d.ts", - "originalFileName": "./src/fileNotFound.d.ts", - "path": "./src/filenotfound.d.ts", - "resolvedPath": "./src/filenotfound.d.ts", - "version": "-14992185226-export declare function something2(): number;\n", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -5147,12 +5174,13 @@ exitCode:: ExitStatus.undefined [ "./fileNotFound", { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, "failedLookupLocations": [ "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.tsx" ] } ] @@ -5187,12 +5215,13 @@ exitCode:: ExitStatus.undefined } }, { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, "failedLookupLocations": [ "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.tsx" ] }, { @@ -5205,6 +5234,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8668 + "size": 8247 } diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js index 6cd5d5205995f..41616883f49ed 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js @@ -46,15 +46,10 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -237,6 +232,9 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNe Scheduled: /user/username/projects/myproject/tsconfig.json Scheduled: *ensureProjectForOpenFiles* Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":1,"offset":1,"endLine":1,"endOffset":1,"insertString":"/// \n"},"seq":2,"type":"request"} response:{"responseRequired":false} request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":6,"offset":1,"endLine":6,"endOffset":1,"insertString":"globalFoo();\n"},"seq":3,"type":"request"} @@ -380,6 +378,9 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFi Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json @@ -591,6 +592,9 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Scheduled: /user/username/projects/myproject/tsconfig.json Scheduled: *ensureProjectForOpenFiles* Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/main.ts","line":1,"offset":1,"endLine":1,"endOffset":1,"insertString":"import { foo } from \"./newFile\";\n"},"seq":5,"type":"request"} response:{"responseRequired":false} Running: /user/username/projects/myproject/tsconfig.json @@ -600,11 +604,11 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 6 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (12) @@ -748,20 +752,29 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotF Scheduled: /user/username/projects/myproject/tsconfig.json Scheduled: *ensureProjectForOpenFiles* Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 7 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (13) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -772,7 +785,6 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts - /user/username/projects/myproject/src/fileNotFound.ts ../../../../a/lib/lib.d.ts @@ -782,6 +794,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -809,8 +825,6 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' - src/fileNotFound.ts - Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' ----------------------------------------------- Running: *ensureProjectForOpenFiles* @@ -852,6 +866,9 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; @@ -897,9 +914,6 @@ import { something2 } from "./fileNotFound"; something(); -{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} -export function something2() { return 20; } - Delete file that could not be resolved FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info @@ -914,11 +928,19 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec Running: /user/username/projects/myproject/tsconfig.json Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 8 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (12) diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js index 6cd5d5205995f..41616883f49ed 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js @@ -46,15 +46,10 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== -======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== -Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -237,6 +232,9 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNe Scheduled: /user/username/projects/myproject/tsconfig.json Scheduled: *ensureProjectForOpenFiles* Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":1,"offset":1,"endLine":1,"endOffset":1,"insertString":"/// \n"},"seq":2,"type":"request"} response:{"responseRequired":false} request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":6,"offset":1,"endLine":6,"endOffset":1,"insertString":"globalFoo();\n"},"seq":3,"type":"request"} @@ -380,6 +378,9 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFi Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json @@ -591,6 +592,9 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Scheduled: /user/username/projects/myproject/tsconfig.json Scheduled: *ensureProjectForOpenFiles* Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/main.ts","line":1,"offset":1,"endLine":1,"endOffset":1,"insertString":"import { foo } from \"./newFile\";\n"},"seq":5,"type":"request"} response:{"responseRequired":false} Running: /user/username/projects/myproject/tsconfig.json @@ -600,11 +604,11 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 6 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (12) @@ -748,20 +752,29 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotF Scheduled: /user/username/projects/myproject/tsconfig.json Scheduled: *ensureProjectForOpenFiles* Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 7 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (13) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -772,7 +785,6 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts - /user/username/projects/myproject/src/fileNotFound.ts ../../../../a/lib/lib.d.ts @@ -782,6 +794,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -809,8 +825,6 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' - src/fileNotFound.ts - Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' ----------------------------------------------- Running: *ensureProjectForOpenFiles* @@ -852,6 +866,9 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; @@ -897,9 +914,6 @@ import { something2 } from "./fileNotFound"; something(); -{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} -export function something2() { return 20; } - Delete file that could not be resolved FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info @@ -914,11 +928,19 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec Running: /user/username/projects/myproject/tsconfig.json Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 8 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (12) diff --git a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js index 66f09add509c0..1c08799aace38 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js +++ b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js @@ -224,10 +224,19 @@ Running: /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (10) @@ -359,6 +368,9 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFi Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json @@ -570,6 +582,9 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Scheduled: /user/username/projects/myproject/tsconfig.json Scheduled: *ensureProjectForOpenFiles* Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/main.ts","line":1,"offset":1,"endLine":1,"endOffset":1,"insertString":"import { foo } from \"./newFile\";\n"},"seq":5,"type":"request"} response:{"responseRequired":false} Running: /user/username/projects/myproject/tsconfig.json @@ -579,11 +594,11 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 6 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (12) @@ -727,20 +742,32 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotF Scheduled: /user/username/projects/myproject/tsconfig.json Scheduled: *ensureProjectForOpenFiles* Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 7 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (13) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -751,7 +778,6 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts - /user/username/projects/myproject/src/fileNotFound.ts ../../../../a/lib/lib.d.ts @@ -761,6 +787,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -788,8 +818,6 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' - src/fileNotFound.ts - Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' ----------------------------------------------- Running: *ensureProjectForOpenFiles* @@ -831,6 +859,9 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; @@ -876,9 +907,6 @@ import { something2 } from "./fileNotFound"; something(); -{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} -export function something2() { return 20; } - Delete file that could not be resolved FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info @@ -893,11 +921,19 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec Running: /user/username/projects/myproject/tsconfig.json Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. +File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. +======== Module name './fileNotFound' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 8 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) Files (12) From 688b635c22321aef1614484e348d1e7ebaba1c7e Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 18 May 2021 12:35:17 -0700 Subject: [PATCH 42/48] Some more tests --- .../unittests/tsbuild/persistResolutions.ts | 33 +- .../tsbuildWatch/persistResolutions.ts | 108 +- .../unittests/tsc/persistResolutions.ts | 42 +- .../unittests/tscWatch/persistResolutions.ts | 108 +- .../unittests/tsserver/persistResolutions.ts | 49 +- ...nd-uses-it-for-new-program-with-outFile.js | 5565 +++++++++++++++-- ...-resolution-and-uses-it-for-new-program.js | 5302 ++++++++++++++-- ...er-resolutions-are-cleaned-with-outFile.js | 5300 +++++++++++++++- ...can-build-after-resolutions-are-cleaned.js | 4634 ++++++++++++-- ...-saved-in-tsbuildinfo-file-with-outFile.js | 4916 ++++++++++++++- ...ons-have-been-saved-in-tsbuildinfo-file.js | 4210 +++++++++++-- ...nd-uses-it-for-new-program-with-outFile.js | 5298 +++++++++++++++- ...-resolution-and-uses-it-for-new-program.js | 4633 ++++++++++++-- ...nd-uses-it-for-new-program-with-outFile.js | 5079 ++++++++++++++- ...-resolution-and-uses-it-for-new-program.js | 5101 ++++++++++++++- ...er-resolutions-are-cleaned-with-outFile.js | 4882 ++++++++++++++- ...can-build-after-resolutions-are-cleaned.js | 4875 ++++++++++++++- ...-saved-in-tsbuildinfo-file-with-outFile.js | 4864 +++++++++++++- ...ons-have-been-saved-in-tsbuildinfo-file.js | 4468 ++++++++++++- ...nd-uses-it-for-new-program-with-outFile.js | 4886 ++++++++++++++- ...-resolution-and-uses-it-for-new-program.js | 4876 ++++++++++++++- ...r-program-if-tsbuildinfo-is-not-present.js | 624 +- ...is-present-but-program-is-not-persisted.js | 624 +- .../uses-saved-resolution-for-program.js | 620 +- 24 files changed, 75980 insertions(+), 5117 deletions(-) diff --git a/src/testRunner/unittests/tsbuild/persistResolutions.ts b/src/testRunner/unittests/tsbuild/persistResolutions.ts index cd10ada537601..2c929961ded8f 100644 --- a/src/testRunner/unittests/tsbuild/persistResolutions.ts +++ b/src/testRunner/unittests/tsbuild/persistResolutions.ts @@ -5,10 +5,14 @@ namespace ts { "/src/project/src/main.ts": Utils.dedent` import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; - import { something2 } from "./fileNotFound";`, + import { something2 } from "./fileNotFound"; + import { externalThing1 } from "externalThing"; + import { externalThing2 } from "externalThingNotPresent";`, "/src/project/src/anotherFileReusingResolution.ts": Utils.dedent` import { something } from "./filePresent"; - import { something2 } from "./fileNotFound";`, + import { something2 } from "./fileNotFound"; + import { externalThing1 } from "externalThing"; + import { externalThing2 } from "externalThingNotPresent";`, "/src/project/src/filePresent.ts": `export function something() { return 10; }`, "/src/project/src/fileWithRef.ts": `/// `, "/src/project/src/types.ts": `interface SomeType {}`, @@ -23,6 +27,7 @@ namespace ts { function globalAnotherFileWithSameReferenes() { } `, "/src/project/src/globalFilePresent.ts": `function globalSomething() { return 10; }`, + "/src/project/src/externalThing.d.ts": `export function externalThing1(): number;`, "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { module: "amd", @@ -119,7 +124,17 @@ namespace ts { { subScenario: "Delete file that could not be resolved", buildKind: BuildKind.IncrementalDtsChange, - modifyFs: sys => sys.unlinkSync(`/src/project/src/fileNotFound.ts`), + modifyFs: fs => fs.unlinkSync(`/src/project/src/fileNotFound.ts`), + }, + { + subScenario: "Create external module file that could not be resolved", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.writeFileSync(`/src/project/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), + }, + { + subScenario: "Write .ts file that takes preference over resolved .d.ts file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.writeFileSync(`/src/project/src/externalThing.ts`, "export function externalThing1() { return 10; }"), }, ], baselinePrograms: true, @@ -209,7 +224,17 @@ namespace ts { { subScenario: "Delete file that could not be resolved", buildKind: BuildKind.IncrementalDtsChange, - modifyFs: sys => sys.unlinkSync(`/src/project/src/fileNotFound.ts`), + modifyFs: fs => fs.unlinkSync(`/src/project/src/fileNotFound.ts`), + }, + { + subScenario: "Create external module file that could not be resolved", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.writeFileSync(`/src/project/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), + }, + { + subScenario: "Write .ts file that takes preference over resolved .d.ts file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.writeFileSync(`/src/project/src/externalThing.ts`, "export function externalThing1() { return 10; }"), }, ], baselinePrograms: true, diff --git a/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts b/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts index bf77a0a3dab6e..bcaeb51033a1c 100644 --- a/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts +++ b/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts @@ -7,13 +7,17 @@ namespace ts.tscWatch { content: Utils.dedent` import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; - import { something2 } from "./fileNotFound";`, + import { something2 } from "./fileNotFound"; + import { externalThing1 } from "externalThing"; + import { externalThing2 } from "externalThingNotPresent";`, }, { path: `${projectRoot}/src/anotherFileReusingResolution.ts`, content: Utils.dedent` import { something } from "./filePresent"; - import { something2 } from "./fileNotFound";`, + import { something2 } from "./fileNotFound"; + import { externalThing1 } from "externalThing"; + import { externalThing2 } from "externalThingNotPresent";`, }, { path: `${projectRoot}/src/filePresent.ts`, @@ -47,6 +51,10 @@ namespace ts.tscWatch { path: `${projectRoot}/src/globalFilePresent.ts`, content: `function globalSomething() { return 10; }`, }, + { + path: `${projectRoot}/src/externalThing.d.ts`, + content: `export function externalThing1(): number;`, + }, { path: `${projectRoot}/tsconfig.json`, content: JSON.stringify({ @@ -142,6 +150,22 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Actual update } }, + { + caption: "Create external module file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, + { + caption: "Write .ts file that takes preference over resolved .d.ts file", + change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); verifyTscWatch({ @@ -199,6 +223,22 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Actual update } }, + { + caption: "Create external module file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, + { + caption: "Write .ts file that takes preference over resolved .d.ts file", + change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); verifyTscWatch({ @@ -256,6 +296,22 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Actual update } }, + { + caption: "Create external module file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, + { + caption: "Write .ts file that takes preference over resolved .d.ts file", + change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); @@ -314,6 +370,22 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Actual update } }, + { + caption: "Create external module file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, + { + caption: "Write .ts file that takes preference over resolved .d.ts file", + change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); verifyTscWatch({ @@ -371,6 +443,22 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Actual update } }, + { + caption: "Create external module file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, + { + caption: "Write .ts file that takes preference over resolved .d.ts file", + change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); verifyTscWatch({ @@ -428,6 +516,22 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Actual update } }, + { + caption: "Create external module file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, + { + caption: "Write .ts file that takes preference over resolved .d.ts file", + change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); }); diff --git a/src/testRunner/unittests/tsc/persistResolutions.ts b/src/testRunner/unittests/tsc/persistResolutions.ts index c285d13b5e797..3e6c2c67682f4 100644 --- a/src/testRunner/unittests/tsc/persistResolutions.ts +++ b/src/testRunner/unittests/tsc/persistResolutions.ts @@ -5,10 +5,14 @@ namespace ts { "/src/project/src/main.ts": Utils.dedent` import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; - import { something2 } from "./fileNotFound";`, + import { something2 } from "./fileNotFound"; + import { externalThing1 } from "externalThing"; + import { externalThing2 } from "externalThingNotPresent";`, "/src/project/src/anotherFileReusingResolution.ts": Utils.dedent` import { something } from "./filePresent"; - import { something2 } from "./fileNotFound";`, + import { something2 } from "./fileNotFound"; + import { externalThing1 } from "externalThing"; + import { externalThing2 } from "externalThingNotPresent";`, "/src/project/src/filePresent.ts": `export function something() { return 10; }`, "/src/project/src/fileWithRef.ts": `/// `, "/src/project/src/types.ts": `interface SomeType {}`, @@ -23,6 +27,7 @@ namespace ts { function globalAnotherFileWithSameReferenes() { } `, "/src/project/src/globalFilePresent.ts": `function globalSomething() { return 10; }`, + "/src/project/src/externalThing.d.ts": `export function externalThing1(): number;`, "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { module: "amd", @@ -119,7 +124,21 @@ namespace ts { { subScenario: "Delete file that could not be resolved", buildKind: BuildKind.IncrementalDtsChange, - modifyFs: sys => sys.unlinkSync(`/src/project/src/fileNotFound.ts`), + modifyFs: fs => fs.unlinkSync(`/src/project/src/fileNotFound.ts`), + }, + { + subScenario: "Create external module file that could not be resolved", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.writeFileSync(`/src/project/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), + }, + { + subScenario: "Write .ts file that takes preference over resolved .d.ts file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.writeFileSync(`/src/project/src/externalThing.ts`, "export function externalThing1() { return 10; }"), + cleanBuildDiscrepancies: () => new Map([ + // In the clean build since .d.ts is not picked up, it can be overwritten with d.ts output from .ts file + ["/src/project/src/externalthing.d.ts", CleanBuildDescrepancy.CleanFileTextDifferent], + ]) }, ], baselinePrograms: true, @@ -209,7 +228,22 @@ namespace ts { { subScenario: "Delete file that could not be resolved", buildKind: BuildKind.IncrementalDtsChange, - modifyFs: sys => sys.unlinkSync(`/src/project/src/fileNotFound.ts`), + modifyFs: fs => fs.unlinkSync(`/src/project/src/fileNotFound.ts`), + }, + { + subScenario: "Create external module file that could not be resolved", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.writeFileSync(`/src/project/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), + }, + { + subScenario: "Write .ts file that takes preference over resolved .d.ts file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.writeFileSync(`/src/project/src/externalThing.ts`, "export function externalThing1() { return 10; }"), + cleanBuildDiscrepancies: () => new Map([ + // In the clean build since .d.ts is not picked up, the output of externalThing.ts would be before the main file because of import + ["/src/project/outfile.js", CleanBuildDescrepancy.CleanFileTextDifferent], + ["/src/project/outfile.d.ts", CleanBuildDescrepancy.CleanFileTextDifferent], + ]) }, ], baselinePrograms: true, diff --git a/src/testRunner/unittests/tscWatch/persistResolutions.ts b/src/testRunner/unittests/tscWatch/persistResolutions.ts index 01d7338e2d7fa..e5b117b90ee05 100644 --- a/src/testRunner/unittests/tscWatch/persistResolutions.ts +++ b/src/testRunner/unittests/tscWatch/persistResolutions.ts @@ -7,13 +7,17 @@ namespace ts.tscWatch { content: Utils.dedent` import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; - import { something2 } from "./fileNotFound";`, + import { something2 } from "./fileNotFound"; + import { externalThing1 } from "externalThing"; + import { externalThing2 } from "externalThingNotPresent";`, }, { path: `${projectRoot}/src/anotherFileReusingResolution.ts`, content: Utils.dedent` import { something } from "./filePresent"; - import { something2 } from "./fileNotFound";`, + import { something2 } from "./fileNotFound"; + import { externalThing1 } from "externalThing"; + import { externalThing2 } from "externalThingNotPresent";`, }, { path: `${projectRoot}/src/filePresent.ts`, @@ -47,6 +51,10 @@ namespace ts.tscWatch { path: `${projectRoot}/src/globalFilePresent.ts`, content: `function globalSomething() { return 10; }`, }, + { + path: `${projectRoot}/src/externalThing.d.ts`, + content: `export function externalThing1(): number;`, + }, { path: `${projectRoot}/tsconfig.json`, content: JSON.stringify({ @@ -142,6 +150,22 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Actual update } }, + { + caption: "Create external module file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, + { + caption: "Write .ts file that takes preference over resolved .d.ts file", + change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); verifyTscWatch({ @@ -199,6 +223,22 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Actual update } }, + { + caption: "Create external module file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, + { + caption: "Write .ts file that takes preference over resolved .d.ts file", + change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); verifyTscWatch({ @@ -256,6 +296,22 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Actual update } }, + { + caption: "Create external module file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, + { + caption: "Write .ts file that takes preference over resolved .d.ts file", + change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); @@ -314,6 +370,22 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Actual update } }, + { + caption: "Create external module file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, + { + caption: "Write .ts file that takes preference over resolved .d.ts file", + change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); verifyTscWatch({ @@ -371,6 +443,22 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Actual update } }, + { + caption: "Create external module file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, + { + caption: "Write .ts file that takes preference over resolved .d.ts file", + change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); verifyTscWatch({ @@ -428,6 +516,22 @@ namespace ts.tscWatch { sys.runQueuedTimeoutCallbacks(); // Actual update } }, + { + caption: "Create external module file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, + { + caption: "Write .ts file that takes preference over resolved .d.ts file", + change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }, ] }); }); diff --git a/src/testRunner/unittests/tsserver/persistResolutions.ts b/src/testRunner/unittests/tsserver/persistResolutions.ts index 3beda18e9f281..d3b67b559a105 100644 --- a/src/testRunner/unittests/tsserver/persistResolutions.ts +++ b/src/testRunner/unittests/tsserver/persistResolutions.ts @@ -7,13 +7,16 @@ namespace ts.projectSystem { import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; - `, + import { externalThing1 } from "externalThing"; + import { externalThing2 } from "externalThingNotPresent";`, }; const anotherFileReusingResolution: File = { path: `${tscWatch.projectRoot}/src/anotherFileReusingResolution.ts`, content: Utils.dedent` import { something } from "./filePresent"; - import { something2 } from "./fileNotFound";`, + import { something2 } from "./fileNotFound"; + import { externalThing1 } from "externalThing"; + import { externalThing2 } from "externalThingNotPresent";`, }; const filePresent: File = { path: `${tscWatch.projectRoot}/src/filePresent.ts`, @@ -47,6 +50,10 @@ namespace ts.projectSystem { path: `${tscWatch.projectRoot}/src/globalFilePresent.ts`, content: `function globalSomething() { return 10; }`, }; + const externalThing: File = { + path: `${tscWatch.projectRoot}/src/externalThing.d.ts`, + content: `export function externalThing1(): number;`, + }; const config: File = { path: `${tscWatch.projectRoot}/tsconfig.json`, content: JSON.stringify({ @@ -61,7 +68,7 @@ namespace ts.projectSystem { }), }; const host = createServerHost( - [main, anotherFileReusingResolution, filePresent, fileWithRef, types, globalMain, globalAnotherFileWithSameReferenes, globalFilePresent, config, libFile], + [main, anotherFileReusingResolution, filePresent, fileWithRef, types, globalMain, globalAnotherFileWithSameReferenes, globalFilePresent, externalThing, config, libFile], { currentDirectory: tscWatch.projectRoot, useCaseSensitiveFileNames: true } ); return { host, main, globalMain, config }; @@ -199,6 +206,18 @@ namespace ts.projectSystem { host.runQueuedTimeoutCallbacks(); // Actual Update appendProjectFileText(project, session); + session.logger.logs.push("Create external module file that could not be resolved"); + host.writeFile(`${tscWatch.projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"); + host.runQueuedTimeoutCallbacks(); // Invalidate resolutions + host.runQueuedTimeoutCallbacks(); // Actual Update + appendProjectFileText(project, session); + + session.logger.logs.push("Write .ts file that takes preference over resolved .d.ts file"); + host.writeFile(`${tscWatch.projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"); + host.runQueuedTimeoutCallbacks(); // Invalidate resolutions + host.runQueuedTimeoutCallbacks(); // Actual Update + appendProjectFileText(project, session); + baselineTsserverLogs("persistResolutions", "uses saved resolution for program", session); }); @@ -303,6 +322,18 @@ namespace ts.projectSystem { host.runQueuedTimeoutCallbacks(); // Actual Update appendProjectFileText(project, session); + session.logger.logs.push("Create external module file that could not be resolved"); + host.writeFile(`${tscWatch.projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"); + host.runQueuedTimeoutCallbacks(); // Invalidate resolutions + host.runQueuedTimeoutCallbacks(); // Actual Update + appendProjectFileText(project, session); + + session.logger.logs.push("Write .ts file that takes preference over resolved .d.ts file"); + host.writeFile(`${tscWatch.projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"); + host.runQueuedTimeoutCallbacks(); // Invalidate resolutions + host.runQueuedTimeoutCallbacks(); // Actual Update + appendProjectFileText(project, session); + baselineTsserverLogs("persistResolutions", "creates new resolutions for program if tsbuildinfo is not present", session); }); @@ -407,6 +438,18 @@ namespace ts.projectSystem { host.runQueuedTimeoutCallbacks(); // Actual Update appendProjectFileText(project, session); + session.logger.logs.push("Create external module file that could not be resolved"); + host.writeFile(`${tscWatch.projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"); + host.runQueuedTimeoutCallbacks(); // Invalidate resolutions + host.runQueuedTimeoutCallbacks(); // Actual Update + appendProjectFileText(project, session); + + session.logger.logs.push("Write .ts file that takes preference over resolved .d.ts file"); + host.writeFile(`${tscWatch.projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"); + host.runQueuedTimeoutCallbacks(); // Invalidate resolutions + host.runQueuedTimeoutCallbacks(); // Actual Update + appendProjectFileText(project, session); + baselineTsserverLogs("persistResolutions", "creates new resolutions for program if tsbuildinfo is present but program is not persisted", session); }); }); diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 64ee602020fb8..9c65af2d2d91f 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -16,7 +16,12 @@ declare const console: { log(msg: any): void; }; //// [/src/project/src/anotherFileReusingResolution.ts] import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +//// [/src/project/src/externalThing.d.ts] +export function externalThing1(): number; //// [/src/project/src/filePresent.ts] export function something() { return 10; } @@ -42,7 +47,9 @@ function globalMain() { } //// [/src/project/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/src/project/src/types.ts] interface SomeType {} @@ -66,17 +73,61 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThing.ts' does not exist. +File '/src/project/src/externalThing.tsx' does not exist. +File '/src/project/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== ======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== Resolution for module './filePresent' was found in cache from location '/src/project/src'. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThing' was found in cache from location '/src/project/src'. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. 2 /// @@ -92,16 +143,22 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 4 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 6 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -114,7 +171,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -122,6 +179,7 @@ No cached semantic diagnostics in the builder:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -131,6 +189,7 @@ No cached semantic diagnostics in the builder:: "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -140,11 +199,46 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -162,8 +256,11 @@ No cached semantic diagnostics in the builder:: "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -185,7 +282,7 @@ No cached semantic diagnostics in the builder:: "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -198,7 +295,8 @@ No cached semantic diagnostics in the builder:: }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -212,7 +310,8 @@ No cached semantic diagnostics in the builder:: "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -247,7 +346,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -261,12 +360,36 @@ No cached semantic diagnostics in the builder:: } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -276,6 +399,14 @@ No cached semantic diagnostics in the builder:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -299,6 +430,58 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -323,7 +506,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -340,7 +523,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -359,7 +542,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -382,7 +565,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -400,7 +583,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -409,7 +592,7 @@ No cached semantic diagnostics in the builder:: "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -423,6 +606,14 @@ No cached semantic diagnostics in the builder:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -446,18 +637,71 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -510,12 +754,58 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6085 + "size": 8857 } @@ -531,6 +821,11 @@ Output:: 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. 2 /// @@ -546,16 +841,22 @@ Output:: 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 4 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 6 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -586,6 +887,11 @@ Output:: 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. 2 /// @@ -601,16 +907,22 @@ Output:: 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -Found 4 errors. + +Found 6 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -623,7 +935,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -631,6 +943,7 @@ No cached semantic diagnostics in the builder:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -640,6 +953,7 @@ No cached semantic diagnostics in the builder:: "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -649,11 +963,46 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -671,8 +1020,11 @@ No cached semantic diagnostics in the builder:: "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -694,7 +1046,7 @@ No cached semantic diagnostics in the builder:: "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -707,7 +1059,8 @@ No cached semantic diagnostics in the builder:: }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -721,7 +1074,8 @@ No cached semantic diagnostics in the builder:: "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -756,7 +1110,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -770,12 +1124,36 @@ No cached semantic diagnostics in the builder:: } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -785,6 +1163,14 @@ No cached semantic diagnostics in the builder:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -808,6 +1194,58 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -832,7 +1270,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -849,7 +1287,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -868,7 +1306,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -891,7 +1329,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -909,7 +1347,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -918,7 +1356,7 @@ No cached semantic diagnostics in the builder:: "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -932,6 +1370,14 @@ No cached semantic diagnostics in the builder:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -955,18 +1401,71 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1019,12 +1518,58 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6119 + "size": 8891 } @@ -1046,6 +1591,7 @@ function globalFoo() { return 20; } Output:: /lib/tsc --b src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. @@ -1054,16 +1600,52 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. 2 /// @@ -1079,16 +1661,22 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 4 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 6 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -1102,7 +1690,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1110,6 +1698,7 @@ No cached semantic diagnostics in the builder:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1120,6 +1709,7 @@ No cached semantic diagnostics in the builder:: "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1130,11 +1720,46 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1157,8 +1782,11 @@ No cached semantic diagnostics in the builder:: "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -1184,7 +1812,7 @@ No cached semantic diagnostics in the builder:: "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -1197,7 +1825,8 @@ No cached semantic diagnostics in the builder:: }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1212,7 +1841,8 @@ No cached semantic diagnostics in the builder:: "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1247,7 +1877,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1261,12 +1891,36 @@ No cached semantic diagnostics in the builder:: } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1276,6 +1930,14 @@ No cached semantic diagnostics in the builder:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1299,6 +1961,58 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1323,7 +2037,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -1340,7 +2054,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1359,7 +2073,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1382,7 +2096,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1401,7 +2115,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -1420,7 +2134,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1429,7 +2143,7 @@ No cached semantic diagnostics in the builder:: "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1443,6 +2157,14 @@ No cached semantic diagnostics in the builder:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1466,18 +2188,71 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1531,12 +2306,58 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6634 + "size": 9404 } @@ -1551,6 +2372,7 @@ function globalSomething2() { return 20; } Output:: /lib/tsc --b src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. @@ -1559,31 +2381,73 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -1598,7 +2462,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1606,6 +2470,7 @@ No cached semantic diagnostics in the builder:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1616,6 +2481,7 @@ No cached semantic diagnostics in the builder:: "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1627,11 +2493,46 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1654,8 +2555,11 @@ No cached semantic diagnostics in the builder:: "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -1685,7 +2589,7 @@ No cached semantic diagnostics in the builder:: "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -1698,7 +2602,8 @@ No cached semantic diagnostics in the builder:: }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1713,7 +2618,8 @@ No cached semantic diagnostics in the builder:: "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1748,7 +2654,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1762,12 +2668,36 @@ No cached semantic diagnostics in the builder:: } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1777,6 +2707,14 @@ No cached semantic diagnostics in the builder:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1800,6 +2738,58 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1824,7 +2814,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -1841,7 +2831,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1860,7 +2850,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -1884,7 +2874,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1907,7 +2897,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1926,7 +2916,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -1945,7 +2935,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -1954,7 +2944,7 @@ No cached semantic diagnostics in the builder:: "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1968,6 +2958,14 @@ No cached semantic diagnostics in the builder:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1991,18 +2989,71 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2028,12 +3079,58 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6680 + "size": 9448 } @@ -2048,7 +3145,7 @@ exitCode:: ExitStatus.Success //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} @@ -2081,32 +3178,82 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThing.ts' does not exist. +File '/src/project/src/externalThing.tsx' does not exist. +File '/src/project/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== ======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== Resolution for module './filePresent' was found in cache from location '/src/project/src'. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThing' was found in cache from location '/src/project/src'. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -2121,7 +3268,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents @@ -2144,21 +3291,32 @@ Output:: 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -2173,7 +3331,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2181,6 +3339,7 @@ No cached semantic diagnostics in the builder:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2191,6 +3350,7 @@ No cached semantic diagnostics in the builder:: "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2202,11 +3362,46 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2229,8 +3424,11 @@ No cached semantic diagnostics in the builder:: "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -2260,7 +3458,7 @@ No cached semantic diagnostics in the builder:: "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -2273,7 +3471,8 @@ No cached semantic diagnostics in the builder:: }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2288,7 +3487,8 @@ No cached semantic diagnostics in the builder:: "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2323,7 +3523,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2337,12 +3537,36 @@ No cached semantic diagnostics in the builder:: } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2352,6 +3576,14 @@ No cached semantic diagnostics in the builder:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2375,6 +3607,58 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2399,7 +3683,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2416,7 +3700,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2435,7 +3719,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2459,7 +3743,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2482,7 +3766,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2501,7 +3785,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2520,7 +3804,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -2529,7 +3813,7 @@ No cached semantic diagnostics in the builder:: "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2543,6 +3827,14 @@ No cached semantic diagnostics in the builder:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2566,18 +3858,71 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2603,12 +3948,58 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6716 + "size": 9484 } @@ -2618,7 +4009,9 @@ Input:: //// [/src/project/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); @@ -2626,6 +4019,7 @@ Output:: /lib/tsc --b src/project Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. @@ -2634,26 +4028,64 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -2668,7 +4100,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2676,6 +4108,7 @@ No cached semantic diagnostics in the builder:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2686,6 +4119,7 @@ No cached semantic diagnostics in the builder:: "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2697,11 +4131,46 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2724,8 +4193,11 @@ No cached semantic diagnostics in the builder:: "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -2755,7 +4227,7 @@ No cached semantic diagnostics in the builder:: "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -2768,7 +4240,8 @@ No cached semantic diagnostics in the builder:: }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2783,7 +4256,8 @@ No cached semantic diagnostics in the builder:: "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2818,7 +4292,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2833,25 +4307,57 @@ No cached semantic diagnostics in the builder:: ] }, { - "fileName": "./src/anotherFileReusingResolution.ts", - "originalFileName": "./src/anotherFileReusingResolution.ts", - "path": "./src/anotherfilereusingresolution.ts", - "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", "flags": 0, - "imports": [ + "includeReasons": [ { - "kind": 10, - "text": "./filePresent" + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 }, { - "kind": 10, - "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ - "./filePresent", + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", { "resolvedModule": { "resolvedFileName": "./src/filePresent.ts", @@ -2870,6 +4376,58 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2894,7 +4452,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2911,7 +4469,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2930,7 +4488,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2954,7 +4512,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2977,7 +4535,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2996,7 +4554,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3015,7 +4573,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3024,7 +4582,7 @@ No cached semantic diagnostics in the builder:: "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3038,6 +4596,14 @@ No cached semantic diagnostics in the builder:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3061,18 +4627,71 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3098,12 +4717,58 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6742 + "size": 9508 } @@ -3113,7 +4778,9 @@ Input:: //// [/src/project/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); //// [/src/project/src/newFile.ts] export function foo() { return 20; } @@ -3123,6 +4790,7 @@ export function foo() { return 20; } Output:: /lib/tsc --b src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. @@ -3131,8 +4799,36 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. @@ -3140,26 +4836,40 @@ File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -3175,7 +4885,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -3183,6 +4893,7 @@ No cached semantic diagnostics in the builder:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -3194,6 +4905,7 @@ No cached semantic diagnostics in the builder:: "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -3206,11 +4918,46 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -3226,6 +4973,7 @@ No cached semantic diagnostics in the builder:: ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -3237,8 +4985,11 @@ No cached semantic diagnostics in the builder:: "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -3271,7 +5022,7 @@ No cached semantic diagnostics in the builder:: "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -3284,7 +5035,8 @@ No cached semantic diagnostics in the builder:: }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3300,6 +5052,7 @@ No cached semantic diagnostics in the builder:: ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -3335,7 +5088,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -3349,12 +5102,36 @@ No cached semantic diagnostics in the builder:: } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3364,6 +5141,14 @@ No cached semantic diagnostics in the builder:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3387,6 +5172,58 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3411,7 +5248,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -3428,7 +5265,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3447,7 +5284,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3471,7 +5308,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3494,7 +5331,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3513,7 +5350,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3532,7 +5369,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3551,7 +5388,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3560,7 +5397,7 @@ No cached semantic diagnostics in the builder:: "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3578,6 +5415,14 @@ No cached semantic diagnostics in the builder:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3610,18 +5455,71 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3649,6 +5547,52 @@ No cached semantic diagnostics in the builder:: "./src/fileNotFound.jsx" ] }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -3659,7 +5603,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 7252 + "size": 10018 } @@ -3674,24 +5618,70 @@ export function something2() { return 20; } Output:: /lib/tsc --b src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== -exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/fileNotFound.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -3706,195 +5696,17 @@ Program files:: No cached semantic diagnostics in the builder:: -//// [/src/project/outFile.d.ts] -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/fileNotFound" { - export function something2(): number; -} -declare module "src/anotherFileReusingResolution" { } -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } - - -//// [/src/project/outFile.js] -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -globalSomething(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - - //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} - -//// [/src/project/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project/outFile.js ----------------------------------------------------------------------- -text: (0-1598) -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -globalSomething(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - -====================================================================== -====================================================================== -File:: /src/project/outFile.d.ts ----------------------------------------------------------------------- -text: (0-576) -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/fileNotFound" { - export function something2(): number; -} -declare module "src/anotherFileReusingResolution" { } -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/anotherFileReusingResolution.ts", - "./src/types.ts", - "./src/fileWithRef.ts", - "./src/globalFilePresent.ts", - "./src/globalFileNotFound.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalNewFile.ts", - "./src/globalMain.ts", - "./src/newFile.ts", - "./src/main.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 1598, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 576, - "kind": "text" - } - ] - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -3907,6 +5719,7 @@ declare module "src/main" { } "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -3914,12 +5727,47 @@ declare module "src/main" { } "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -3936,6 +5784,7 @@ declare module "src/main" { } [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -3950,8 +5799,11 @@ declare module "src/main" { } "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -3984,7 +5836,7 @@ declare module "src/main" { } "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -3998,7 +5850,8 @@ declare module "src/main" { } "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4015,6 +5868,7 @@ declare module "src/main" { } "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -4050,7 +5904,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -4079,7 +5933,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -4089,11 +5943,35 @@ declare module "src/main" { } ] }, { - "fileName": "./src/anotherFileReusingResolution.ts", - "originalFileName": "./src/anotherFileReusingResolution.ts", - "path": "./src/anotherfilereusingresolution.ts", + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -4103,6 +5981,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4123,6 +6009,58 @@ declare module "src/main" { } "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -4147,7 +6085,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -4164,7 +6102,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -4183,7 +6121,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -4207,7 +6145,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -4230,7 +6168,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -4249,7 +6187,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -4268,7 +6206,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -4287,7 +6225,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -4296,7 +6234,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -4314,6 +6252,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4343,18 +6289,71 @@ declare module "src/main" { } "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -4380,6 +6379,52 @@ declare module "src/main" { } "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -4390,7 +6435,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 8014 + "size": 10302 } @@ -4405,7 +6450,7 @@ exitCode:: ExitStatus.Success //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[]},"version":"FakeTSVersion"} @@ -4424,22 +6469,6 @@ Change:: no-change-run Input:: -Output:: -/lib/tsc --b src/project -exitCode:: ExitStatus.Success - - - - -Change:: Modify main file -Input:: -//// [/src/project/src/main.ts] -import { foo } from "./newFile";import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something();something(); - - - Output:: /lib/tsc --b src/project ======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== @@ -4450,6 +6479,39 @@ File '/src/project/src/filePresent.ts' exist - use it as a name resolution resul Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThing.ts' does not exist. +File '/src/project/src/externalThing.tsx' does not exist. +File '/src/project/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. @@ -4460,14 +6522,34 @@ Resolution for module './filePresent' was found in cache from location '/src/pro ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== -exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +======== Resolving module 'externalThing' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThing' was found in cache from location '/src/project/src'. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/fileNotFound.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -4482,177 +6564,104 @@ Program files:: No cached semantic diagnostics in the builder:: -//// [/src/project/outFile.d.ts] file written with same contents -//// [/src/project/outFile.js] -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -globalSomething(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); - filePresent_1.something(); -}); +//// [/src/project/outFile.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents + + +Change:: Modify main file +Input:: +//// [/src/project/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something();something(); + + + +Output:: +/lib/tsc --b src/project +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something();something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -//// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1630,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} - -//// [/src/project/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project/outFile.js ----------------------------------------------------------------------- -text: (0-1630) -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -globalSomething(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); - filePresent_1.something(); -}); - -====================================================================== -====================================================================== -File:: /src/project/outFile.d.ts ----------------------------------------------------------------------- -text: (0-576) -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/fileNotFound" { - export function something2(): number; -} -declare module "src/anotherFileReusingResolution" { } -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } -====================================================================== +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Completely +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.d.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/anotherFileReusingResolution.ts", - "./src/types.ts", - "./src/fileWithRef.ts", - "./src/globalFilePresent.ts", - "./src/globalFileNotFound.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalNewFile.ts", - "./src/globalMain.ts", - "./src/newFile.ts", - "./src/main.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 1630, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 576, - "kind": "text" - } - ] - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -4665,6 +6674,7 @@ declare module "src/main" { } "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -4672,12 +6682,47 @@ declare module "src/main" { } "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -4694,6 +6739,7 @@ declare module "src/main" { } [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -4708,8 +6754,11 @@ declare module "src/main" { } "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -4742,7 +6791,7 @@ declare module "src/main" { } "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();" + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" } }, "options": { @@ -4756,7 +6805,8 @@ declare module "src/main" { } "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4773,6 +6823,7 @@ declare module "src/main" { } "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -4808,7 +6859,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -4837,7 +6888,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -4846,12 +6897,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -4861,6 +6936,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4881,6 +6964,58 @@ declare module "src/main" { } "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -4905,7 +7040,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -4922,7 +7057,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -4941,7 +7076,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -4965,7 +7100,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -4988,7 +7123,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -5007,7 +7142,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -5026,7 +7161,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -5045,7 +7180,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -5054,7 +7189,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", "flags": 0, "imports": [ { @@ -5072,8 +7207,16 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" - } - ], + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], "resolvedModules": [ [ "./newFile", @@ -5101,18 +7244,71 @@ declare module "src/main" { } "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -5138,6 +7334,52 @@ declare module "src/main" { } "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -5148,7 +7390,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 8038 + "size": 10326 } @@ -5160,6 +7402,2183 @@ Input:: Output:: /lib/tsc --b src/project -exitCode:: ExitStatus.Success +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something();something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: +//// [/src/project/outFile.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"filesByName":[[24,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/filenotfound.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10007 +} + + + +Change:: Create external module file that could not be resolved +Input:: +//// [/src/project/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + + +Output:: +/lib/tsc --b src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"filesByName":[[26,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/filenotfound.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 8964 +} + + + +Change:: Write .ts file that takes preference over resolved .d.ts file +Input:: +//// [/src/project/src/externalThing.ts] +export function externalThing1() { return 10; } + + + +Output:: +/lib/tsc --b src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/externalThing.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":3,"file":15,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,20,18,16,21,24,23,22,26,25,15,27,7],"filesByName":[[28,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[20,30]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/filenotfound.ts", + "./src/fileNotFound.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 9248 +} + diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 5a059d3f75ef4..8bf3ca1319f25 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -16,7 +16,12 @@ declare const console: { log(msg: any): void; }; //// [/src/project/src/anotherFileReusingResolution.ts] import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +//// [/src/project/src/externalThing.d.ts] +export function externalThing1(): number; //// [/src/project/src/filePresent.ts] export function something() { return 10; } @@ -42,7 +47,9 @@ function globalMain() { } //// [/src/project/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/src/project/src/types.ts] interface SomeType {} @@ -66,17 +73,61 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThing.ts' does not exist. +File '/src/project/src/externalThing.tsx' does not exist. +File '/src/project/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== ======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== Resolution for module './filePresent' was found in cache from location '/src/project/src'. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThing' was found in cache from location '/src/project/src'. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. 2 /// @@ -92,16 +143,22 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 4 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 6 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -113,6 +170,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -123,7 +181,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -131,6 +189,7 @@ Semantic diagnostics in builder refreshed for:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -140,6 +199,7 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -149,11 +209,46 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -173,9 +268,13 @@ Semantic diagnostics in builder refreshed for:: "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -202,8 +301,8 @@ Semantic diagnostics in builder refreshed for:: "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -215,7 +314,8 @@ Semantic diagnostics in builder refreshed for:: }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -229,12 +329,14 @@ Semantic diagnostics in builder refreshed for:: "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -248,7 +350,8 @@ Semantic diagnostics in builder refreshed for:: "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -263,9 +366,18 @@ Semantic diagnostics in builder refreshed for:: "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -281,6 +393,14 @@ Semantic diagnostics in builder refreshed for:: "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -291,6 +411,10 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -351,7 +475,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -365,12 +489,36 @@ Semantic diagnostics in builder refreshed for:: } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -380,6 +528,14 @@ Semantic diagnostics in builder refreshed for:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -403,6 +559,58 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -427,7 +635,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -444,7 +652,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -463,7 +671,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -486,7 +694,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -504,7 +712,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -513,7 +721,7 @@ Semantic diagnostics in builder refreshed for:: "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -527,6 +735,14 @@ Semantic diagnostics in builder refreshed for:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -550,18 +766,71 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -614,12 +883,58 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6494 + "size": 9747 } @@ -635,6 +950,11 @@ Output:: 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. 2 /// @@ -650,16 +970,22 @@ Output:: 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -Found 4 errors. + +Found 6 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -690,6 +1016,11 @@ Output:: 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. 2 /// @@ -705,16 +1036,22 @@ Output:: 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 4 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 6 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -726,6 +1063,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -736,7 +1074,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-19927227517-/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-19927227517-/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -744,6 +1082,7 @@ Semantic diagnostics in builder refreshed for:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -753,6 +1092,7 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -762,11 +1102,46 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -786,8 +1161,12 @@ Semantic diagnostics in builder refreshed for:: "version": "11598859296-export function something() { return 10; }", "signature": "-15062742831-export declare function something(): number;\r\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" }, "./src/types.ts": { @@ -815,7 +1194,7 @@ Semantic diagnostics in builder refreshed for:: "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" } }, @@ -828,7 +1207,8 @@ Semantic diagnostics in builder refreshed for:: }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -842,7 +1222,8 @@ Semantic diagnostics in builder refreshed for:: "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -858,9 +1239,18 @@ Semantic diagnostics in builder refreshed for:: "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -876,6 +1266,14 @@ Semantic diagnostics in builder refreshed for:: "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -886,6 +1284,10 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -946,7 +1348,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -960,12 +1362,36 @@ Semantic diagnostics in builder refreshed for:: } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -975,6 +1401,14 @@ Semantic diagnostics in builder refreshed for:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -998,6 +1432,58 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1022,7 +1508,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -1039,7 +1525,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1058,7 +1544,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1081,7 +1567,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1099,7 +1585,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1108,7 +1594,7 @@ Semantic diagnostics in builder refreshed for:: "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1122,6 +1608,14 @@ Semantic diagnostics in builder refreshed for:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1145,18 +1639,71 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1209,12 +1756,58 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7170 + "size": 10422 } @@ -1236,6 +1829,7 @@ function globalFoo() { return 20; } Output:: /lib/tsc --b src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. @@ -1244,16 +1838,52 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. 2 /// @@ -1269,16 +1899,22 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 4 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 6 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -1291,6 +1927,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -1302,7 +1939,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"604791887-/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[9,1],[8,1],[10,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"604791887-/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[10,1],[9,1],[11,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1310,6 +1947,7 @@ Semantic diagnostics in builder refreshed for:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1320,6 +1958,7 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1330,11 +1969,46 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1359,8 +2033,12 @@ Semantic diagnostics in builder refreshed for:: "version": "11598859296-export function something() { return 10; }", "signature": "-15062742831-export declare function something(): number;\r\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" }, "./src/types.ts": { @@ -1393,7 +2071,7 @@ Semantic diagnostics in builder refreshed for:: "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" } }, @@ -1406,7 +2084,8 @@ Semantic diagnostics in builder refreshed for:: }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1421,7 +2100,8 @@ Semantic diagnostics in builder refreshed for:: "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1437,9 +2117,18 @@ Semantic diagnostics in builder refreshed for:: "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -1456,6 +2145,14 @@ Semantic diagnostics in builder refreshed for:: "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -1466,6 +2163,10 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -1530,7 +2231,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1545,22 +2246,54 @@ Semantic diagnostics in builder refreshed for:: ] }, { - "fileName": "./src/anotherFileReusingResolution.ts", - "originalFileName": "./src/anotherFileReusingResolution.ts", - "path": "./src/anotherfilereusingresolution.ts", - "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", "flags": 0, - "imports": [ + "includeReasons": [ { - "kind": 10, - "text": "./filePresent" + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 }, { - "kind": 10, - "text": "./fileNotFound" - } - ], + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], "resolvedModules": [ [ "./filePresent", @@ -1582,6 +2315,58 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1606,7 +2391,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -1623,7 +2408,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1642,7 +2427,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1665,7 +2450,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1684,7 +2469,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -1703,7 +2488,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1712,7 +2497,7 @@ Semantic diagnostics in builder refreshed for:: "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1726,6 +2511,14 @@ Semantic diagnostics in builder refreshed for:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1749,18 +2542,71 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1814,12 +2660,58 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7790 + "size": 11040 } @@ -1834,6 +2726,7 @@ function globalSomething2() { return 20; } Output:: /lib/tsc --b src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. @@ -1842,31 +2735,73 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -1880,6 +2815,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -1892,7 +2828,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1900,6 +2836,7 @@ Semantic diagnostics in builder refreshed for:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1910,6 +2847,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1921,11 +2859,46 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1950,8 +2923,12 @@ Semantic diagnostics in builder refreshed for:: "version": "11598859296-export function something() { return 10; }", "signature": "-15062742831-export declare function something(): number;\r\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" }, "./src/types.ts": { @@ -1989,7 +2966,7 @@ Semantic diagnostics in builder refreshed for:: "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" } }, @@ -2002,7 +2979,8 @@ Semantic diagnostics in builder refreshed for:: }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2017,7 +2995,8 @@ Semantic diagnostics in builder refreshed for:: "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2033,9 +3012,18 @@ Semantic diagnostics in builder refreshed for:: "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -2053,6 +3041,14 @@ Semantic diagnostics in builder refreshed for:: "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -2063,6 +3059,10 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -2131,7 +3131,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2145,12 +3145,36 @@ Semantic diagnostics in builder refreshed for:: } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2160,6 +3184,14 @@ Semantic diagnostics in builder refreshed for:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2183,6 +3215,58 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2207,7 +3291,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2224,7 +3308,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2243,7 +3327,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2267,7 +3351,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2290,7 +3374,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2309,7 +3393,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2328,7 +3412,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -2337,7 +3421,7 @@ Semantic diagnostics in builder refreshed for:: "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2351,6 +3435,14 @@ Semantic diagnostics in builder refreshed for:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2374,18 +3466,71 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2411,12 +3556,58 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 8012 + "size": 11260 } @@ -2431,7 +3622,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]]},"version":"FakeTSVersion"} @@ -2464,32 +3655,82 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThing.ts' does not exist. +File '/src/project/src/externalThing.tsx' does not exist. +File '/src/project/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== ======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== Resolution for module './filePresent' was found in cache from location '/src/project/src'. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThing' was found in cache from location '/src/project/src'. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -2504,7 +3745,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents @@ -2527,21 +3768,32 @@ Output:: 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -2557,7 +3809,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2565,6 +3817,7 @@ Semantic diagnostics in builder refreshed for:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2575,6 +3828,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2586,11 +3840,46 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2615,8 +3904,12 @@ Semantic diagnostics in builder refreshed for:: "version": "11598859296-export function something() { return 10; }", "signature": "-15062742831-export declare function something(): number;\r\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" }, "./src/types.ts": { @@ -2654,7 +3947,7 @@ Semantic diagnostics in builder refreshed for:: "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" } }, @@ -2667,7 +3960,8 @@ Semantic diagnostics in builder refreshed for:: }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2682,7 +3976,8 @@ Semantic diagnostics in builder refreshed for:: "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2698,9 +3993,18 @@ Semantic diagnostics in builder refreshed for:: "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -2718,6 +4022,14 @@ Semantic diagnostics in builder refreshed for:: "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -2728,6 +4040,10 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -2796,7 +4112,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2810,12 +4126,36 @@ Semantic diagnostics in builder refreshed for:: } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2825,6 +4165,14 @@ Semantic diagnostics in builder refreshed for:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2848,7 +4196,59 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.jsx" ] } - ] + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } + ] ], "includeReasons": [ { @@ -2872,7 +4272,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2889,7 +4289,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2908,7 +4308,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2932,7 +4332,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2955,7 +4355,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2974,7 +4374,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2993,7 +4393,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3002,7 +4402,7 @@ Semantic diagnostics in builder refreshed for:: "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3016,6 +4416,14 @@ Semantic diagnostics in builder refreshed for:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3039,18 +4447,71 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3076,12 +4537,58 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 8048 + "size": 11296 } @@ -3091,7 +4598,9 @@ Input:: //// [/src/project/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); @@ -3099,6 +4608,7 @@ Output:: /lib/tsc --b src/project Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. @@ -3107,26 +4617,64 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -3142,7 +4690,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3150,6 +4698,7 @@ Semantic diagnostics in builder refreshed for:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -3160,6 +4709,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -3171,11 +4721,46 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -3200,8 +4785,12 @@ Semantic diagnostics in builder refreshed for:: "version": "11598859296-export function something() { return 10; }", "signature": "-15062742831-export declare function something(): number;\r\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" }, "./src/types.ts": { @@ -3239,7 +4828,7 @@ Semantic diagnostics in builder refreshed for:: "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-4882119183-export {};\r\n" } }, @@ -3252,7 +4841,8 @@ Semantic diagnostics in builder refreshed for:: }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3267,7 +4857,8 @@ Semantic diagnostics in builder refreshed for:: "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -3283,9 +4874,18 @@ Semantic diagnostics in builder refreshed for:: "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -3303,6 +4903,14 @@ Semantic diagnostics in builder refreshed for:: "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -3313,6 +4921,10 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -3381,7 +4993,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -3395,12 +5007,36 @@ Semantic diagnostics in builder refreshed for:: } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3410,6 +5046,14 @@ Semantic diagnostics in builder refreshed for:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3433,6 +5077,58 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3457,7 +5153,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3474,7 +5170,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3493,7 +5189,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3517,7 +5213,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3540,7 +5236,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3559,7 +5255,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3578,7 +5274,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3587,7 +5283,7 @@ Semantic diagnostics in builder refreshed for:: "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3601,6 +5297,14 @@ Semantic diagnostics in builder refreshed for:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3624,18 +5328,71 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3661,12 +5418,58 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 8074 + "size": 11320 } @@ -3676,7 +5479,9 @@ Input:: //// [/src/project/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); //// [/src/project/src/newFile.ts] export function foo() { return 20; } @@ -3686,6 +5491,7 @@ export function foo() { return 20; } Output:: /lib/tsc --b src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. @@ -3694,8 +5500,36 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. @@ -3703,26 +5537,40 @@ File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -3740,7 +5588,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[12,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3748,6 +5596,7 @@ Semantic diagnostics in builder refreshed for:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -3759,6 +5608,7 @@ Semantic diagnostics in builder refreshed for:: "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -3771,11 +5621,46 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -3791,6 +5676,7 @@ Semantic diagnostics in builder refreshed for:: ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -3804,8 +5690,12 @@ Semantic diagnostics in builder refreshed for:: "version": "11598859296-export function something() { return 10; }", "signature": "-15062742831-export declare function something(): number;\r\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" }, "./src/types.ts": { @@ -3847,7 +5737,7 @@ Semantic diagnostics in builder refreshed for:: "signature": "-3405156953-export declare function foo(): number;\r\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-4882119183-export {};\r\n" } }, @@ -3860,7 +5750,8 @@ Semantic diagnostics in builder refreshed for:: }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3876,6 +5767,7 @@ Semantic diagnostics in builder refreshed for:: ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -3892,9 +5784,18 @@ Semantic diagnostics in builder refreshed for:: "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -3912,6 +5813,14 @@ Semantic diagnostics in builder refreshed for:: "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -3923,6 +5832,10 @@ Semantic diagnostics in builder refreshed for:: "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -3995,7 +5908,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -4009,12 +5922,36 @@ Semantic diagnostics in builder refreshed for:: } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -4024,6 +5961,14 @@ Semantic diagnostics in builder refreshed for:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4047,6 +5992,58 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -4071,7 +6068,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -4088,7 +6085,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -4107,7 +6104,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -4131,7 +6128,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -4154,7 +6151,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -4173,7 +6170,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -4192,7 +6189,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -4211,7 +6208,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -4220,7 +6217,7 @@ Semantic diagnostics in builder refreshed for:: "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -4238,6 +6235,14 @@ Semantic diagnostics in builder refreshed for:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4270,18 +6275,71 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.jsx" ] } - ] + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } + ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -4309,6 +6367,52 @@ Semantic diagnostics in builder refreshed for:: "./src/fileNotFound.jsx" ] }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -4319,7 +6423,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 8645 + "size": 11891 } @@ -4334,24 +6438,70 @@ export function something2() { return 20; } Output:: /lib/tsc --b src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== -exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/fileNotFound.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -4369,142 +6519,8 @@ Semantic diagnostics in builder refreshed for:: /src/project/src/main.ts -//// [/src/project/src/anotherFileReusingResolution.d.ts] -export {}; - - -//// [/src/project/src/anotherFileReusingResolution.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); - - -//// [/src/project/src/fileNotFound.d.ts] -export declare function something2(): number; - - -//// [/src/project/src/fileNotFound.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); - - -//// [/src/project/src/filePresent.d.ts] -export declare function something(): number; - - -//// [/src/project/src/filePresent.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); - - -//// [/src/project/src/fileWithRef.d.ts] -/// - - -//// [/src/project/src/fileWithRef.js] -/// - - -//// [/src/project/src/globalAnotherFileWithSameReferenes.d.ts] -/// -/// -declare function globalAnotherFileWithSameReferenes(): void; - - -//// [/src/project/src/globalAnotherFileWithSameReferenes.js] -/// -/// -function globalAnotherFileWithSameReferenes() { } - - -//// [/src/project/src/globalFileNotFound.d.ts] -declare function globalSomething2(): number; - - -//// [/src/project/src/globalFileNotFound.js] -function globalSomething2() { return 20; } - - -//// [/src/project/src/globalFilePresent.d.ts] -declare function globalSomething(): number; - - -//// [/src/project/src/globalFilePresent.js] -function globalSomething() { return 10; } - - -//// [/src/project/src/globalMain.d.ts] -/// -/// -/// -declare function globalMain(): void; - - -//// [/src/project/src/globalMain.js] -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -globalSomething(); - - -//// [/src/project/src/globalNewFile.d.ts] -declare function globalFoo(): number; - - -//// [/src/project/src/globalNewFile.js] -function globalFoo() { return 20; } - - -//// [/src/project/src/main.d.ts] -export {}; - - -//// [/src/project/src/main.js] -define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - - -//// [/src/project/src/newFile.d.ts] -export declare function foo(): number; - - -//// [/src/project/src/newFile.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); - - -//// [/src/project/src/types.d.ts] -interface SomeType { -} - - -//// [/src/project/src/types.js] - - //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4513,6 +6529,7 @@ interface SomeType { "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -4525,6 +6542,7 @@ interface SomeType { "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -4532,12 +6550,47 @@ interface SomeType { "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -4554,6 +6607,7 @@ interface SomeType { [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -4571,8 +6625,12 @@ interface SomeType { "version": "-497034637-export function something2() { return 20; }", "signature": "-13705775197-export declare function something2(): number;\r\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" }, "./src/types.ts": { @@ -4614,7 +6672,7 @@ interface SomeType { "signature": "-3405156953-export declare function foo(): number;\r\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-4882119183-export {};\r\n" } }, @@ -4628,7 +6686,8 @@ interface SomeType { "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4645,13 +6704,27 @@ interface SomeType { "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -4660,10 +6733,76 @@ interface SomeType { "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - "./src/main.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/newfile.ts", "./src/types.ts" ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.ts", + "Full" + ], + [ + "./src/filenotfound.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], "peristedProgram": { "files": [ { @@ -4695,7 +6834,7 @@ interface SomeType { }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -4724,7 +6863,7 @@ interface SomeType { }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -4733,12 +6872,36 @@ interface SomeType { } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -4748,6 +6911,14 @@ interface SomeType { { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4768,6 +6939,58 @@ interface SomeType { "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -4792,7 +7015,7 @@ interface SomeType { }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -4809,7 +7032,7 @@ interface SomeType { "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -4828,7 +7051,7 @@ interface SomeType { }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -4852,7 +7075,7 @@ interface SomeType { }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -4875,7 +7098,7 @@ interface SomeType { "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -4894,7 +7117,7 @@ interface SomeType { }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -4913,7 +7136,7 @@ interface SomeType { "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -4932,7 +7155,7 @@ interface SomeType { }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -4941,7 +7164,7 @@ interface SomeType { "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -4959,6 +7182,14 @@ interface SomeType { { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4988,18 +7219,71 @@ interface SomeType { "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -5027,15 +7311,61 @@ interface SomeType { }, { "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" - } - } - ] - } - }, - "version": "FakeTSVersion", - "size": 8402 + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11763 } @@ -5050,7 +7380,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]]},"version":"FakeTSVersion"} @@ -5069,22 +7399,6 @@ Change:: no-change-run Input:: -Output:: -/lib/tsc --b src/project -exitCode:: ExitStatus.Success - - - - -Change:: Modify main file -Input:: -//// [/src/project/src/main.ts] -import { foo } from "./newFile";import { something } from "./filePresent"; -import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something();something(); - - - Output:: /lib/tsc --b src/project ======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== @@ -5095,6 +7409,39 @@ File '/src/project/src/filePresent.ts' exist - use it as a name resolution resul Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThing.ts' does not exist. +File '/src/project/src/externalThing.tsx' does not exist. +File '/src/project/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. @@ -5105,14 +7452,34 @@ Resolution for module './filePresent' was found in cache from location '/src/pro ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== -exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +======== Resolving module 'externalThing' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThing' was found in cache from location '/src/project/src'. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/fileNotFound.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -5125,21 +7492,98 @@ Program files:: /src/project/src/main.ts Semantic diagnostics in builder refreshed for:: -/src/project/src/main.ts -//// [/src/project/src/main.d.ts] file written with same contents -//// [/src/project/src/main.js] -define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); - filePresent_1.something(); -}); +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents + + +Change:: Modify main file +Input:: +//// [/src/project/src/main.ts] +import { foo } from "./newFile";import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something();something(); + + + +Output:: +/lib/tsc --b src/project +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something();something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Completely +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.d.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/main.ts + + //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -5148,6 +7592,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -5160,6 +7605,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -5167,12 +7613,47 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -5189,6 +7670,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -5206,8 +7688,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "version": "-497034637-export function something2() { return 20; }", "signature": "-13705775197-export declare function something2(): number;\r\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" }, "./src/types.ts": { @@ -5249,7 +7735,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "signature": "-3405156953-export declare function foo(): number;\r\n" }, "./src/main.ts": { - "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", "signature": "-4882119183-export {};\r\n" } }, @@ -5263,7 +7749,8 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -5280,13 +7767,27 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -5295,10 +7796,76 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - "./src/main.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/newfile.ts", "./src/types.ts" ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.ts", + "Full" + ], + [ + "./src/filenotfound.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], "peristedProgram": { "files": [ { @@ -5330,7 +7897,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -5359,7 +7926,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -5368,12 +7935,36 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -5383,6 +7974,14 @@ define(["require", "exports", "./filePresent"], function (require, exports, file { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -5403,6 +8002,58 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -5427,7 +8078,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -5444,7 +8095,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -5463,7 +8114,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -5487,7 +8138,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -5510,7 +8161,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -5529,7 +8180,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -5548,7 +8199,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -5567,7 +8218,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -5576,7 +8227,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", "flags": 0, "imports": [ { @@ -5594,6 +8245,14 @@ define(["require", "exports", "./filePresent"], function (require, exports, file { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -5623,18 +8282,71 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -5660,6 +8372,52 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -5670,7 +8428,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 8426 + "size": 11787 } @@ -5682,6 +8440,1774 @@ Input:: Output:: /lib/tsc --b src/project -exitCode:: ExitStatus.Success +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something();something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/main.ts + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[4,1],[3,1],[14,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[14,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filenotfound.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-15062742831-export declare function something(): number;\r\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-4882119183-export {};\r\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-3405156953-export declare function foo(): number;\r\n" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts", + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.ts", + "Full" + ], + [ + "./src/filenotfound.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11887 +} + + + +Change:: Create external module file that could not be resolved +Input:: +//// [/src/project/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + + +Output:: +/lib/tsc --b src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/main.ts + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16426931566-export declare function externalThing2(): number;\r\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,4,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[3,1],[4,1],[15,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,17,18,16,20,23,22,21,25,24,14,26,6],"filesByName":[[15,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filenotfound.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-15062742831-export declare function something(): number;\r\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16426931566-export declare function externalThing2(): number;\r\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-4882119183-export {};\r\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-3405156953-export declare function foo(): number;\r\n" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts", + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.ts", + "Full" + ], + [ + "./src/externalthingnotpresent.ts", + "Full" + ], + [ + "./src/filenotfound.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10417 +} + + + +Change:: Write .ts file that takes preference over resolved .d.ts file +Input:: +//// [/src/project/src/externalThing.ts] +export function externalThing1() { return 10; } + + + +Output:: +/lib/tsc --b src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +error TS5055: Cannot write file '/src/project/src/externalThing.d.ts' because it would overwrite input file. + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/externalThing.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/externalThing.ts diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index a64f2b44714e8..1737567a52451 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -2,11 +2,15 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } @@ -32,6 +36,9 @@ function globalAnotherFileWithSameReferenes() { } //// [/user/username/projects/myproject/src/globalFilePresent.ts] function globalSomething() { return 10; } +//// [/user/username/projects/myproject/src/externalThing.d.ts] +export function externalThing1(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -49,12 +56,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:42 AM] Starting compilation in watch mode... +[12:00:44 AM] Starting compilation in watch mode... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -68,17 +75,73 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' does not exist. +File '/user/username/projects/myproject/src/externalThing.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThing' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -94,12 +157,18 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:48 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:00:50 AM] Found 6 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json @@ -109,12 +178,13 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 2 FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -130,6 +200,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -154,7 +226,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -162,6 +234,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -171,6 +244,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -180,11 +254,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -202,8 +327,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -225,7 +353,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -240,7 +368,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -254,7 +383,8 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -289,7 +419,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -303,12 +433,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -318,6 +472,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -341,6 +503,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -365,7 +595,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -382,7 +612,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -401,7 +631,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -424,7 +654,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -442,7 +672,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -451,7 +681,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -465,6 +695,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -488,18 +726,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -552,12 +859,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6015 + "size": 9635 } @@ -574,13 +943,18 @@ globalSomething(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:51 AM] File change detected. Starting incremental compilation... +[12:00:53 AM] File change detected. Starting incremental compilation... src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -596,16 +970,22 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:58 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:00 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -621,6 +1001,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -645,7 +1027,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -653,6 +1035,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -662,6 +1045,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -671,11 +1055,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -693,8 +1128,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -716,7 +1154,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -731,7 +1169,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -745,7 +1184,8 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -780,7 +1220,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -794,12 +1234,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -809,6 +1273,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -832,6 +1304,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -856,7 +1396,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -873,7 +1413,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -892,7 +1432,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -915,7 +1455,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -933,7 +1473,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -942,7 +1482,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -956,6 +1496,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -979,18 +1527,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1043,12 +1660,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6049 + "size": 9669 } @@ -1073,10 +1752,11 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:05 AM] File change detected. Starting incremental compilation... +[12:01:07 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -1085,16 +1765,64 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -1110,16 +1838,22 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:12 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:14 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1136,6 +1870,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -1162,7 +1898,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1170,6 +1906,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1180,6 +1917,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1190,11 +1928,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1217,8 +2006,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -1244,7 +2036,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -1259,7 +2051,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1274,7 +2067,8 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1309,7 +2103,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1323,12 +2117,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1338,6 +2156,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1361,6 +2187,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1385,7 +2279,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -1402,7 +2296,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1421,7 +2315,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1444,7 +2338,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1463,7 +2357,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -1482,7 +2376,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1491,7 +2385,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1505,6 +2399,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1528,18 +2430,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 7 - } - ] + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1593,12 +2564,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6564 + "size": 10182 } @@ -1612,10 +2645,11 @@ function globalSomething2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:15 AM] File change detected. Starting incremental compilation... +[12:01:17 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -1624,31 +2658,85 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:22 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:24 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1666,6 +2754,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -1694,7 +2784,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1702,6 +2792,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1712,6 +2803,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1723,11 +2815,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1750,8 +2893,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -1781,7 +2927,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -1796,7 +2942,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1811,7 +2958,8 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1846,7 +2994,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1860,12 +3008,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1875,6 +3047,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1898,6 +3078,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1922,7 +3170,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -1939,7 +3187,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1958,7 +3206,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -1982,7 +3230,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2005,7 +3253,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2024,7 +3272,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2043,7 +3291,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -2052,7 +3300,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2066,6 +3314,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2089,18 +3345,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2126,12 +3451,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6568 + "size": 10184 } @@ -2141,16 +3528,19 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:25 AM] File change detected. Starting incremental compilation... +[12:01:27 AM] File change detected. Starting incremental compilation... Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -2159,26 +3549,76 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:32 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:34 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2196,6 +3636,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -2224,7 +3666,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2232,6 +3674,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2242,6 +3685,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2253,11 +3697,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2280,8 +3775,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -2311,7 +3809,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -2326,7 +3824,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2341,7 +3840,8 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2376,7 +3876,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2390,12 +3890,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2405,6 +3929,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2428,6 +3960,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2452,7 +4052,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2469,7 +4069,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2488,7 +4088,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2512,7 +4112,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2535,7 +4135,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2554,7 +4154,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2573,7 +4173,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -2582,7 +4182,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -2596,6 +4196,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2619,18 +4227,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2656,12 +4333,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6594 + "size": 10208 } @@ -2671,7 +4410,9 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); //// [/user/username/projects/myproject/src/newFile.ts] export function foo() { return 20; } @@ -2682,10 +4423,11 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:37 AM] File change detected. Starting incremental compilation... +[12:01:39 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -2694,8 +4436,48 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. @@ -2703,26 +4485,40 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:44 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:46 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2741,6 +4537,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -2771,7 +4569,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2779,6 +4577,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2790,6 +4589,7 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2802,11 +4602,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2822,6 +4673,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -2833,8 +4685,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -2867,7 +4722,7 @@ exitCode:: ExitStatus.undefined "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -2882,7 +4737,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2898,6 +4754,7 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -2933,7 +4790,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2947,12 +4804,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2962,6 +4843,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2985,6 +4874,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3009,7 +4966,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -3026,7 +4983,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3045,7 +5002,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3069,7 +5026,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3092,7 +5049,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3111,7 +5068,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3130,7 +5087,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3149,7 +5106,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3158,7 +5115,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3176,6 +5133,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3208,18 +5173,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3247,6 +5281,68 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -3257,7 +5353,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 7104 + "size": 10718 } @@ -3271,31 +5367,86 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:47 AM] File change detected. Starting incremental compilation... +[12:01:49 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -[12:02:00 AM] Found 0 errors. Watching for file changes. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:56 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -3314,6 +5465,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -3346,50 +5499,16 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/anotherFileReusingResolution.ts", - "./src/types.ts", - "./src/fileWithRef.ts", - "./src/globalFilePresent.ts", - "./src/globalFileNotFound.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalNewFile.ts", - "./src/globalMain.ts", - "./src/newFile.ts", - "./src/main.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 1535, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 558, - "kind": "text" - } - ] - } - }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -3402,6 +5521,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -3409,12 +5529,63 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -3431,6 +5602,7 @@ exitCode:: ExitStatus.undefined [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -3445,8 +5617,11 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -3479,7 +5654,7 @@ exitCode:: ExitStatus.undefined "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -3495,7 +5670,8 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3512,6 +5688,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -3547,7 +5724,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -3576,7 +5753,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -3585,12 +5762,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3600,6 +5801,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3620,6 +5829,74 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3644,7 +5921,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -3661,7 +5938,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3680,7 +5957,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -3704,7 +5981,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3727,7 +6004,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -3746,7 +6023,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -3765,7 +6042,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3784,7 +6061,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -3793,7 +6070,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3811,6 +6088,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3840,18 +6125,87 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -3877,6 +6231,68 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -3887,150 +6303,8 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 7866 -} - -//// [/user/username/projects/myproject/outFile.js] -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - - -//// [/user/username/projects/myproject/outFile.d.ts] -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/fileNotFound" { - export function something2(): number; -} -declare module "src/anotherFileReusingResolution" { } -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } - - -//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/myproject/outFile.js ----------------------------------------------------------------------- -text: (0-1535) -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - -====================================================================== -====================================================================== -File:: /user/username/projects/myproject/outFile.d.ts ----------------------------------------------------------------------- -text: (0-558) -declare module "src/filePresent" { - export function something(): number; + "size": 11002 } -declare module "src/fileNotFound" { - export function something2(): number; -} -declare module "src/anotherFileReusingResolution" { } -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } - -====================================================================== Change:: Delete file that could not be resolved @@ -4043,18 +6317,110 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound. Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:02:02 AM] File change detected. Starting incremental compilation... +[12:01:58 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:02:03 AM] Found 0 errors. Watching for file changes. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:02:05 AM] Found 4 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -4084,3 +6450,2251 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"filesByName":[[24,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/filenotfound.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10683 +} + + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:08 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:02:15 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"filesByName":[[26,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/filenotfound.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 8792 +} + + +Change:: Write .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] +export function externalThing1() { return 10; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:18 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:02:25 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":3,"file":15,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,20,18,16,21,24,23,22,26,25,15,27,7],"filesByName":[[28,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[20,30]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/filenotfound.ts", + "./src/fileNotFound.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 9076 +} + diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js index 3ea59d6f78e52..8fbfc6b52d381 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -2,11 +2,15 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } @@ -32,6 +36,9 @@ function globalAnotherFileWithSameReferenes() { } //// [/user/username/projects/myproject/src/globalFilePresent.ts] function globalSomething() { return 10; } +//// [/user/username/projects/myproject/src/externalThing.d.ts] +export function externalThing1(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -49,12 +56,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]]},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:42 AM] Starting compilation in watch mode... +[12:00:44 AM] Starting compilation in watch mode... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -68,17 +75,73 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' does not exist. +File '/user/username/projects/myproject/src/externalThing.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThing' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -94,12 +157,18 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:48 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:00:50 AM] Found 6 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json @@ -109,12 +178,13 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 2 FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -130,6 +200,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -154,7 +226,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -162,6 +234,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -171,6 +244,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -180,11 +254,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -204,9 +329,13 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -233,8 +362,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -248,7 +377,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -262,12 +392,14 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -281,7 +413,8 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -296,9 +429,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -314,6 +456,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -324,6 +474,10 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -384,7 +538,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -398,12 +552,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -413,6 +591,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -436,6 +622,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -460,7 +714,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -477,7 +731,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -496,7 +750,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -519,7 +773,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -537,7 +791,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -546,7 +800,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -560,6 +814,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -583,18 +845,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -647,12 +978,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6424 + "size": 10525 } @@ -669,13 +1062,18 @@ globalSomething(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:51 AM] File change detected. Starting incremental compilation... +[12:00:53 AM] File change detected. Starting incremental compilation... src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -691,16 +1089,22 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:58 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:00 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -712,6 +1116,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -725,6 +1130,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -749,7 +1156,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -757,6 +1164,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -766,6 +1174,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -775,11 +1184,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -799,8 +1259,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -828,7 +1292,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" } }, @@ -843,7 +1307,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -857,7 +1322,8 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -873,9 +1339,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -891,6 +1366,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -901,6 +1384,10 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -961,7 +1448,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -975,12 +1462,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -990,6 +1501,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1013,6 +1532,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1037,7 +1624,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -1054,7 +1641,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1073,7 +1660,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1096,7 +1683,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1114,7 +1701,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1123,7 +1710,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1137,6 +1724,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1160,18 +1755,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1224,12 +1888,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7078 + "size": 11178 } @@ -1254,10 +1980,11 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:05 AM] File change detected. Starting incremental compilation... +[12:01:07 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -1266,16 +1993,64 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -1291,16 +2066,22 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:12 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:14 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1313,6 +2094,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1327,6 +2109,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -1353,7 +2137,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[9,1],[8,1],[10,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[10,1],[9,1],[11,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1361,6 +2145,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1371,6 +2156,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1381,11 +2167,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1410,8 +2247,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -1444,7 +2285,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" } }, @@ -1459,7 +2300,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1474,7 +2316,8 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1490,9 +2333,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -1509,6 +2361,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -1519,6 +2379,10 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -1583,7 +2447,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1597,12 +2461,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1612,10 +2500,18 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ "./filePresent", { "resolvedModule": { @@ -1635,6 +2531,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1659,7 +2623,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -1676,7 +2640,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1695,7 +2659,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1718,7 +2682,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1737,7 +2701,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -1756,7 +2720,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1765,7 +2729,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1779,6 +2743,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1802,18 +2774,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1867,12 +2908,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7695 + "size": 11793 } @@ -1886,10 +2989,11 @@ function globalSomething2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:15 AM] File change detected. Starting incremental compilation... +[12:01:17 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -1898,31 +3002,85 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:22 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:24 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1936,6 +3094,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1951,6 +3110,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -1979,7 +3140,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1987,6 +3148,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1997,6 +3159,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2008,11 +3171,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2037,8 +3251,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -2076,7 +3294,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" } }, @@ -2091,7 +3309,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2106,7 +3325,8 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2122,9 +3342,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -2142,6 +3371,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -2152,6 +3389,10 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -2220,7 +3461,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2234,12 +3475,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2249,6 +3514,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2272,6 +3545,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2296,7 +3637,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2313,7 +3654,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2332,7 +3673,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2356,7 +3697,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2379,7 +3720,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2398,7 +3739,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2417,7 +3758,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -2426,7 +3767,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2440,6 +3781,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2463,18 +3812,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2500,12 +3918,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7870 + "size": 11966 } @@ -2515,16 +3995,19 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:25 AM] File change detected. Starting incremental compilation... +[12:01:27 AM] File change detected. Starting incremental compilation... Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -2533,26 +4016,76 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:32 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:34 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2571,6 +4104,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -2599,7 +4134,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2607,6 +4142,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2617,6 +4153,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2628,11 +4165,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2657,8 +4245,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -2696,7 +4288,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -2711,7 +4303,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2726,7 +4319,8 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2742,9 +4336,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -2762,6 +4365,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -2772,6 +4383,10 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -2840,7 +4455,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2854,12 +4469,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2869,6 +4508,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2892,6 +4539,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2916,7 +4631,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2933,7 +4648,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2952,7 +4667,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2976,7 +4691,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2999,7 +4714,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3018,7 +4733,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3037,7 +4752,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3046,7 +4761,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3060,6 +4775,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3083,18 +4806,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3120,12 +4912,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7896 + "size": 11990 } @@ -3135,7 +4989,9 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); //// [/user/username/projects/myproject/src/newFile.ts] export function foo() { return 20; } @@ -3146,10 +5002,11 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:37 AM] File change detected. Starting incremental compilation... +[12:01:39 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -3158,8 +5015,48 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. @@ -3167,26 +5064,40 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:44 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:46 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -3207,6 +5118,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -3237,7 +5150,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[12,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3245,6 +5158,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -3256,6 +5170,7 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -3268,11 +5183,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -3288,6 +5254,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -3301,8 +5268,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -3344,7 +5315,7 @@ exitCode:: ExitStatus.undefined "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -3359,7 +5330,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3375,6 +5347,7 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -3391,9 +5364,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -3411,6 +5393,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -3422,6 +5412,10 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -3494,7 +5488,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -3508,12 +5502,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3523,6 +5541,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3546,6 +5572,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3570,7 +5664,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -3587,7 +5681,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3606,7 +5700,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3630,7 +5724,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3653,7 +5747,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3672,7 +5766,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3691,7 +5785,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3710,7 +5804,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3719,7 +5813,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3737,6 +5831,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3769,18 +5871,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3808,6 +5979,68 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -3818,7 +6051,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8465 + "size": 12559 } @@ -3832,103 +6065,86 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:47 AM] File change detected. Starting incremental compilation... +[12:01:49 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/anotherFileReusingResolution.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/filePresent.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/filePresent.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileWithRef.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileWithRef.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFilePresent.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFilePresent.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalMain.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalMain.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/main.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/main.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/types.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/types.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalNewFile.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalNewFile.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFileNotFound.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFileNotFound.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:02:42 AM] Found 0 errors. Watching for file changes. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:56 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -3950,6 +6166,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -3982,7 +6200,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3991,6 +6209,7 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -4003,6 +6222,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -4010,12 +6230,63 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -4032,6 +6303,7 @@ exitCode:: ExitStatus.undefined [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -4049,8 +6321,12 @@ exitCode:: ExitStatus.undefined "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -4092,7 +6368,7 @@ exitCode:: ExitStatus.undefined "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -4108,7 +6384,8 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4125,13 +6402,27 @@ exitCode:: ExitStatus.undefined "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -4140,10 +6431,76 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - "./src/main.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/newfile.ts", "./src/types.ts" ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.ts", + "Full" + ], + [ + "./src/filenotfound.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], "peristedProgram": { "files": [ { @@ -4175,7 +6532,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -4204,7 +6561,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -4213,12 +6570,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -4228,6 +6609,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4248,15 +6637,83 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 0 - } - ] - }, + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -4272,7 +6729,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -4289,7 +6746,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -4308,7 +6765,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -4332,7 +6789,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -4355,7 +6812,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -4374,7 +6831,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -4393,7 +6850,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -4412,7 +6869,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -4421,7 +6878,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -4439,6 +6896,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4468,18 +6933,87 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -4505,6 +7039,68 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -4515,142 +7111,9 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8220 + "size": 12429 } -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); - - -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] -export {}; - - -//// [/user/username/projects/myproject/src/filePresent.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); - - -//// [/user/username/projects/myproject/src/filePresent.d.ts] -export declare function something(): number; - - -//// [/user/username/projects/myproject/src/fileWithRef.js] -/// - - -//// [/user/username/projects/myproject/src/fileWithRef.d.ts] -/// - - -//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] -/// -/// -function globalAnotherFileWithSameReferenes() { } - - -//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] -/// -/// -declare function globalAnotherFileWithSameReferenes(): void; - - -//// [/user/username/projects/myproject/src/globalFilePresent.js] -function globalSomething() { return 10; } - - -//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] -declare function globalSomething(): number; - - -//// [/user/username/projects/myproject/src/globalMain.js] -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); - - -//// [/user/username/projects/myproject/src/globalMain.d.ts] -/// -/// -/// -declare function globalMain(): void; - - -//// [/user/username/projects/myproject/src/main.js] -define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - - -//// [/user/username/projects/myproject/src/main.d.ts] -export {}; - - -//// [/user/username/projects/myproject/src/types.js] - - -//// [/user/username/projects/myproject/src/types.d.ts] -interface SomeType { -} - - -//// [/user/username/projects/myproject/src/globalNewFile.js] -function globalFoo() { return 20; } - - -//// [/user/username/projects/myproject/src/globalNewFile.d.ts] -declare function globalFoo(): number; - - -//// [/user/username/projects/myproject/src/globalFileNotFound.js] -function globalSomething2() { return 20; } - - -//// [/user/username/projects/myproject/src/globalFileNotFound.d.ts] -declare function globalSomething2(): number; - - -//// [/user/username/projects/myproject/src/newFile.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); - - -//// [/user/username/projects/myproject/src/newFile.d.ts] -export declare function foo(): number; - - -//// [/user/username/projects/myproject/src/fileNotFound.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); - - -//// [/user/username/projects/myproject/src/fileNotFound.d.ts] -export declare function something2(): number; - - Change:: Delete file that could not be resolved @@ -4662,38 +7125,91 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound. Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:02:44 AM] File change detected. Starting incremental compilation... +[12:01:58 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:02:51 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:02:05 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/fileNotFound.d.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -4706,7 +7222,6 @@ Program files:: Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/fileNotFound.d.ts /user/username/projects/myproject/src/main.ts WatchedFiles:: @@ -4714,6 +7229,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -4734,8 +7251,6 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} -/user/username/projects/myproject/src/filenotfound.d.ts: - {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} FsWatches:: @@ -4746,7 +7261,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},"-14992185226-export declare function something2(): number;\n",{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[3,1],[4,1],[13,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"filesByName":[[24,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[4,1],[3,1],[14,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[14,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4754,8 +7269,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", - "./src/filenotfound.d.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -4765,9 +7280,10 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./src/filenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileNotFound.d.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -4775,12 +7291,62 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/filenotfound.ts", - "./src/fileNotFound.ts" + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -4796,6 +7362,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -4809,14 +7376,14 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, - "./src/filenotfound.d.ts": { - "version": "-14992185226-export declare function something2(): number;\n", - "signature": "-14992185226-export declare function something2(): number;\n" - }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10760962856-interface SomeType {\n}\n", @@ -4856,7 +7423,7 @@ exitCode:: ExitStatus.undefined "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -4871,7 +7438,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4887,6 +7455,7 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -4903,10 +7472,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], - "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -4924,6 +7501,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -4936,12 +7521,52 @@ exitCode:: ExitStatus.undefined "Full" ], [ - "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "Full" + ], + [ + "./src/filenotfound.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", "Full" ], [ "./src/main.ts", "Full" + ], + [ + "./src/newfile.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" ] ], "peristedProgram": { @@ -4989,12 +7614,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -5004,6 +7653,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -5024,6 +7681,74 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -5033,20 +7758,6 @@ exitCode:: ExitStatus.undefined } ] }, - { - "fileName": "./src/fileNotFound.d.ts", - "originalFileName": "./src/fileNotFound.d.ts", - "path": "./src/filenotfound.d.ts", - "resolvedPath": "./src/filenotfound.d.ts", - "version": "-14992185226-export declare function something2(): number;\n", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -5211,7 +7922,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -5229,6 +7940,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -5258,6 +7977,74 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -5270,7 +8057,7 @@ exitCode:: ExitStatus.undefined ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", - "./src/fileNotFound.d.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -5300,14 +8087,1011 @@ exitCode:: ExitStatus.undefined }, { "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12531 +} + + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:08 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:02:15 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,4,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[3,1],[4,1],[15,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,17,18,16,20,23,22,21,25,24,14,26,6],"filesByName":[[15,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filenotfound.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts", + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.ts", + "Full" + ], + [ + "./src/externalthingnotpresent.ts", + "Full" + ], + [ + "./src/filenotfound.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" } } ] } }, "version": "FakeTSVersion", - "size": 8692 + "size": 10211 } + +Change:: Write .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] +export function externalThing1() { return 10; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:18 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +error TS5055: Cannot write file '/user/username/projects/myproject/src/externalThing.d.ts' because it would overwrite input file. + +[12:02:19 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThing.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index b402981ea42eb..6938cad1d6694 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -2,11 +2,15 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } @@ -32,6 +36,9 @@ function globalAnotherFileWithSameReferenes() { } //// [/user/username/projects/myproject/src/globalFilePresent.ts] function globalSomething() { return 10; } +//// [/user/username/projects/myproject/src/externalThing.d.ts] +export function externalThing1(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -49,18 +56,23 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:39 AM] Starting compilation in watch mode... +[12:00:41 AM] Starting compilation in watch mode... src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -76,12 +88,18 @@ Output:: 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:40 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:00:42 AM] Found 6 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json @@ -91,12 +109,13 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 2 FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -112,6 +131,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -149,13 +170,18 @@ globalSomething(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:43 AM] File change detected. Starting incremental compilation... +[12:00:45 AM] File change detected. Starting incremental compilation... src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -171,16 +197,22 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:49 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:00:51 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -196,6 +228,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -220,7 +254,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -228,6 +262,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -237,6 +272,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -246,11 +282,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -268,8 +355,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -291,7 +381,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -306,7 +396,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -320,7 +411,8 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -355,7 +447,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -369,12 +461,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -384,6 +500,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -407,6 +531,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -431,7 +623,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -448,7 +640,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -467,7 +659,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -490,7 +682,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -508,7 +700,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -517,7 +709,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -531,6 +723,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -554,18 +754,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -618,12 +887,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6049 + "size": 9669 } @@ -648,10 +979,11 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:56 AM] File change detected. Starting incremental compilation... +[12:00:58 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -660,16 +992,64 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -685,16 +1065,22 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:03 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:05 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -711,6 +1097,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -737,7 +1125,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -745,6 +1133,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -755,6 +1144,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -765,11 +1155,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -792,8 +1233,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -819,7 +1263,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -834,7 +1278,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -849,7 +1294,8 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -884,7 +1330,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -898,12 +1344,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -913,6 +1383,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -936,6 +1414,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -960,7 +1506,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -977,7 +1523,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -996,7 +1542,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1019,7 +1565,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1038,7 +1584,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -1057,7 +1603,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1066,7 +1612,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1080,6 +1626,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1103,18 +1657,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1168,12 +1791,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6564 + "size": 10182 } @@ -1187,10 +1872,11 @@ function globalSomething2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:06 AM] File change detected. Starting incremental compilation... +[12:01:08 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -1199,31 +1885,85 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:13 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:15 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1241,6 +1981,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -1269,7 +2011,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1277,6 +2019,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1287,6 +2030,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1298,11 +2042,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1325,8 +2120,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -1356,7 +2154,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -1371,7 +2169,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1386,7 +2185,8 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1421,7 +2221,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1435,12 +2235,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1450,6 +2274,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1473,6 +2305,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1497,7 +2397,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -1514,7 +2414,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1533,7 +2433,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -1557,7 +2457,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1580,7 +2480,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1599,7 +2499,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -1618,7 +2518,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -1627,7 +2527,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1641,6 +2541,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1664,18 +2572,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } - ] + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1701,12 +2678,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6568 + "size": 10184 } @@ -1716,16 +2755,19 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:16 AM] File change detected. Starting incremental compilation... +[12:01:18 AM] File change detected. Starting incremental compilation... Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -1734,26 +2776,76 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:23 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:25 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1771,6 +2863,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -1799,7 +2893,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1807,6 +2901,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1817,6 +2912,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1828,11 +2924,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1855,8 +3002,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -1886,7 +3036,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -1901,7 +3051,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1916,7 +3067,8 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1951,7 +3103,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1965,12 +3117,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1980,6 +3156,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2003,6 +3187,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2027,7 +3279,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2044,7 +3296,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2063,7 +3315,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2087,7 +3339,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2110,7 +3362,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2129,7 +3381,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2148,7 +3400,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -2157,7 +3409,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -2171,6 +3423,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2194,18 +3454,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2231,12 +3560,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6594 + "size": 10208 } @@ -2246,7 +3637,9 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); //// [/user/username/projects/myproject/src/newFile.ts] export function foo() { return 20; } @@ -2257,10 +3650,11 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:28 AM] File change detected. Starting incremental compilation... +[12:01:30 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -2269,8 +3663,48 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. @@ -2278,26 +3712,40 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:35 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:37 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2316,6 +3764,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -2346,7 +3796,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2354,6 +3804,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2365,6 +3816,7 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2377,11 +3829,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2397,6 +3900,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -2408,8 +3912,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -2442,7 +3949,7 @@ exitCode:: ExitStatus.undefined "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -2457,7 +3964,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2473,6 +3981,7 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -2508,7 +4017,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2522,12 +4031,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2537,6 +4070,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2560,6 +4101,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2584,7 +4193,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -2601,7 +4210,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2620,7 +4229,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2644,7 +4253,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2667,7 +4276,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2686,7 +4295,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2705,7 +4314,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -2724,7 +4333,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2733,7 +4342,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -2751,6 +4360,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2783,18 +4400,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2822,6 +4508,68 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -2832,7 +4580,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 7104 + "size": 10718 } @@ -2846,31 +4594,86 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:38 AM] File change detected. Starting incremental compilation... +[12:01:40 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -[12:01:51 AM] Found 0 errors. Watching for file changes. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:47 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2889,6 +4692,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -2921,50 +4726,16 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/anotherFileReusingResolution.ts", - "./src/types.ts", - "./src/fileWithRef.ts", - "./src/globalFilePresent.ts", - "./src/globalFileNotFound.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalNewFile.ts", - "./src/globalMain.ts", - "./src/newFile.ts", - "./src/main.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 1535, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 558, - "kind": "text" - } - ] - } - }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2977,6 +4748,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2984,12 +4756,63 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -3006,6 +4829,7 @@ exitCode:: ExitStatus.undefined [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -3020,8 +4844,11 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -3054,7 +4881,7 @@ exitCode:: ExitStatus.undefined "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -3070,7 +4897,8 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3087,6 +4915,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -3122,7 +4951,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -3151,7 +4980,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -3161,13 +4990,37 @@ exitCode:: ExitStatus.undefined ] }, { - "fileName": "./src/anotherFileReusingResolution.ts", - "originalFileName": "./src/anotherFileReusingResolution.ts", - "path": "./src/anotherfilereusingresolution.ts", - "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", "flags": 0, - "imports": [ + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ { "kind": 10, "text": "./filePresent" @@ -3175,6 +5028,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3195,6 +5056,74 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3219,7 +5148,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -3236,7 +5165,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3255,7 +5184,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -3279,7 +5208,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3302,7 +5231,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -3321,7 +5250,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -3340,7 +5269,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3359,7 +5288,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -3368,7 +5297,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3386,6 +5315,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3415,18 +5352,87 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -3452,6 +5458,68 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -3462,150 +5530,8 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 7866 -} - -//// [/user/username/projects/myproject/outFile.js] -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - - -//// [/user/username/projects/myproject/outFile.d.ts] -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/fileNotFound" { - export function something2(): number; -} -declare module "src/anotherFileReusingResolution" { } -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } - - -//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/myproject/outFile.js ----------------------------------------------------------------------- -text: (0-1535) -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - -====================================================================== -====================================================================== -File:: /user/username/projects/myproject/outFile.d.ts ----------------------------------------------------------------------- -text: (0-558) -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/fileNotFound" { - export function something2(): number; + "size": 11002 } -declare module "src/anotherFileReusingResolution" { } -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } - -====================================================================== Change:: Delete file that could not be resolved @@ -3618,18 +5544,110 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound. Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:53 AM] File change detected. Starting incremental compilation... +[12:01:49 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:54 AM] Found 0 errors. Watching for file changes. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:56 AM] Found 4 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -3659,3 +5677,2251 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"filesByName":[[24,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/filenotfound.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10683 +} + + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:01:59 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:02:06 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"filesByName":[[26,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/filenotfound.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 8792 +} + + +Change:: Write .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] +export function externalThing1() { return 10; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:09 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:02:16 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":3,"file":15,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,20,18,16,21,24,23,22,26,25,15,27,7],"filesByName":[[28,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[20,30]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/filenotfound.ts", + "./src/fileNotFound.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 9076 +} + diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index a77dca0a27192..36bd7a0964346 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -2,11 +2,15 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } @@ -32,6 +36,9 @@ function globalAnotherFileWithSameReferenes() { } //// [/user/username/projects/myproject/src/globalFilePresent.ts] function globalSomething() { return 10; } +//// [/user/username/projects/myproject/src/externalThing.d.ts] +export function externalThing1(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -49,18 +56,23 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:39 AM] Starting compilation in watch mode... +[12:00:41 AM] Starting compilation in watch mode... src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -76,12 +88,18 @@ Output:: 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:40 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:00:42 AM] Found 6 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json @@ -91,12 +109,13 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 2 FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -112,6 +131,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -149,13 +170,18 @@ globalSomething(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:43 AM] File change detected. Starting incremental compilation... +[12:00:45 AM] File change detected. Starting incremental compilation... src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -171,16 +197,22 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:49 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:00:51 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -192,6 +224,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -205,6 +238,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -229,7 +264,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -237,6 +272,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -246,6 +282,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -255,11 +292,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -279,8 +367,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -308,7 +400,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" } }, @@ -323,7 +415,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -337,7 +430,8 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -353,9 +447,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -371,6 +474,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -381,6 +492,10 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -441,7 +556,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -455,12 +570,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -470,6 +609,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -493,6 +640,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -517,7 +732,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -534,7 +749,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -553,7 +768,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -576,7 +791,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -594,7 +809,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -603,7 +818,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -617,6 +832,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -640,18 +863,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -704,12 +996,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7078 + "size": 11178 } @@ -734,10 +1088,11 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:56 AM] File change detected. Starting incremental compilation... +[12:00:58 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -746,16 +1101,64 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -771,16 +1174,22 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:03 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:05 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -793,6 +1202,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -807,6 +1217,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -833,7 +1245,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[9,1],[8,1],[10,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[10,1],[9,1],[11,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -841,6 +1253,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -851,6 +1264,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -861,11 +1275,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -890,8 +1355,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -924,7 +1393,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" } }, @@ -939,7 +1408,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -954,7 +1424,8 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -970,9 +1441,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -989,6 +1469,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -999,6 +1487,10 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -1063,7 +1555,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1077,12 +1569,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1092,6 +1608,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1115,6 +1639,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1139,7 +1731,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -1156,7 +1748,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1175,7 +1767,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1198,7 +1790,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1217,7 +1809,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -1236,7 +1828,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1245,7 +1837,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1259,6 +1851,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1282,18 +1882,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1347,12 +2016,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7695 + "size": 11793 } @@ -1366,10 +2097,11 @@ function globalSomething2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:06 AM] File change detected. Starting incremental compilation... +[12:01:08 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -1378,31 +2110,85 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:13 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:15 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1416,6 +2202,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1431,6 +2218,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -1459,7 +2248,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1467,6 +2256,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1477,6 +2267,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1488,11 +2279,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1517,8 +2359,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -1556,7 +2402,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" } }, @@ -1571,7 +2417,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1586,7 +2433,8 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1602,9 +2450,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -1622,6 +2479,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -1632,6 +2497,10 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -1700,7 +2569,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1714,12 +2583,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1729,7 +2622,15 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" - } + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } ], "resolvedModules": [ [ @@ -1752,6 +2653,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1776,7 +2745,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -1793,7 +2762,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1812,7 +2781,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -1836,7 +2805,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1859,7 +2828,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1878,7 +2847,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -1897,7 +2866,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -1906,7 +2875,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1920,6 +2889,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1943,18 +2920,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1980,12 +3026,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7870 + "size": 11966 } @@ -1995,16 +3103,19 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:16 AM] File change detected. Starting incremental compilation... +[12:01:18 AM] File change detected. Starting incremental compilation... Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -2013,26 +3124,76 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:23 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:25 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2051,6 +3212,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -2079,7 +3242,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2087,6 +3250,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2097,6 +3261,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2108,11 +3273,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2137,8 +3353,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -2176,7 +3396,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -2191,7 +3411,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2206,7 +3427,8 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2222,9 +3444,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -2242,6 +3473,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -2252,6 +3491,10 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -2320,7 +3563,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2334,12 +3577,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2349,6 +3616,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2372,6 +3647,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2396,7 +3739,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2413,7 +3756,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2432,7 +3775,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2456,7 +3799,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2479,7 +3822,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2498,7 +3841,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2517,7 +3860,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -2526,7 +3869,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -2540,6 +3883,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2563,18 +3914,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2600,12 +4020,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7896 + "size": 11990 } @@ -2615,7 +4097,9 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); //// [/user/username/projects/myproject/src/newFile.ts] export function foo() { return 20; } @@ -2626,10 +4110,11 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:28 AM] File change detected. Starting incremental compilation... +[12:01:30 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -2638,8 +4123,48 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. @@ -2647,26 +4172,40 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:35 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:37 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2687,6 +4226,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -2717,7 +4258,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[12,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2725,6 +4266,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2736,6 +4278,7 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2748,11 +4291,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2768,6 +4362,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -2781,8 +4376,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -2824,7 +4423,7 @@ exitCode:: ExitStatus.undefined "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -2839,7 +4438,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2855,6 +4455,7 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -2871,9 +4472,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -2891,6 +4501,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -2902,6 +4520,10 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -2974,7 +4596,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2988,12 +4610,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3003,6 +4649,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3026,6 +4680,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3050,7 +4772,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -3067,7 +4789,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3086,7 +4808,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3110,7 +4832,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3133,7 +4855,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3152,7 +4874,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3171,7 +4893,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3190,7 +4912,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3199,7 +4921,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3217,11 +4939,19 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ - "./newFile", + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -3249,18 +4979,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3288,6 +5087,68 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -3298,7 +5159,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8465 + "size": 12559 } @@ -3312,103 +5173,86 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:38 AM] File change detected. Starting incremental compilation... +[12:01:40 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/anotherFileReusingResolution.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/filePresent.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/filePresent.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileWithRef.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileWithRef.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFilePresent.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFilePresent.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalMain.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalMain.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/main.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/main.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/types.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/types.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalNewFile.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalNewFile.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFileNotFound.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFileNotFound.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:02:33 AM] Found 0 errors. Watching for file changes. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:47 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -3430,6 +5274,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -3462,7 +5308,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3471,6 +5317,7 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -3483,6 +5330,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -3490,12 +5338,63 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -3512,6 +5411,7 @@ exitCode:: ExitStatus.undefined [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -3529,8 +5429,12 @@ exitCode:: ExitStatus.undefined "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -3572,7 +5476,7 @@ exitCode:: ExitStatus.undefined "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -3588,7 +5492,8 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3605,13 +5510,27 @@ exitCode:: ExitStatus.undefined "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -3620,10 +5539,76 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - "./src/main.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/newfile.ts", "./src/types.ts" ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.ts", + "Full" + ], + [ + "./src/filenotfound.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], "peristedProgram": { "files": [ { @@ -3655,7 +5640,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -3684,7 +5669,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -3693,12 +5678,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3708,6 +5717,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3728,6 +5745,74 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3752,7 +5837,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -3769,7 +5854,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3788,7 +5873,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -3812,7 +5897,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3835,7 +5920,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -3854,7 +5939,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -3873,7 +5958,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3892,7 +5977,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -3901,7 +5986,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3919,6 +6004,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3948,18 +6041,87 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -3985,6 +6147,68 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -3995,163 +6219,1084 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8220 + "size": 12429 } -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); +Change:: Delete file that could not be resolved -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] -export {}; - +Input:: +//// [/user/username/projects/myproject/src/fileNotFound.ts] deleted -//// [/user/username/projects/myproject/src/filePresent.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:01:49 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:56 AM] Found 4 errors. Watching for file changes. + -//// [/user/username/projects/myproject/src/filePresent.d.ts] -export declare function something(): number; - - -//// [/user/username/projects/myproject/src/fileWithRef.js] -/// - - -//// [/user/username/projects/myproject/src/fileWithRef.d.ts] -/// - - -//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] -/// -/// -function globalAnotherFileWithSameReferenes() { } - - -//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] -/// -/// -declare function globalAnotherFileWithSameReferenes(): void; - - -//// [/user/username/projects/myproject/src/globalFilePresent.js] -function globalSomething() { return 10; } - - -//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] -declare function globalSomething(): number; - - -//// [/user/username/projects/myproject/src/globalMain.js] -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); - - -//// [/user/username/projects/myproject/src/globalMain.d.ts] -/// -/// -/// -declare function globalMain(): void; - - -//// [/user/username/projects/myproject/src/main.js] -define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - - -//// [/user/username/projects/myproject/src/main.d.ts] -export {}; - - -//// [/user/username/projects/myproject/src/types.js] - - -//// [/user/username/projects/myproject/src/types.d.ts] -interface SomeType { -} - - -//// [/user/username/projects/myproject/src/globalNewFile.js] -function globalFoo() { return 20; } - - -//// [/user/username/projects/myproject/src/globalNewFile.d.ts] -declare function globalFoo(): number; - - -//// [/user/username/projects/myproject/src/globalFileNotFound.js] -function globalSomething2() { return 20; } - - -//// [/user/username/projects/myproject/src/globalFileNotFound.d.ts] -declare function globalSomething2(): number; - - -//// [/user/username/projects/myproject/src/newFile.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts -//// [/user/username/projects/myproject/src/newFile.d.ts] -export declare function foo(): number; +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +FsWatches:: -//// [/user/username/projects/myproject/src/fileNotFound.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/src/fileNotFound.d.ts] -export declare function something2(): number; +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[4,1],[3,1],[14,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[14,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}}]}},"version":"FakeTSVersion"} +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filenotfound.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts", + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.ts", + "Full" + ], + [ + "./src/filenotfound.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12531 +} -Change:: Delete file that could not be resolved +Change:: Create external module file that could not be resolved Input:: -//// [/user/username/projects/myproject/src/fileNotFound.ts] deleted +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + Output:: -FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:02:35 AM] File change detected. Starting incremental compilation... +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:01:59 AM] File change detected. Starting incremental compilation... -FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -4159,21 +7304,22 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:02:42 AM] Found 2 errors. Watching for file changes. +[12:02:06 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/fileNotFound.d.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -4185,8 +7331,8 @@ Program files:: /user/username/projects/myproject/src/main.ts Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/fileNotFound.d.ts /user/username/projects/myproject/src/main.ts WatchedFiles:: @@ -4194,6 +7340,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -4214,8 +7362,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} -/user/username/projects/myproject/src/filenotfound.d.ts: - {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} FsWatches:: @@ -4226,7 +7374,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},"-14992185226-export declare function something2(): number;\n",{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[3,1],[4,1],[13,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"filesByName":[[24,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,4,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[3,1],[4,1],[15,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,17,18,16,20,23,22,21,25,24,14,26,6],"filesByName":[[15,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4234,8 +7382,9 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/filenotfound.d.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -4245,9 +7394,11 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./src/filenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileNotFound.d.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -4255,12 +7406,15 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/filenotfound.ts", - "./src/fileNotFound.ts" + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" ], [ "./src/types.ts" @@ -4276,6 +7430,8 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] ], @@ -4289,14 +7445,18 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, - "./src/filenotfound.d.ts": { - "version": "-14992185226-export declare function something2(): number;\n", - "signature": "-14992185226-export declare function something2(): number;\n" - }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10760962856-interface SomeType {\n}\n", @@ -4336,7 +7496,7 @@ exitCode:: ExitStatus.undefined "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -4351,7 +7511,9 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4367,6 +7529,8 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] }, @@ -4386,7 +7550,8 @@ exitCode:: ExitStatus.undefined } ] ], - "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -4416,12 +7581,56 @@ exitCode:: ExitStatus.undefined "Full" ], [ - "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "Full" + ], + [ + "./src/externalthingnotpresent.ts", + "Full" + ], + [ + "./src/filenotfound.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", "Full" ], [ "./src/main.ts", "Full" + ], + [ + "./src/newfile.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" ] ], "peristedProgram": { @@ -4455,7 +7664,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -4469,12 +7678,60 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -4484,6 +7741,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4504,6 +7769,28 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } ] ], "includeReasons": [ @@ -4513,20 +7800,6 @@ exitCode:: ExitStatus.undefined } ] }, - { - "fileName": "./src/fileNotFound.d.ts", - "originalFileName": "./src/fileNotFound.d.ts", - "path": "./src/filenotfound.d.ts", - "resolvedPath": "./src/filenotfound.d.ts", - "version": "-14992185226-export declare function something2(): number;\n", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -4542,7 +7815,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -4559,7 +7832,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -4578,7 +7851,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -4602,7 +7875,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -4625,7 +7898,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -4644,7 +7917,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -4663,7 +7936,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -4682,7 +7955,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -4691,7 +7964,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -4709,6 +7982,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4738,19 +8019,42 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", - "./src/fileNotFound.d.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -4778,6 +8082,22 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -4788,6 +8108,98 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8692 + "size": 10211 } + +Change:: Write .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] +export function externalThing1() { return 10; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:09 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +error TS5055: Cannot write file '/user/username/projects/myproject/src/externalThing.d.ts' because it would overwrite input file. + +[12:02:10 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThing.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index aec4dca5fa9f1..8a2ee1a74d43d 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -2,11 +2,15 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } @@ -32,6 +36,9 @@ function globalAnotherFileWithSameReferenes() { } //// [/user/username/projects/myproject/src/globalFilePresent.ts] function globalSomething() { return 10; } +//// [/user/username/projects/myproject/src/externalThing.d.ts] +export function externalThing1(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -51,7 +58,7 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:37 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -65,17 +72,73 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' does not exist. +File '/user/username/projects/myproject/src/externalThing.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThing' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -91,12 +154,18 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:42 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:00:44 AM] Found 6 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json @@ -106,12 +175,13 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 2 FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -127,6 +197,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -151,7 +223,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -159,6 +231,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -168,6 +241,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -177,11 +251,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -199,8 +324,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -222,7 +350,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -237,7 +365,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -251,7 +380,8 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -286,7 +416,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -300,12 +430,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -315,6 +469,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -338,6 +500,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -362,7 +592,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -379,7 +609,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -398,7 +628,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -421,7 +651,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -439,7 +669,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -448,7 +678,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -462,6 +692,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -485,18 +723,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -549,12 +856,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6015 + "size": 9635 } @@ -571,13 +940,18 @@ globalSomething(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:45 AM] File change detected. Starting incremental compilation... +[12:00:47 AM] File change detected. Starting incremental compilation... src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -593,16 +967,22 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:52 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:00:54 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -618,6 +998,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -642,7 +1024,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -650,6 +1032,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -659,6 +1042,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -668,11 +1052,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -690,8 +1125,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -713,7 +1151,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -728,7 +1166,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -742,7 +1181,8 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -777,7 +1217,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -791,12 +1231,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -806,6 +1270,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -829,6 +1301,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -853,7 +1393,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -870,7 +1410,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -889,7 +1429,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -912,7 +1452,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -930,7 +1470,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -939,7 +1479,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -953,6 +1493,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -976,18 +1524,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1040,12 +1657,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6049 + "size": 9669 } @@ -1070,10 +1749,11 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:59 AM] File change detected. Starting incremental compilation... +[12:01:01 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -1082,16 +1762,64 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -1107,16 +1835,22 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:06 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:08 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1133,6 +1867,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -1159,7 +1895,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1167,6 +1903,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1177,6 +1914,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1187,11 +1925,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1214,8 +2003,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -1241,7 +2033,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -1256,7 +2048,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1271,7 +2064,8 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1306,7 +2100,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1320,12 +2114,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1335,6 +2153,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1358,6 +2184,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1382,7 +2276,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -1399,7 +2293,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1418,7 +2312,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1441,7 +2335,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1460,7 +2354,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -1479,7 +2373,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1488,7 +2382,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1502,6 +2396,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1525,18 +2427,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 7 - } - ] + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1590,12 +2561,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6564 + "size": 10182 } @@ -1609,10 +2642,11 @@ function globalSomething2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:09 AM] File change detected. Starting incremental compilation... +[12:01:11 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -1621,31 +2655,85 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:16 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:18 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1663,6 +2751,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -1691,7 +2781,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1699,6 +2789,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1709,6 +2800,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1720,11 +2812,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1747,8 +2890,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -1778,7 +2924,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -1793,7 +2939,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1808,7 +2955,8 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1843,7 +2991,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1857,12 +3005,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1872,6 +3044,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1895,6 +3075,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1919,7 +3167,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -1936,7 +3184,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1955,7 +3203,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -1979,7 +3227,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2002,7 +3250,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2021,7 +3269,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2040,7 +3288,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -2049,7 +3297,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2063,6 +3311,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2086,18 +3342,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2123,12 +3448,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6568 + "size": 10184 } @@ -2138,16 +3525,19 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:19 AM] File change detected. Starting incremental compilation... +[12:01:21 AM] File change detected. Starting incremental compilation... Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -2156,26 +3546,76 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:26 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:28 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2193,6 +3633,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -2221,7 +3663,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2229,6 +3671,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2239,6 +3682,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2250,11 +3694,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2277,8 +3772,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -2308,7 +3806,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -2323,7 +3821,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2338,7 +3837,8 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2373,7 +3873,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2387,12 +3887,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2402,6 +3926,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2425,6 +3957,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2449,7 +4049,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2466,7 +4066,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2485,7 +4085,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2509,7 +4109,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2532,7 +4132,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2551,7 +4151,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2570,7 +4170,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -2579,7 +4179,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -2593,6 +4193,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2616,18 +4224,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2653,12 +4330,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6594 + "size": 10208 } @@ -2668,7 +4407,9 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); //// [/user/username/projects/myproject/src/newFile.ts] export function foo() { return 20; } @@ -2679,10 +4420,11 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:31 AM] File change detected. Starting incremental compilation... +[12:01:33 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -2691,8 +4433,48 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. @@ -2700,26 +4482,40 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:38 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:40 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2738,6 +4534,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -2768,7 +4566,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2776,6 +4574,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2787,6 +4586,7 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2799,11 +4599,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2819,6 +4670,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -2830,8 +4682,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -2864,7 +4719,7 @@ exitCode:: ExitStatus.undefined "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -2879,7 +4734,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2895,6 +4751,7 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -2930,7 +4787,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2944,12 +4801,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2959,6 +4840,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2982,6 +4871,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3006,7 +4963,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -3023,7 +4980,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3042,7 +4999,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3066,7 +5023,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3089,7 +5046,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3108,7 +5065,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3127,7 +5084,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3146,7 +5103,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3155,7 +5112,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3173,6 +5130,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3205,18 +5170,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3244,6 +5278,68 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -3254,7 +5350,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 7104 + "size": 10718 } @@ -3268,31 +5364,86 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:41 AM] File change detected. Starting incremental compilation... +[12:01:43 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -[12:01:54 AM] Found 0 errors. Watching for file changes. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:50 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -3311,6 +5462,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -3343,50 +5496,16 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./src/filePresent.ts", - "./src/fileNotFound.ts", - "./src/anotherFileReusingResolution.ts", - "./src/types.ts", - "./src/fileWithRef.ts", - "./src/globalFilePresent.ts", - "./src/globalFileNotFound.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalNewFile.ts", - "./src/globalMain.ts", - "./src/newFile.ts", - "./src/main.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 1535, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 558, - "kind": "text" - } - ] - } - }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -3399,6 +5518,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -3406,12 +5526,63 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -3428,6 +5599,7 @@ exitCode:: ExitStatus.undefined [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -3442,8 +5614,11 @@ exitCode:: ExitStatus.undefined "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -3476,7 +5651,7 @@ exitCode:: ExitStatus.undefined "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -3492,7 +5667,8 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3509,6 +5685,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -3544,7 +5721,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -3573,7 +5750,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -3582,12 +5759,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3597,6 +5798,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3617,6 +5826,74 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3641,7 +5918,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -3658,7 +5935,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3677,7 +5954,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -3701,7 +5978,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3724,7 +6001,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -3743,7 +6020,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -3762,7 +6039,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3781,7 +6058,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -3790,7 +6067,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3808,6 +6085,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3837,18 +6122,87 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -3874,6 +6228,68 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -3884,150 +6300,8 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 7866 -} - -//// [/user/username/projects/myproject/outFile.js] -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - - -//// [/user/username/projects/myproject/outFile.d.ts] -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/fileNotFound" { - export function something2(): number; -} -declare module "src/anotherFileReusingResolution" { } -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } - - -//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/myproject/outFile.js ----------------------------------------------------------------------- -text: (0-1535) -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/fileNotFound", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - -====================================================================== -====================================================================== -File:: /user/username/projects/myproject/outFile.d.ts ----------------------------------------------------------------------- -text: (0-558) -declare module "src/filePresent" { - export function something(): number; + "size": 11002 } -declare module "src/fileNotFound" { - export function something2(): number; -} -declare module "src/anotherFileReusingResolution" { } -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } - -====================================================================== Change:: Delete file that could not be resolved @@ -4040,18 +6314,110 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound. Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:56 AM] File change detected. Starting incremental compilation... +[12:01:52 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:57 AM] Found 0 errors. Watching for file changes. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:59 AM] Found 4 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +No cached semantic diagnostics in the builder:: WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -4081,3 +6447,2251 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"filesByName":[[24,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/filenotfound.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 5 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 7 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10683 +} + + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:02 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:02:09 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"filesByName":[[26,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/filenotfound.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 8792 +} + + +Change:: Write .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] +export function externalThing1() { return 10; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:12 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:02:19 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":3,"file":15,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,20,18,16,21,24,23,22,26,25,15,27,7],"filesByName":[[28,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[20,30]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/filenotfound.ts", + "./src/fileNotFound.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 9076 +} + diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index f196dbb918a62..83cfdeaa64b3d 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -2,11 +2,15 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } @@ -32,6 +36,9 @@ function globalAnotherFileWithSameReferenes() { } //// [/user/username/projects/myproject/src/globalFilePresent.ts] function globalSomething() { return 10; } +//// [/user/username/projects/myproject/src/externalThing.d.ts] +export function externalThing1(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -51,7 +58,7 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:37 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -65,17 +72,73 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' does not exist. +File '/user/username/projects/myproject/src/externalThing.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './filePresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './filePresent' was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThing' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -91,12 +154,18 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:42 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:00:44 AM] Found 6 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json @@ -106,12 +175,13 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 2 FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -123,6 +193,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -136,6 +207,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -160,7 +233,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -168,6 +241,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -177,6 +251,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -186,11 +261,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -210,9 +336,13 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -239,8 +369,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -254,7 +384,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -268,12 +399,14 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -287,7 +420,8 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -302,9 +436,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -320,6 +463,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -330,6 +481,10 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -390,7 +545,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -404,12 +559,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -419,6 +598,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -442,6 +629,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -466,7 +721,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -483,7 +738,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -502,7 +757,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -525,7 +780,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -543,7 +798,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -552,7 +807,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -566,6 +821,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -589,18 +852,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -653,12 +985,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6424 + "size": 10525 } @@ -675,13 +1069,18 @@ globalSomething(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:45 AM] File change detected. Starting incremental compilation... +[12:00:47 AM] File change detected. Starting incremental compilation... src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -697,16 +1096,22 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:52 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:00:54 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -718,6 +1123,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -731,6 +1137,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -755,7 +1163,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[8,1],[9,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -763,6 +1171,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -772,6 +1181,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -781,11 +1191,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -805,8 +1266,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -834,7 +1299,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" } }, @@ -849,7 +1314,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -863,7 +1329,8 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -879,9 +1346,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -897,6 +1373,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -907,6 +1391,10 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -967,7 +1455,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -981,12 +1469,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -996,6 +1508,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1019,6 +1539,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1043,7 +1631,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -1060,7 +1648,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1079,7 +1667,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1102,7 +1690,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1120,7 +1708,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1129,7 +1717,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1143,6 +1731,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1166,18 +1762,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1230,12 +1895,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7078 + "size": 11178 } @@ -1260,10 +1987,11 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:59 AM] File change detected. Starting incremental compilation... +[12:01:01 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -1272,16 +2000,64 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -1297,16 +2073,22 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:06 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:08 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1319,6 +2101,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1333,6 +2116,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -1359,7 +2144,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[7,1],[6,1],[9,1],[8,1],[10,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[10,1],[9,1],[11,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1367,6 +2152,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1377,6 +2163,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1387,11 +2174,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1416,8 +2254,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -1450,7 +2292,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" } }, @@ -1465,7 +2307,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1480,7 +2323,8 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1496,9 +2340,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -1515,6 +2368,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -1525,6 +2386,10 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -1589,7 +2454,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1603,12 +2468,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1618,10 +2507,18 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ "./filePresent", { "resolvedModule": { @@ -1641,6 +2538,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1665,7 +2630,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -1682,7 +2647,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1701,7 +2666,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1724,7 +2689,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1743,7 +2708,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -1762,7 +2727,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1771,7 +2736,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1785,6 +2750,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1808,18 +2781,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1873,12 +2915,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7695 + "size": 11793 } @@ -1892,10 +2996,11 @@ function globalSomething2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:09 AM] File change detected. Starting incremental compilation... +[12:01:11 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -1904,31 +3009,85 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:16 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:18 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1942,6 +3101,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1957,6 +3117,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -1985,7 +3147,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1993,6 +3155,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2003,6 +3166,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2014,11 +3178,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2043,8 +3258,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -2082,7 +3301,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" } }, @@ -2097,7 +3316,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2112,7 +3332,8 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2128,9 +3349,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -2148,6 +3378,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -2158,6 +3396,10 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -2226,7 +3468,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2240,12 +3482,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2255,6 +3521,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2278,6 +3552,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2302,7 +3644,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2319,7 +3661,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2338,7 +3680,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2362,7 +3704,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2385,7 +3727,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2404,7 +3746,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2423,7 +3765,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -2432,7 +3774,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2446,6 +3788,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2469,18 +3819,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2506,12 +3925,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7870 + "size": 11966 } @@ -2521,16 +4002,19 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:19 AM] File change detected. Starting incremental compilation... +[12:01:21 AM] File change detected. Starting incremental compilation... Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -2539,26 +4023,76 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:26 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:28 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2577,6 +4111,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -2605,7 +4141,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2613,6 +4149,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2623,6 +4160,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2634,11 +4172,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2663,8 +4252,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -2702,7 +4295,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -2717,7 +4310,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2732,7 +4326,8 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2748,9 +4343,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -2768,6 +4372,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -2778,6 +4390,10 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -2846,7 +4462,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2860,12 +4476,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2875,6 +4515,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2898,6 +4546,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2922,7 +4638,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2939,7 +4655,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2958,7 +4674,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2982,7 +4698,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3005,7 +4721,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3024,7 +4740,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3043,7 +4759,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3052,7 +4768,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3066,6 +4782,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3089,18 +4813,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3126,12 +4919,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7896 + "size": 11990 } @@ -3141,7 +4996,9 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); //// [/user/username/projects/myproject/src/newFile.ts] export function foo() { return 20; } @@ -3152,10 +5009,11 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:31 AM] File change detected. Starting incremental compilation... +[12:01:33 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -3164,8 +5022,48 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. @@ -3173,26 +5071,40 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:38 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:40 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -3213,6 +5125,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -3243,7 +5157,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"affectedFilesPendingEmit":[[3,1],[2,1],[5,1],[8,1],[7,1],[6,1],[10,1],[9,1],[12,1],[11,1],[4,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3251,6 +5165,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -3262,6 +5177,7 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -3274,11 +5190,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -3294,6 +5261,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -3307,8 +5275,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -3350,7 +5322,7 @@ exitCode:: ExitStatus.undefined "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -3365,7 +5337,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3381,6 +5354,7 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -3397,9 +5371,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -3417,6 +5400,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -3428,6 +5419,10 @@ exitCode:: ExitStatus.undefined "./src/anotherfilereusingresolution.ts", "Full" ], + [ + "./src/externalthing.d.ts", + "Full" + ], [ "./src/filepresent.ts", "Full" @@ -3500,7 +5495,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -3514,12 +5509,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3529,6 +5548,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3552,6 +5579,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3576,7 +5671,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -3593,7 +5688,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3612,7 +5707,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3636,7 +5731,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3659,7 +5754,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3678,7 +5773,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3697,7 +5792,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3716,7 +5811,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3725,7 +5820,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3743,6 +5838,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3775,18 +5878,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3814,6 +5986,68 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -3824,7 +6058,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8465 + "size": 12559 } @@ -3838,103 +6072,86 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:41 AM] File change detected. Starting incremental compilation... +[12:01:43 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/filePresent.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/filePresent.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/anotherFileReusingResolution.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/types.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/types.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileWithRef.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileWithRef.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFilePresent.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFilePresent.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalMain.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalMain.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/main.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/main.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalNewFile.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalNewFile.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFileNotFound.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFileNotFound.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:02:36 AM] Found 0 errors. Watching for file changes. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:50 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -3956,6 +6173,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -3988,7 +6207,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3997,6 +6216,7 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -4009,6 +6229,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -4016,12 +6237,63 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -4038,6 +6310,7 @@ exitCode:: ExitStatus.undefined [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -4055,8 +6328,12 @@ exitCode:: ExitStatus.undefined "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -4098,7 +6375,7 @@ exitCode:: ExitStatus.undefined "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -4114,7 +6391,8 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4131,13 +6409,27 @@ exitCode:: ExitStatus.undefined "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -4146,10 +6438,76 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - "./src/main.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/newfile.ts", "./src/types.ts" ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.ts", + "Full" + ], + [ + "./src/filenotfound.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], "peristedProgram": { "files": [ { @@ -4181,7 +6539,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -4210,7 +6568,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -4219,12 +6577,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -4234,6 +6616,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4254,15 +6644,83 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 0 - } - ] - }, + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -4278,7 +6736,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -4295,7 +6753,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -4314,7 +6772,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -4338,7 +6796,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -4361,7 +6819,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -4380,7 +6838,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -4399,7 +6857,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -4418,7 +6876,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -4427,7 +6885,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -4445,6 +6903,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4474,18 +6940,87 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -4511,6 +7046,68 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -4521,142 +7118,9 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8220 + "size": 12429 } -//// [/user/username/projects/myproject/src/filePresent.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); - - -//// [/user/username/projects/myproject/src/filePresent.d.ts] -export declare function something(): number; - - -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); - - -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] -export {}; - - -//// [/user/username/projects/myproject/src/types.js] - - -//// [/user/username/projects/myproject/src/types.d.ts] -interface SomeType { -} - - -//// [/user/username/projects/myproject/src/fileWithRef.js] -/// - - -//// [/user/username/projects/myproject/src/fileWithRef.d.ts] -/// - - -//// [/user/username/projects/myproject/src/globalFilePresent.js] -function globalSomething() { return 10; } - - -//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] -declare function globalSomething(): number; - - -//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] -/// -/// -function globalAnotherFileWithSameReferenes() { } - - -//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] -/// -/// -declare function globalAnotherFileWithSameReferenes(): void; - - -//// [/user/username/projects/myproject/src/globalMain.js] -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); - - -//// [/user/username/projects/myproject/src/globalMain.d.ts] -/// -/// -/// -declare function globalMain(): void; - - -//// [/user/username/projects/myproject/src/main.js] -define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - - -//// [/user/username/projects/myproject/src/main.d.ts] -export {}; - - -//// [/user/username/projects/myproject/src/globalNewFile.js] -function globalFoo() { return 20; } - - -//// [/user/username/projects/myproject/src/globalNewFile.d.ts] -declare function globalFoo(): number; - - -//// [/user/username/projects/myproject/src/globalFileNotFound.js] -function globalSomething2() { return 20; } - - -//// [/user/username/projects/myproject/src/globalFileNotFound.d.ts] -declare function globalSomething2(): number; - - -//// [/user/username/projects/myproject/src/newFile.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); - - -//// [/user/username/projects/myproject/src/newFile.d.ts] -export declare function foo(): number; - - -//// [/user/username/projects/myproject/src/fileNotFound.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something2 = void 0; - function something2() { return 20; } - exports.something2 = something2; -}); - - -//// [/user/username/projects/myproject/src/fileNotFound.d.ts] -export declare function something2(): number; - - Change:: Delete file that could not be resolved @@ -4668,38 +7132,91 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound. Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:02:38 AM] File change detected. Starting incremental compilation... +[12:01:52 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:02:45 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:59 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/fileNotFound.d.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -4712,7 +7229,6 @@ Program files:: Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/fileNotFound.d.ts /user/username/projects/myproject/src/main.ts WatchedFiles:: @@ -4720,6 +7236,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: @@ -4740,8 +7258,6 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} -/user/username/projects/myproject/src/filenotfound.d.ts: - {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} FsWatches:: @@ -4752,7 +7268,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},"-14992185226-export declare function something2(): number;\n",{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[3,1],[4,1],[13,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"filesByName":[[24,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[4,1],[3,1],[14,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[14,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4760,8 +7276,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", - "./src/filenotfound.d.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -4771,9 +7287,10 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./src/filenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileNotFound.d.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -4781,12 +7298,62 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/filenotfound.ts", - "./src/fileNotFound.ts" + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -4802,6 +7369,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -4815,14 +7383,14 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, - "./src/filenotfound.d.ts": { - "version": "-14992185226-export declare function something2(): number;\n", - "signature": "-14992185226-export declare function something2(): number;\n" - }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10760962856-interface SomeType {\n}\n", @@ -4862,7 +7430,7 @@ exitCode:: ExitStatus.undefined "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -4877,7 +7445,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4893,6 +7462,7 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -4909,10 +7479,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], - "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -4930,6 +7508,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -4942,12 +7528,52 @@ exitCode:: ExitStatus.undefined "Full" ], [ - "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "Full" + ], + [ + "./src/filenotfound.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", "Full" ], [ "./src/main.ts", "Full" + ], + [ + "./src/newfile.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" ] ], "peristedProgram": { @@ -4995,12 +7621,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -5010,6 +7660,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -5030,6 +7688,74 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -5039,20 +7765,6 @@ exitCode:: ExitStatus.undefined } ] }, - { - "fileName": "./src/fileNotFound.d.ts", - "originalFileName": "./src/fileNotFound.d.ts", - "path": "./src/filenotfound.d.ts", - "resolvedPath": "./src/filenotfound.d.ts", - "version": "-14992185226-export declare function something2(): number;\n", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -5217,7 +7929,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -5235,6 +7947,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -5264,6 +7984,74 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -5276,7 +8064,7 @@ exitCode:: ExitStatus.undefined ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", - "./src/fileNotFound.d.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -5306,14 +8094,1011 @@ exitCode:: ExitStatus.undefined }, { "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12531 +} + + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:02 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:02:09 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,4,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[3,1],[4,1],[15,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,17,18,16,20,23,22,21,25,24,14,26,6],"filesByName":[[15,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filenotfound.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts", + "./src/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.ts", + "Full" + ], + [ + "./src/externalthingnotpresent.ts", + "Full" + ], + [ + "./src/filenotfound.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilenotfound.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.ts", + "Full" + ], + [ + "./src/globalnewfile.ts", + "Full" + ], + [ + "./src/main.ts", + "Full" + ], + [ + "./src/newfile.ts", + "Full" + ], + [ + "./src/types.ts", + "Full" + ] + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" } } ] } }, "version": "FakeTSVersion", - "size": 8692 + "size": 10211 } + +Change:: Write .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] +export function externalThing1() { return 10; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:12 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +error TS5055: Cannot write file '/user/username/projects/myproject/src/externalThing.d.ts' because it would overwrite input file. + +[12:02:13 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThing.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 4338a0348f82a..bf80c05cfec0c 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -16,7 +16,12 @@ declare const console: { log(msg: any): void; }; //// [/src/project/src/anotherFileReusingResolution.ts] import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +//// [/src/project/src/externalThing.d.ts] +export function externalThing1(): number; //// [/src/project/src/filePresent.ts] export function something() { return 10; } @@ -42,7 +47,9 @@ function globalMain() { } //// [/src/project/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/src/project/src/types.ts] interface SomeType {} @@ -66,17 +73,61 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThing.ts' does not exist. +File '/src/project/src/externalThing.tsx' does not exist. +File '/src/project/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== ======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== Resolution for module './filePresent' was found in cache from location '/src/project/src'. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThing' was found in cache from location '/src/project/src'. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. 2 /// @@ -92,16 +143,22 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 4 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 6 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -153,7 +210,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":882,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":337,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":882,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":337,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -239,6 +296,7 @@ declare module "src/main" { } "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -248,6 +306,7 @@ declare module "src/main" { } "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -257,11 +316,46 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -279,8 +373,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -302,7 +399,7 @@ declare module "src/main" { } "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -316,7 +413,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -330,7 +428,8 @@ declare module "src/main" { } "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -365,7 +464,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -379,12 +478,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -394,6 +517,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -417,6 +548,58 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -441,7 +624,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -458,7 +641,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -477,7 +660,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -500,7 +683,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -518,7 +701,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -527,7 +710,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -541,6 +724,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -564,18 +755,71 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -628,12 +872,58 @@ declare module "src/main" { } "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6481 + "size": 9253 } @@ -649,6 +939,11 @@ Output:: 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. 2 /// @@ -664,16 +959,22 @@ Output:: 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 4 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 6 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -709,6 +1010,11 @@ Output:: 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. 2 /// @@ -724,16 +1030,22 @@ Output:: 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -Found 4 errors. + +Found 6 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -774,7 +1086,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":902,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":337,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":902,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":337,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -861,6 +1173,7 @@ declare module "src/main" { } "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -870,6 +1183,7 @@ declare module "src/main" { } "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -879,11 +1193,46 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -901,8 +1250,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -924,7 +1276,7 @@ declare module "src/main" { } "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -938,7 +1290,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -952,7 +1305,8 @@ declare module "src/main" { } "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -987,7 +1341,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1001,12 +1355,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1016,6 +1394,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1039,6 +1425,58 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1063,7 +1501,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -1080,7 +1518,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1099,7 +1537,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1122,7 +1560,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1140,7 +1578,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1149,7 +1587,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1163,6 +1601,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1186,18 +1632,71 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1250,12 +1749,58 @@ declare module "src/main" { } "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6515 + "size": 9287 } @@ -1277,6 +1822,7 @@ function globalFoo() { return 20; } Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. @@ -1285,16 +1831,52 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. 2 /// @@ -1310,16 +1892,22 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 4 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 6 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -1377,7 +1965,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":997,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":376,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":997,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":376,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1469,6 +2057,7 @@ declare module "src/main" { } "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1479,6 +2068,7 @@ declare module "src/main" { } "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1489,11 +2079,46 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1516,8 +2141,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -1543,7 +2171,7 @@ declare module "src/main" { } "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -1557,7 +2185,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1572,7 +2201,8 @@ declare module "src/main" { } "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1607,7 +2237,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1621,12 +2251,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1636,6 +2290,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1659,6 +2321,58 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1683,7 +2397,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -1700,7 +2414,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1719,7 +2433,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1742,7 +2456,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1761,7 +2475,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -1780,7 +2494,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1789,7 +2503,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1803,6 +2517,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1826,18 +2548,71 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1891,12 +2666,58 @@ declare module "src/main" { } "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7055 + "size": 9825 } @@ -1911,6 +2732,7 @@ function globalSomething2() { return 20; } Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. @@ -1919,31 +2741,73 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -2004,7 +2868,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1041,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1041,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -2099,6 +2963,7 @@ declare module "src/main" { } "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2109,6 +2974,7 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2120,11 +2986,46 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2147,8 +3048,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -2178,7 +3082,7 @@ declare module "src/main" { } "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -2192,7 +3096,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2207,7 +3112,8 @@ declare module "src/main" { } "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2242,7 +3148,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2256,12 +3162,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2271,6 +3201,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2294,6 +3232,58 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2318,7 +3308,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2335,7 +3325,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2354,7 +3344,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2378,7 +3368,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2401,7 +3391,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2420,7 +3410,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2439,7 +3429,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -2448,7 +3438,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2462,6 +3452,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2485,18 +3483,71 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2522,12 +3573,58 @@ declare module "src/main" { } "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7132 + "size": 9900 } @@ -2542,7 +3639,7 @@ exitCode:: ExitStatus.Success //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1041,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1041,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} @@ -2575,32 +3672,82 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThing.ts' does not exist. +File '/src/project/src/externalThing.tsx' does not exist. +File '/src/project/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== ======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== Resolution for module './filePresent' was found in cache from location '/src/project/src'. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThing' was found in cache from location '/src/project/src'. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -2617,7 +3764,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.d.ts] file written with same contents //// [/src/project/outFile.js] file written with same contents //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1041,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1041,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents @@ -2641,21 +3788,32 @@ Output:: 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -2703,7 +3861,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1061,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1061,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -2799,6 +3957,7 @@ declare module "src/main" { } "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2809,6 +3968,7 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2820,11 +3980,46 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2847,8 +4042,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -2878,7 +4076,7 @@ declare module "src/main" { } "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -2892,7 +4090,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2907,7 +4106,8 @@ declare module "src/main" { } "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2942,7 +4142,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2956,12 +4156,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2971,6 +4195,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2994,6 +4226,58 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3018,7 +4302,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3035,7 +4319,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3054,7 +4338,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3078,7 +4362,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3101,7 +4385,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3120,7 +4404,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3139,7 +4423,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3148,7 +4432,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3162,6 +4446,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3185,18 +4477,71 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3222,12 +4567,58 @@ declare module "src/main" { } "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7168 + "size": 9936 } @@ -3237,7 +4628,9 @@ Input:: //// [/src/project/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); @@ -3245,6 +4638,7 @@ Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. @@ -3253,26 +4647,64 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -3321,7 +4753,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -3418,6 +4850,7 @@ declare module "src/main" { } "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -3428,6 +4861,7 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -3439,11 +4873,46 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -3466,8 +4935,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -3497,7 +4969,7 @@ declare module "src/main" { } "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -3511,7 +4983,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3526,7 +4999,8 @@ declare module "src/main" { } "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -3561,7 +5035,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -3576,25 +5050,57 @@ declare module "src/main" { } ] }, { - "fileName": "./src/anotherFileReusingResolution.ts", - "originalFileName": "./src/anotherFileReusingResolution.ts", - "path": "./src/anotherfilereusingresolution.ts", - "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", "flags": 0, - "imports": [ + "includeReasons": [ { - "kind": 10, - "text": "./filePresent" + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 }, { - "kind": 10, - "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ - "./filePresent", + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", { "resolvedModule": { "resolvedFileName": "./src/filePresent.ts", @@ -3613,6 +5119,58 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3637,7 +5195,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3654,7 +5212,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3673,7 +5231,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3697,7 +5255,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3720,7 +5278,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3739,7 +5297,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3758,7 +5316,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3767,7 +5325,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3781,6 +5339,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3804,18 +5370,71 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3841,12 +5460,58 @@ declare module "src/main" { } "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7194 + "size": 9960 } @@ -3856,7 +5521,9 @@ Input:: //// [/src/project/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); //// [/src/project/src/newFile.ts] export function foo() { return 20; } @@ -3866,6 +5533,7 @@ export function foo() { return 20; } Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. @@ -3874,8 +5542,36 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. @@ -3883,26 +5579,40 @@ File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -3976,7 +5686,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1346,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":493,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1346,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":493,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -4084,6 +5794,7 @@ declare module "src/main" { } "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -4095,6 +5806,7 @@ declare module "src/main" { } "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -4107,11 +5819,46 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -4127,6 +5874,7 @@ declare module "src/main" { } ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -4138,8 +5886,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -4172,7 +5923,7 @@ declare module "src/main" { } "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -4186,7 +5937,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4202,6 +5954,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -4237,7 +5990,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -4251,12 +6004,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -4266,6 +6043,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4289,6 +6074,58 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -4313,7 +6150,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -4330,7 +6167,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -4349,7 +6186,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -4373,7 +6210,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -4396,7 +6233,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -4415,7 +6252,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -4434,7 +6271,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -4453,7 +6290,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -4462,7 +6299,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -4480,6 +6317,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4512,18 +6357,71 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -4551,6 +6449,52 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -4561,7 +6505,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 7723 + "size": 10489 } @@ -4576,24 +6520,70 @@ export function something2() { return 20; } Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== -exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/fileNotFound.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -4677,7 +6667,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -4797,6 +6787,7 @@ declare module "src/main" { } "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -4809,6 +6800,7 @@ declare module "src/main" { } "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -4816,12 +6808,47 @@ declare module "src/main" { } "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -4838,6 +6865,7 @@ declare module "src/main" { } [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -4852,8 +6880,11 @@ declare module "src/main" { } "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -4886,7 +6917,7 @@ declare module "src/main" { } "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -4901,7 +6932,8 @@ declare module "src/main" { } "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4918,6 +6950,7 @@ declare module "src/main" { } "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -4953,7 +6986,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -4982,7 +7015,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -4991,12 +7024,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -5006,6 +7063,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -5026,6 +7091,58 @@ declare module "src/main" { } "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -5050,7 +7167,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -5067,7 +7184,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -5086,7 +7203,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -5110,7 +7227,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -5133,7 +7250,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -5152,7 +7269,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -5171,7 +7288,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -5190,7 +7307,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -5199,7 +7316,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -5217,6 +7334,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -5246,18 +7371,71 @@ declare module "src/main" { } "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -5283,6 +7461,52 @@ declare module "src/main" { } "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -5293,7 +7517,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 8029 + "size": 10797 } @@ -5308,7 +7532,7 @@ exitCode:: ExitStatus.Success //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[]},"version":"FakeTSVersion"} @@ -5337,6 +7561,39 @@ File '/src/project/src/filePresent.ts' exist - use it as a name resolution resul Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThing.ts' does not exist. +File '/src/project/src/externalThing.tsx' does not exist. +File '/src/project/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. @@ -5347,14 +7604,34 @@ Resolution for module './filePresent' was found in cache from location '/src/pro ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== -exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +======== Resolving module 'externalThing' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThing' was found in cache from location '/src/project/src'. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/fileNotFound.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -5372,7 +7649,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.d.ts] file written with same contents //// [/src/project/outFile.js] file written with same contents //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents @@ -5383,7 +7660,9 @@ Input:: //// [/src/project/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something();something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something();something(); @@ -5393,14 +7672,56 @@ Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. -exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something();something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/fileNotFound.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -5465,7 +7786,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1630,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1630,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -5586,6 +7907,7 @@ declare module "src/main" { } "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -5598,6 +7920,7 @@ declare module "src/main" { } "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -5605,12 +7928,47 @@ declare module "src/main" { } "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -5627,6 +7985,7 @@ declare module "src/main" { } [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -5641,8 +8000,11 @@ declare module "src/main" { } "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -5675,7 +8037,7 @@ declare module "src/main" { } "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();" + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" } }, "options": { @@ -5690,7 +8052,8 @@ declare module "src/main" { } "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -5707,6 +8070,7 @@ declare module "src/main" { } "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -5742,7 +8106,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -5771,7 +8135,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -5780,12 +8144,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -5795,6 +8183,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -5815,6 +8211,58 @@ declare module "src/main" { } "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -5839,7 +8287,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -5856,7 +8304,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -5875,7 +8323,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -5899,7 +8347,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -5922,7 +8370,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -5941,7 +8389,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -5960,7 +8408,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -5979,7 +8427,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -5988,7 +8436,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", "flags": 0, "imports": [ { @@ -6006,6 +8454,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -6035,18 +8491,71 @@ declare module "src/main" { } "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -6072,6 +8581,52 @@ declare module "src/main" { } "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -6082,7 +8637,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 8053 + "size": 10821 } @@ -6096,30 +8651,73 @@ Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something();something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent";something();something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -6194,7 +8792,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1378,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":493,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"filesByName":[[22,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1378,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":493,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"filesByName":[[24,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -6303,6 +8901,7 @@ declare module "src/main" { } "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -6314,6 +8913,7 @@ declare module "src/main" { } "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -6323,11 +8923,46 @@ declare module "src/main" { } "./src/globalMain.ts", "./src/newFile.ts", "./src/filenotfound.ts", - "./src/fileNotFound.ts" + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -6343,6 +8978,7 @@ declare module "src/main" { } ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -6354,8 +8990,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -6388,7 +9027,7 @@ declare module "src/main" { } "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();" + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" } }, "options": { @@ -6402,7 +9041,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -6418,6 +9058,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -6453,7 +9094,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -6467,12 +9108,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -6482,6 +9147,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -6502,6 +9175,58 @@ declare module "src/main" { } "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -6526,7 +9251,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -6543,7 +9268,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -6562,7 +9287,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -6586,7 +9311,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -6609,7 +9334,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -6628,7 +9353,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -6647,7 +9372,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -6666,7 +9391,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -6675,7 +9400,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", "flags": 0, "imports": [ { @@ -6693,6 +9418,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -6722,18 +9455,71 @@ declare module "src/main" { } "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -6761,6 +9547,1821 @@ declare module "src/main" { } "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10478 +} + + + +Change:: Create external module file that could not be resolved +Input:: +//// [/src/project/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + + +Output:: +/lib/tsc --p src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + + +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1657,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":591,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"filesByName":[[26,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-1657) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-591) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1657, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 591, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/filenotfound.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 9470 +} + + + +Change:: Write .ts file that takes preference over resolved .d.ts file +Input:: +//// [/src/project/src/externalThing.ts] +export function externalThing1() { return 10; } + + + +Output:: +/lib/tsc --p src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/externalThing.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + + +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1926,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":679,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":3,"file":15,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,20,18,16,21,24,23,22,26,25,15,27,7],"filesByName":[[28,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[20,30]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-1926) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-679) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1926, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 679, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/filenotfound.ts", + "./src/fileNotFound.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -6771,6 +11372,6 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 7712 + "size": 9779 } diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 837d48d5ed1d4..845b0f37eb4a1 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -16,7 +16,12 @@ declare const console: { log(msg: any): void; }; //// [/src/project/src/anotherFileReusingResolution.ts] import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +//// [/src/project/src/externalThing.d.ts] +export function externalThing1(): number; //// [/src/project/src/filePresent.ts] export function something() { return 10; } @@ -42,7 +47,9 @@ function globalMain() { } //// [/src/project/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/src/project/src/types.ts] interface SomeType {} @@ -66,17 +73,61 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThing.ts' does not exist. +File '/src/project/src/externalThing.tsx' does not exist. +File '/src/project/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== ======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== Resolution for module './filePresent' was found in cache from location '/src/project/src'. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThing' was found in cache from location '/src/project/src'. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. 2 /// @@ -92,16 +143,22 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 4 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 6 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -113,6 +170,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -205,7 +263,7 @@ interface SomeType { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -213,6 +271,7 @@ interface SomeType { "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -222,6 +281,7 @@ interface SomeType { "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -231,11 +291,46 @@ interface SomeType { "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -255,9 +350,13 @@ interface SomeType { "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -284,8 +383,8 @@ interface SomeType { "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -298,7 +397,8 @@ interface SomeType { }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -312,12 +412,14 @@ interface SomeType { "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -331,7 +433,8 @@ interface SomeType { "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -346,9 +449,18 @@ interface SomeType { "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -364,6 +476,14 @@ interface SomeType { "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -400,7 +520,7 @@ interface SomeType { }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -414,12 +534,36 @@ interface SomeType { } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -429,6 +573,14 @@ interface SomeType { { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -452,6 +604,58 @@ interface SomeType { "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -476,7 +680,7 @@ interface SomeType { }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -493,7 +697,7 @@ interface SomeType { "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -512,7 +716,7 @@ interface SomeType { }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -535,7 +739,7 @@ interface SomeType { "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -553,7 +757,7 @@ interface SomeType { "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -562,7 +766,7 @@ interface SomeType { "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -576,6 +780,14 @@ interface SomeType { { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -599,18 +811,71 @@ interface SomeType { "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -663,12 +928,58 @@ interface SomeType { "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6432 + "size": 9678 } @@ -684,6 +995,11 @@ Output:: 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. 2 /// @@ -699,16 +1015,22 @@ Output:: 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 4 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 6 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -739,6 +1061,11 @@ Output:: 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. 2 /// @@ -754,16 +1081,22 @@ Output:: 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -Found 4 errors. + +Found 6 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -775,6 +1108,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -807,7 +1141,7 @@ globalSomething(); //// [/src/project/src/types.d.ts] file written with same contents //// [/src/project/src/types.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-19927227517-/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-19927227517-/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -815,6 +1149,7 @@ globalSomething(); "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -824,6 +1159,7 @@ globalSomething(); "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -833,11 +1169,46 @@ globalSomething(); "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -857,8 +1228,12 @@ globalSomething(); "version": "11598859296-export function something() { return 10; }", "signature": "-15062742831-export declare function something(): number;\r\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" }, "./src/types.ts": { @@ -886,7 +1261,7 @@ globalSomething(); "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" } }, @@ -900,7 +1275,8 @@ globalSomething(); }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -914,7 +1290,8 @@ globalSomething(); "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -930,9 +1307,18 @@ globalSomething(); "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -948,6 +1334,14 @@ globalSomething(); "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -984,7 +1378,7 @@ globalSomething(); }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -998,12 +1392,36 @@ globalSomething(); } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1013,6 +1431,14 @@ globalSomething(); { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1036,6 +1462,58 @@ globalSomething(); "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1060,7 +1538,7 @@ globalSomething(); }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -1077,7 +1555,7 @@ globalSomething(); "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1096,7 +1574,7 @@ globalSomething(); }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1119,7 +1597,7 @@ globalSomething(); "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1137,7 +1615,7 @@ globalSomething(); "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1146,7 +1624,7 @@ globalSomething(); "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1160,6 +1638,14 @@ globalSomething(); { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1183,18 +1669,71 @@ globalSomething(); "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1247,12 +1786,58 @@ globalSomething(); "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7108 + "size": 10353 } @@ -1274,6 +1859,7 @@ function globalFoo() { return 20; } Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. @@ -1282,16 +1868,52 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/src/project/src/globalFileNotFound.ts' not found. 2 /// @@ -1307,16 +1929,22 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 4 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 6 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -1329,6 +1957,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -1377,7 +2006,7 @@ function globalFoo() { return 20; } //// [/src/project/src/types.d.ts] file written with same contents //// [/src/project/src/types.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"604791887-/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"604791887-/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1385,6 +2014,7 @@ function globalFoo() { return 20; } "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1395,6 +2025,7 @@ function globalFoo() { return 20; } "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1405,11 +2036,46 @@ function globalFoo() { return 20; } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1434,8 +2100,12 @@ function globalFoo() { return 20; } "version": "11598859296-export function something() { return 10; }", "signature": "-15062742831-export declare function something(): number;\r\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" }, "./src/types.ts": { @@ -1468,7 +2138,7 @@ function globalFoo() { return 20; } "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" } }, @@ -1482,7 +2152,8 @@ function globalFoo() { return 20; } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1497,7 +2168,8 @@ function globalFoo() { return 20; } "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1513,9 +2185,18 @@ function globalFoo() { return 20; } "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -1532,6 +2213,14 @@ function globalFoo() { return 20; } "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -1568,7 +2257,7 @@ function globalFoo() { return 20; } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1582,12 +2271,36 @@ function globalFoo() { return 20; } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1597,11 +2310,19 @@ function globalFoo() { return 20; } { "kind": 10, "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ - "./filePresent", + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", { "resolvedModule": { "resolvedFileName": "./src/filePresent.ts", @@ -1620,6 +2341,58 @@ function globalFoo() { return 20; } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1644,7 +2417,7 @@ function globalFoo() { return 20; } }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -1661,7 +2434,7 @@ function globalFoo() { return 20; } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1680,7 +2453,7 @@ function globalFoo() { return 20; } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1703,7 +2476,7 @@ function globalFoo() { return 20; } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1722,7 +2495,7 @@ function globalFoo() { return 20; } }, { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -1741,7 +2514,7 @@ function globalFoo() { return 20; } "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1750,7 +2523,7 @@ function globalFoo() { return 20; } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1764,6 +2537,14 @@ function globalFoo() { return 20; } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1787,18 +2568,71 @@ function globalFoo() { return 20; } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1852,12 +2686,58 @@ function globalFoo() { return 20; } "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7721 + "size": 10964 } @@ -1872,6 +2752,7 @@ function globalSomething2() { return 20; } Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. @@ -1880,31 +2761,73 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -Found 2 errors. + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -1918,6 +2841,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -1967,7 +2891,7 @@ declare function globalMain(): void; //// [/src/project/src/types.d.ts] file written with same contents //// [/src/project/src/types.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1975,6 +2899,7 @@ declare function globalMain(): void; "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1985,6 +2910,7 @@ declare function globalMain(): void; "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1996,11 +2922,46 @@ declare function globalMain(): void; "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2025,8 +2986,12 @@ declare function globalMain(): void; "version": "11598859296-export function something() { return 10; }", "signature": "-15062742831-export declare function something(): number;\r\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" }, "./src/types.ts": { @@ -2064,7 +3029,7 @@ declare function globalMain(): void; "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" } }, @@ -2078,7 +3043,8 @@ declare function globalMain(): void; }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2093,7 +3059,8 @@ declare function globalMain(): void; "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2109,9 +3076,18 @@ declare function globalMain(): void; "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -2129,6 +3105,14 @@ declare function globalMain(): void; "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -2165,7 +3149,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2179,12 +3163,36 @@ declare function globalMain(): void; } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2194,6 +3202,14 @@ declare function globalMain(): void; { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2217,6 +3233,58 @@ declare function globalMain(): void; "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2241,7 +3309,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2258,7 +3326,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2277,7 +3345,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2301,7 +3369,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2324,7 +3392,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2343,7 +3411,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2362,7 +3430,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -2371,7 +3439,7 @@ declare function globalMain(): void; "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2385,6 +3453,14 @@ declare function globalMain(): void; { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2408,18 +3484,71 @@ declare function globalMain(): void; "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2445,12 +3574,58 @@ declare function globalMain(): void; "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7936 + "size": 11177 } @@ -2465,7 +3640,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5]},"version":"FakeTSVersion"} @@ -2498,32 +3673,82 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThing.ts' does not exist. +File '/src/project/src/externalThing.tsx' does not exist. +File '/src/project/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== ======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== Resolution for module './filePresent' was found in cache from location '/src/project/src'. ======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThing' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThing' was found in cache from location '/src/project/src'. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -2538,7 +3763,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents @@ -2561,21 +3786,32 @@ Output:: 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -2602,7 +3838,7 @@ globalSomething(); //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2610,6 +3846,7 @@ globalSomething(); "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2620,6 +3857,7 @@ globalSomething(); "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2631,11 +3869,46 @@ globalSomething(); "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2660,8 +3933,12 @@ globalSomething(); "version": "11598859296-export function something() { return 10; }", "signature": "-15062742831-export declare function something(): number;\r\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" }, "./src/types.ts": { @@ -2699,7 +3976,7 @@ globalSomething(); "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" } }, @@ -2713,7 +3990,8 @@ globalSomething(); }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2728,7 +4006,8 @@ globalSomething(); "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2744,9 +4023,18 @@ globalSomething(); "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -2764,6 +4052,14 @@ globalSomething(); "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -2800,7 +4096,7 @@ globalSomething(); }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2814,12 +4110,36 @@ globalSomething(); } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2829,6 +4149,14 @@ globalSomething(); { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2852,6 +4180,58 @@ globalSomething(); "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2876,7 +4256,7 @@ globalSomething(); }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2893,7 +4273,7 @@ globalSomething(); "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2912,7 +4292,7 @@ globalSomething(); }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2936,7 +4316,7 @@ globalSomething(); }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2959,7 +4339,7 @@ globalSomething(); "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2978,7 +4358,7 @@ globalSomething(); }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2997,7 +4377,7 @@ globalSomething(); "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3006,7 +4386,7 @@ globalSomething(); "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3020,7 +4400,15 @@ globalSomething(); { "kind": 10, "text": "./fileNotFound" - } + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } ], "resolvedModules": [ [ @@ -3043,18 +4431,71 @@ globalSomething(); "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3080,12 +4521,58 @@ globalSomething(); "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7972 + "size": 11213 } @@ -3095,7 +4582,9 @@ Input:: //// [/src/project/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); @@ -3103,6 +4592,7 @@ Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. @@ -3111,26 +4601,64 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -3155,7 +4683,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3163,6 +4691,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -3173,6 +4702,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -3184,11 +4714,46 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -3213,8 +4778,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "version": "11598859296-export function something() { return 10; }", "signature": "-15062742831-export declare function something(): number;\r\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" }, "./src/types.ts": { @@ -3252,7 +4821,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-4882119183-export {};\r\n" } }, @@ -3266,7 +4835,8 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3281,7 +4851,8 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -3297,9 +4868,18 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -3317,6 +4897,14 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -3353,7 +4941,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -3367,12 +4955,36 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3382,6 +4994,14 @@ define(["require", "exports", "./filePresent"], function (require, exports, file { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3405,6 +5025,58 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3429,7 +5101,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3446,7 +5118,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3465,7 +5137,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3489,7 +5161,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3512,7 +5184,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3531,7 +5203,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3550,7 +5222,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3559,7 +5231,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3573,6 +5245,14 @@ define(["require", "exports", "./filePresent"], function (require, exports, file { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3596,18 +5276,71 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3633,12 +5366,58 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7998 + "size": 11237 } @@ -3648,7 +5427,9 @@ Input:: //// [/src/project/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); //// [/src/project/src/newFile.ts] export function foo() { return 20; } @@ -3658,6 +5439,7 @@ export function foo() { return 20; } Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' does not exist. @@ -3666,8 +5448,36 @@ File '/src/project/src/fileNotFound.d.ts' does not exist. File '/src/project/src/fileNotFound.js' does not exist. File '/src/project/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. @@ -3675,26 +5485,40 @@ File '/src/project/src/newFile.ts' exist - use it as a name resolution result. ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was not resolved. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -3728,7 +5552,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3736,6 +5560,7 @@ define(["require", "exports"], function (require, exports) { "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -3747,6 +5572,7 @@ define(["require", "exports"], function (require, exports) { "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -3759,11 +5585,46 @@ define(["require", "exports"], function (require, exports) { "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -3779,6 +5640,7 @@ define(["require", "exports"], function (require, exports) { ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -3792,8 +5654,12 @@ define(["require", "exports"], function (require, exports) { "version": "11598859296-export function something() { return 10; }", "signature": "-15062742831-export declare function something(): number;\r\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" }, "./src/types.ts": { @@ -3835,7 +5701,7 @@ define(["require", "exports"], function (require, exports) { "signature": "-3405156953-export declare function foo(): number;\r\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-4882119183-export {};\r\n" } }, @@ -3849,7 +5715,8 @@ define(["require", "exports"], function (require, exports) { }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3865,6 +5732,7 @@ define(["require", "exports"], function (require, exports) { ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -3881,9 +5749,18 @@ define(["require", "exports"], function (require, exports) { "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -3901,6 +5778,14 @@ define(["require", "exports"], function (require, exports) { "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -3938,7 +5823,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -3952,12 +5837,36 @@ define(["require", "exports"], function (require, exports) { } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3967,6 +5876,14 @@ define(["require", "exports"], function (require, exports) { { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3990,6 +5907,58 @@ define(["require", "exports"], function (require, exports) { "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -4014,7 +5983,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -4031,7 +6000,7 @@ define(["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -4050,7 +6019,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -4074,7 +6043,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -4097,7 +6066,7 @@ define(["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -4116,7 +6085,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -4135,7 +6104,7 @@ define(["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -4154,7 +6123,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -4163,7 +6132,7 @@ define(["require", "exports"], function (require, exports) { "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -4181,6 +6150,14 @@ define(["require", "exports"], function (require, exports) { { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4213,18 +6190,71 @@ define(["require", "exports"], function (require, exports) { "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -4252,6 +6282,52 @@ define(["require", "exports"], function (require, exports) { "./src/fileNotFound.jsx" ] }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -4262,7 +6338,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 8562 + "size": 11801 } @@ -4277,25 +6353,71 @@ export function something2() { return 20; } Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== -exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] -Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: SafeModules -Program files:: -/lib/lib.d.ts -/src/project/src/filePresent.ts -/src/project/src/fileNotFound.ts -/src/project/src/anotherFileReusingResolution.ts +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.d.ts +/src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts /src/project/src/globalFilePresent.ts @@ -4331,7 +6453,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/src/main.d.ts] file written with same contents //// [/src/project/src/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4340,6 +6462,7 @@ define(["require", "exports"], function (require, exports) { "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -4352,6 +6475,7 @@ define(["require", "exports"], function (require, exports) { "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -4359,12 +6483,47 @@ define(["require", "exports"], function (require, exports) { "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -4381,6 +6540,7 @@ define(["require", "exports"], function (require, exports) { [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -4398,8 +6558,12 @@ define(["require", "exports"], function (require, exports) { "version": "-497034637-export function something2() { return 20; }", "signature": "-13705775197-export declare function something2(): number;\r\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" }, "./src/types.ts": { @@ -4441,7 +6605,7 @@ define(["require", "exports"], function (require, exports) { "signature": "-3405156953-export declare function foo(): number;\r\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-4882119183-export {};\r\n" } }, @@ -4456,7 +6620,8 @@ define(["require", "exports"], function (require, exports) { "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4473,13 +6638,27 @@ define(["require", "exports"], function (require, exports) { "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -4488,7 +6667,19 @@ define(["require", "exports"], function (require, exports) { "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - "./src/main.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/newfile.ts", "./src/types.ts" ], @@ -4523,7 +6714,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -4552,7 +6743,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -4561,12 +6752,36 @@ define(["require", "exports"], function (require, exports) { } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -4576,6 +6791,14 @@ define(["require", "exports"], function (require, exports) { { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4596,6 +6819,58 @@ define(["require", "exports"], function (require, exports) { "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -4620,7 +6895,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -4637,7 +6912,7 @@ define(["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -4656,7 +6931,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -4680,7 +6955,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -4703,7 +6978,7 @@ define(["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -4722,7 +6997,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -4741,7 +7016,7 @@ define(["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -4760,7 +7035,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -4769,7 +7044,7 @@ define(["require", "exports"], function (require, exports) { "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -4787,6 +7062,14 @@ define(["require", "exports"], function (require, exports) { { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4816,18 +7099,71 @@ define(["require", "exports"], function (require, exports) { "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -4853,6 +7189,52 @@ define(["require", "exports"], function (require, exports) { "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -4863,7 +7245,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 8417 + "size": 11666 } @@ -4878,7 +7260,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6]},"version":"FakeTSVersion"} @@ -4907,6 +7289,39 @@ File '/src/project/src/filePresent.ts' exist - use it as a name resolution resul Module resolution kind is not specified, using 'Classic'. File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThing.ts' does not exist. +File '/src/project/src/externalThing.tsx' does not exist. +File '/src/project/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== ======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/src/project/src/newFile.ts' exist - use it as a name resolution result. @@ -4917,14 +7332,34 @@ Resolution for module './filePresent' was found in cache from location '/src/pro ======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. ======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== -exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +======== Resolving module 'externalThing' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThing' was found in cache from location '/src/project/src'. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/fileNotFound.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -4940,7 +7375,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents @@ -4950,7 +7385,9 @@ Input:: //// [/src/project/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something();something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something();something(); @@ -4960,14 +7397,56 @@ Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. -exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something();something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: Completely Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts /src/project/src/fileNotFound.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -4994,7 +7473,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -5003,6 +7482,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "../../lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -5015,6 +7495,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -5022,12 +7503,47 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -5044,6 +7560,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -5061,8 +7578,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "version": "-497034637-export function something2() { return 20; }", "signature": "-13705775197-export declare function something2(): number;\r\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" }, "./src/types.ts": { @@ -5104,7 +7625,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "signature": "-3405156953-export declare function foo(): number;\r\n" }, "./src/main.ts": { - "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", "signature": "-4882119183-export {};\r\n" } }, @@ -5119,7 +7640,8 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -5136,13 +7658,27 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -5151,7 +7687,19 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - "./src/main.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/newfile.ts", "./src/types.ts" ], @@ -5186,7 +7734,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -5215,7 +7763,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -5224,12 +7772,36 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -5239,6 +7811,14 @@ define(["require", "exports", "./filePresent"], function (require, exports, file { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -5259,6 +7839,58 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -5283,7 +7915,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -5300,7 +7932,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -5319,7 +7951,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -5343,7 +7975,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -5366,7 +7998,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -5385,7 +8017,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -5404,7 +8036,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -5423,7 +8055,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -5432,7 +8064,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", "flags": 0, "imports": [ { @@ -5450,6 +8082,14 @@ define(["require", "exports", "./filePresent"], function (require, exports, file { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -5479,18 +8119,71 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -5518,15 +8211,61 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" - } - } - ] + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] } }, "version": "FakeTSVersion", - "size": 8441 + "size": 11690 } @@ -5540,30 +8279,73 @@ Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was not resolved. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something();something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -Found 2 errors. +5 import { externalThing2 } from "externalThingNotPresent";something();something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/fileNotFound.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/fileNotFound.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/fileNotFound.d.ts /src/project/src/types.ts @@ -5587,7 +8369,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/src/main.d.ts] file written with same contents //// [/src/project/src/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-4882119183-export {};\r\n"},"-13705775197-export declare function something2(): number;\r\n",{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[5],[7,8],[7,8,10],[2,12]],"referencedMap":[[3,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-13705775197-export declare function something2(): number;\r\n","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,16,14,17,20,19,18,22,21,13,23,5],"filesByName":[[24,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"-13705775197-export declare function something2(): number;\r\n",{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[6],[8,9],[8,9,11],[2,3,13]],"referencedMap":[[4,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,5,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-13705775197-export declare function something2(): number;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[17,16,18,15,19,22,21,20,24,23,14,25,6],"filesByName":[[26,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -5595,6 +8377,7 @@ Semantic diagnostics in builder refreshed for:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/filenotfound.d.ts", "./src/types.ts", @@ -5607,6 +8390,7 @@ Semantic diagnostics in builder refreshed for:: "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileNotFound.d.ts", "./src/fileWithRef.ts", @@ -5617,11 +8401,46 @@ Semantic diagnostics in builder refreshed for:: "./src/globalMain.ts", "./src/newFile.ts", "./src/filenotfound.ts", - "./src/fileNotFound.ts" + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -5637,6 +8456,7 @@ Semantic diagnostics in builder refreshed for:: ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -5650,8 +8470,12 @@ Semantic diagnostics in builder refreshed for:: "version": "11598859296-export function something() { return 10; }", "signature": "-15062742831-export declare function something(): number;\r\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" }, "./src/filenotfound.d.ts": { @@ -5697,7 +8521,7 @@ Semantic diagnostics in builder refreshed for:: "signature": "-3405156953-export declare function foo(): number;\r\n" }, "./src/main.ts": { - "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", "signature": "-4882119183-export {};\r\n" } }, @@ -5711,7 +8535,8 @@ Semantic diagnostics in builder refreshed for:: }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -5727,6 +8552,7 @@ Semantic diagnostics in builder refreshed for:: ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -5743,9 +8569,18 @@ Semantic diagnostics in builder refreshed for:: "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filenotfound.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -5764,6 +8599,14 @@ Semantic diagnostics in builder refreshed for:: "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -5801,7 +8644,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -5815,12 +8658,36 @@ Semantic diagnostics in builder refreshed for:: } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -5830,6 +8697,14 @@ Semantic diagnostics in builder refreshed for:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -5850,6 +8725,58 @@ Semantic diagnostics in builder refreshed for:: "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -5869,7 +8796,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 1 + "index": 2 } ] }, @@ -5888,7 +8815,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -5905,7 +8832,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -5924,7 +8851,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -5948,7 +8875,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -5971,7 +8898,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -5990,7 +8917,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -6009,7 +8936,7 @@ Semantic diagnostics in builder refreshed for:: "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -6028,7 +8955,7 @@ Semantic diagnostics in builder refreshed for:: }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -6037,7 +8964,7 @@ Semantic diagnostics in builder refreshed for:: "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "26360741061-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();something();", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", "flags": 0, "imports": [ { @@ -6055,6 +8982,14 @@ Semantic diagnostics in builder refreshed for:: { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -6084,18 +9019,71 @@ Semantic diagnostics in builder refreshed for:: "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -6124,6 +9112,1615 @@ Semantic diagnostics in builder refreshed for:: "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12108 +} + + + +Change:: Create external module file that could not be resolved +Input:: +//// [/src/project/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + + +Output:: +/lib/tsc --p src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + + +Found 2 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/fileNotFound.d.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/main.ts + + +//// [/src/project/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/src/project/src/anotherFileReusingResolution.js] file written with same contents +//// [/src/project/src/externalThingNotPresent.d.ts] +export declare function externalThing2(): number; + + +//// [/src/project/src/externalThingNotPresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); + + +//// [/src/project/src/main.d.ts] file written with same contents +//// [/src/project/src/main.js] file written with same contents +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16426931566-export declare function externalThing2(): number;\r\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"-13705775197-export declare function something2(): number;\r\n",{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,4,6,2,8,11,10,9,13,12,[15,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"-13705775197-export declare function something2(): number;\r\n","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[19,17,18,20,16,21,24,23,22,26,25,15,27,7],"filesByName":[[28,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.d.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.d.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/filenotfound.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-15062742831-export declare function something(): number;\r\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16426931566-export declare function externalThing2(): number;\r\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-4882119183-export {};\r\n" + }, + "./src/filenotfound.d.ts": { + "version": "-13705775197-export declare function something2(): number;\r\n", + "signature": "-13705775197-export declare function something2(): number;\r\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-3405156953-export declare function foo(): number;\r\n" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-13705775197-export declare function something2(): number;\r\n", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10630 +} + + + +Change:: Write .ts file that takes preference over resolved .d.ts file +Input:: +//// [/src/project/src/externalThing.ts] +export function externalThing1() { return 10; } + + + +Output:: +/lib/tsc --p src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +error TS5055: Cannot write file '/src/project/src/externalThing.d.ts' because it would overwrite input file. + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/externalThing.d.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/externalThing.ts +/src/project/src/fileNotFound.d.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/externalThing.ts + + +//// [/src/project/src/externalThing.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16426931566-export declare function externalThing2(): number;\r\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13126029071-export declare function externalThing1(): number;\r\n"},"-13705775197-export declare function something2(): number;\r\n",{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[8],[10,11],[10,11,13],[2,3,4,15]],"referencedMap":[[5,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,4,7,2,9,12,11,10,14,13,[16,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":22,"originalFileName":22,"path":7,"resolvedPath":7,"version":"-13705775197-export declare function something2(): number;\r\n","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[20,21,19,22,17,23,26,25,24,28,27,16,29,8],"filesByName":[[30,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":31,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[21,32]},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", + "./src/filenotfound.d.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/fileNotFound.d.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/filenotfound.ts", + "./src/fileNotFound.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-15062742831-export declare function something(): number;\r\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16426931566-export declare function externalThing2(): number;\r\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-4882119183-export {};\r\n" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }", + "signature": "-13126029071-export declare function externalThing1(): number;\r\n" + }, + "./src/filenotfound.d.ts": { + "version": "-13705775197-export declare function something2(): number;\r\n", + "signature": "-13705775197-export declare function something2(): number;\r\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-3405156953-export declare function foo(): number;\r\n" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "signature": "-4882119183-export {};\r\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 70, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-13705775197-export declare function something2(): number;\r\n", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "filesByName": { + "./src/filenotfound.ts": 0 + }, + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -6134,6 +10731,6 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 8867 + "size": 10978 } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index f87a7187fd64a..e0edd95bc9b13 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -2,11 +2,15 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } @@ -32,6 +36,9 @@ function globalAnotherFileWithSameReferenes() { } //// [/user/username/projects/myproject/src/globalFilePresent.ts] function globalSomething() { return 10; } +//// [/user/username/projects/myproject/src/externalThing.d.ts] +export function externalThing1(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -88,18 +95,18 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:46 AM] Starting compilation in watch mode... +[12:00:48 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== @@ -116,7 +123,53 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' does not exist. +File '/user/username/projects/myproject/src/externalThing.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file @@ -125,7 +178,13 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMai FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots @@ -134,6 +193,11 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -149,18 +213,28 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:56 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ +[12:00:58 AM] Found 6 errors. Watching for file changes. + +DirectoryWatcher:: Triggered with /user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -178,6 +252,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -196,11 +272,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -209,7 +289,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -248,6 +328,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -257,6 +338,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -266,11 +348,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -288,8 +421,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -311,7 +447,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -327,7 +463,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -341,7 +478,8 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -376,7 +514,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -390,12 +528,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -405,6 +567,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -428,6 +598,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -452,7 +690,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -469,7 +707,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -488,7 +726,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -511,7 +749,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -529,7 +767,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -538,7 +776,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -552,6 +790,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -575,18 +821,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -639,12 +954,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6411 + "size": 10031 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -709,17 +1086,22 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:01:03 AM] File change detected. Starting incremental compilation... +[12:01:05 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -735,16 +1117,22 @@ CreatingProgramWith:: 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:13 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:15 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -762,6 +1150,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -780,11 +1170,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -819,7 +1213,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -858,6 +1252,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -867,6 +1262,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -876,11 +1272,62 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -898,8 +1345,11 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -921,7 +1371,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -937,7 +1387,8 @@ define("src/main", ["require", "exports"], function (require, exports) { }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -951,7 +1402,8 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -986,7 +1438,7 @@ define("src/main", ["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1000,12 +1452,36 @@ define("src/main", ["require", "exports"], function (require, exports) { } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1015,6 +1491,14 @@ define("src/main", ["require", "exports"], function (require, exports) { { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1038,6 +1522,74 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1062,7 +1614,7 @@ define("src/main", ["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -1079,7 +1631,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1098,7 +1650,7 @@ define("src/main", ["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1121,7 +1673,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1139,7 +1691,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1148,7 +1700,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1162,6 +1714,14 @@ define("src/main", ["require", "exports"], function (require, exports) { { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1185,18 +1745,87 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1249,12 +1878,74 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6445 + "size": 10065 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1333,24 +2024,33 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:01:26 AM] File change detected. Starting incremental compilation... +[12:01:28 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -1366,16 +2066,22 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:36 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:38 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1394,6 +2100,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -1414,11 +2122,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -1469,7 +2181,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1509,6 +2221,7 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1519,6 +2232,7 @@ declare module "src/main" { } "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1529,11 +2243,62 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1556,8 +2321,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -1583,7 +2351,7 @@ declare module "src/main" { } "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -1599,7 +2367,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1614,7 +2383,8 @@ declare module "src/main" { } "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1649,7 +2419,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1663,12 +2433,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1678,6 +2472,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1701,6 +2503,74 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1725,7 +2595,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -1742,7 +2612,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1761,7 +2631,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1784,7 +2654,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1803,7 +2673,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -1822,7 +2692,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1831,7 +2701,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1845,6 +2715,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1868,18 +2746,87 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 7 + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1933,12 +2880,74 @@ declare module "src/main" { } "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6985 + "size": 10603 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -2012,39 +3021,54 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:45 AM] File change detected. Starting incremental compilation... +[12:01:47 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:55 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:57 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2064,6 +3088,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -2084,11 +3110,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -2141,7 +3171,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2182,6 +3212,7 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2192,6 +3223,7 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2203,11 +3235,62 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2230,8 +3313,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -2261,7 +3347,7 @@ declare module "src/main" { } "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -2277,7 +3363,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2292,7 +3379,8 @@ declare module "src/main" { } "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2327,7 +3415,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2341,12 +3429,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2356,6 +3468,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2379,6 +3499,74 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2403,7 +3591,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2420,7 +3608,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2439,7 +3627,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2463,7 +3651,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2486,7 +3674,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2505,7 +3693,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2524,7 +3712,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -2533,7 +3721,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2547,6 +3735,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2570,18 +3766,87 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2607,12 +3872,74 @@ declare module "src/main" { } "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7020 + "size": 10636 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -2676,43 +4003,58 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:02:04 AM] File change detected. Starting incremental compilation... +[12:02:06 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:02:14 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:02:16 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2732,6 +4074,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -2752,11 +4096,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -2796,7 +4144,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2837,6 +4185,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2847,6 +4196,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2858,11 +4208,62 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2885,8 +4286,11 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -2916,7 +4320,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -2932,7 +4336,8 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2947,7 +4352,8 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2982,7 +4388,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2996,12 +4402,36 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3011,6 +4441,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3034,6 +4472,74 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3058,7 +4564,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3075,7 +4581,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3094,7 +4600,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3118,7 +4624,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3141,7 +4647,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3160,7 +4666,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3179,7 +4685,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3188,7 +4694,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3202,6 +4708,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3225,18 +4739,87 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3262,12 +4845,74 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7046 + "size": 10660 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -3332,7 +4977,9 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); //// [/user/username/projects/myproject/src/newFile.ts] export function foo() { return 20; } @@ -3348,43 +4995,58 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:02:25 AM] File change detected. Starting incremental compilation... +[12:02:27 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:02:35 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:02:37 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -3405,6 +5067,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -3427,11 +5091,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -3495,7 +5163,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -3537,6 +5205,7 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -3548,6 +5217,7 @@ declare module "src/main" { } "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -3560,11 +5230,62 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -3580,6 +5301,7 @@ declare module "src/main" { } ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -3591,8 +5313,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -3625,7 +5350,7 @@ declare module "src/main" { } "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -3641,7 +5366,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3657,6 +5383,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -3692,7 +5419,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -3706,12 +5433,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3721,6 +5472,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3744,8 +5503,76 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } - ] - ], + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -3768,7 +5595,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -3785,7 +5612,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3804,7 +5631,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3828,7 +5655,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3851,7 +5678,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3870,7 +5697,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3889,7 +5716,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3908,7 +5735,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3917,7 +5744,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3935,6 +5762,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3967,18 +5802,87 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -4006,6 +5910,68 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -4016,7 +5982,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 7575 + "size": 11189 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -4100,35 +6066,48 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotF Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update -[12:02:44 AM] File change detected. Starting incremental compilation... +[12:02:46 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:02:54 AM] Found 0 errors. Watching for file changes. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:02:56 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -4149,6 +6128,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -4173,10 +6154,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -4250,7 +6236,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4294,6 +6280,7 @@ declare module "src/main" { } "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -4306,6 +6293,7 @@ declare module "src/main" { } "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -4313,12 +6301,63 @@ declare module "src/main" { } "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -4335,6 +6374,7 @@ declare module "src/main" { } [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -4349,8 +6389,11 @@ declare module "src/main" { } "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -4383,7 +6426,7 @@ declare module "src/main" { } "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -4400,7 +6443,8 @@ declare module "src/main" { } "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4417,6 +6461,7 @@ declare module "src/main" { } "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -4452,7 +6497,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -4481,7 +6526,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -4490,12 +6535,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -4505,6 +6574,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4525,6 +6602,74 @@ declare module "src/main" { } "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -4549,7 +6694,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -4566,7 +6711,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -4585,7 +6730,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -4609,7 +6754,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -4632,7 +6777,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -4651,7 +6796,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -4670,7 +6815,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -4689,7 +6834,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -4698,7 +6843,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -4716,6 +6861,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4745,18 +6898,87 @@ declare module "src/main" { } "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -4782,6 +7004,68 @@ declare module "src/main" { } "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -4792,7 +7076,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 7881 + "size": 11497 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -4880,15 +7164,18 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:03:02 AM] File change detected. Starting incremental compilation... +[12:03:04 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== @@ -4899,32 +7186,45 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:03:12 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:03:14 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -4945,6 +7245,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -4967,11 +7269,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -5035,7 +7341,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -5077,6 +7383,7 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -5088,6 +7395,7 @@ declare module "src/main" { } "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -5100,11 +7408,62 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -5120,6 +7479,7 @@ declare module "src/main" { } ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -5131,8 +7491,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -5165,7 +7528,7 @@ declare module "src/main" { } "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -5181,7 +7544,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -5197,6 +7561,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -5232,7 +7597,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -5246,12 +7611,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -5261,6 +7650,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -5284,6 +7681,74 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -5308,7 +7773,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -5325,7 +7790,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -5344,7 +7809,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -5368,7 +7833,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -5391,7 +7856,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -5410,7 +7875,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -5429,7 +7894,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -5448,7 +7913,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -5457,7 +7922,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -5475,6 +7940,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -5507,18 +7980,87 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -5548,15 +8090,77 @@ declare module "src/main" { } }, { "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" - } - } - ] - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 7575 + "size": 11189 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -5624,3 +8228,1871 @@ declare module "src/main" { } ====================================================================== + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +[12:03:23 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:03:33 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1562,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":573,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1562, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 573, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 9333 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1562) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-573) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Write .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] +export function externalThing1() { return 10; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +[12:03:42 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. ======== +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:03:52 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/externalThing" { + export function externalThing1(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1824,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":658,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1824, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 658, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 9281 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1824) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-658) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/externalThing" { + export function externalThing1(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js index d2e53934434c2..0d21695b6fac3 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -2,11 +2,15 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } @@ -32,6 +36,9 @@ function globalAnotherFileWithSameReferenes() { } //// [/user/username/projects/myproject/src/globalFilePresent.ts] function globalSomething() { return 10; } +//// [/user/username/projects/myproject/src/externalThing.d.ts] +export function externalThing1(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -131,18 +138,18 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5]},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:01:14 AM] Starting compilation in watch mode... +[12:01:16 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== @@ -159,7 +166,53 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' does not exist. +File '/user/username/projects/myproject/src/externalThing.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file @@ -168,7 +221,13 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMai FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots @@ -177,6 +236,11 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -192,18 +256,26 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:18 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ +[12:01:20 AM] Found 6 errors. Watching for file changes. + +DirectoryWatcher:: Triggered with /user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -221,6 +293,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -239,18 +313,22 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -258,6 +336,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -267,6 +346,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -276,11 +356,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -300,9 +431,13 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -329,8 +464,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -345,7 +480,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -359,12 +495,14 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -378,7 +516,8 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -393,9 +532,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -411,6 +559,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -447,7 +603,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -461,12 +617,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -476,6 +656,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -499,6 +687,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -523,7 +779,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -540,7 +796,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -559,7 +815,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -582,7 +838,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -600,7 +856,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -609,7 +865,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -623,6 +879,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -646,18 +910,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -710,12 +1043,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6362 + "size": 10456 } @@ -733,17 +1128,22 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:01:23 AM] File change detected. Starting incremental compilation... +[12:01:25 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -759,16 +1159,22 @@ CreatingProgramWith:: 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:02:15 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:02:17 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -780,6 +1186,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -795,6 +1202,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -813,11 +1222,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -846,7 +1259,7 @@ globalSomething(); //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -854,6 +1267,7 @@ globalSomething(); "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -863,6 +1277,7 @@ globalSomething(); "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -872,11 +1287,62 @@ globalSomething(); "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -896,8 +1362,12 @@ globalSomething(); "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -925,7 +1395,7 @@ globalSomething(); "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" } }, @@ -941,7 +1411,8 @@ globalSomething(); }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -955,7 +1426,8 @@ globalSomething(); "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -971,9 +1443,18 @@ globalSomething(); "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -989,6 +1470,14 @@ globalSomething(); "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -1025,7 +1514,7 @@ globalSomething(); }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1039,12 +1528,36 @@ globalSomething(); } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1054,6 +1567,14 @@ globalSomething(); { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1077,6 +1598,74 @@ globalSomething(); "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1101,7 +1690,7 @@ globalSomething(); }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -1118,7 +1707,7 @@ globalSomething(); "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1137,7 +1726,7 @@ globalSomething(); }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1160,7 +1749,7 @@ globalSomething(); "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1178,7 +1767,7 @@ globalSomething(); "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1187,7 +1776,7 @@ globalSomething(); "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1201,6 +1790,14 @@ globalSomething(); { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1224,18 +1821,87 @@ globalSomething(); "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1288,12 +1954,74 @@ globalSomething(); "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7016 + "size": 11109 } @@ -1324,19 +2052,23 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:02:25 AM] File change detected. Starting incremental compilation... +[12:02:27 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -1352,6 +2084,11 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -1367,16 +2104,22 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:03:21 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:03:23 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1389,6 +2132,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1405,6 +2149,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -1425,11 +2171,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -1465,7 +2215,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1473,6 +2223,7 @@ declare function globalMain(): void; "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1483,6 +2234,7 @@ declare function globalMain(): void; "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1493,11 +2245,62 @@ declare function globalMain(): void; "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1522,8 +2325,12 @@ declare function globalMain(): void; "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -1556,7 +2363,7 @@ declare function globalMain(): void; "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" } }, @@ -1572,7 +2379,8 @@ declare function globalMain(): void; }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1587,7 +2395,8 @@ declare function globalMain(): void; "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1603,9 +2412,18 @@ declare function globalMain(): void; "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -1622,6 +2440,14 @@ declare function globalMain(): void; "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -1658,7 +2484,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1672,12 +2498,36 @@ declare function globalMain(): void; } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1687,10 +2537,18 @@ declare function globalMain(): void; { "kind": 10, "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ "./filePresent", { "resolvedModule": { @@ -1710,6 +2568,74 @@ declare function globalMain(): void; "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1734,7 +2660,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -1751,7 +2677,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1770,7 +2696,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1793,7 +2719,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1812,7 +2738,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -1831,7 +2757,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1840,7 +2766,7 @@ declare function globalMain(): void; "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1854,6 +2780,14 @@ declare function globalMain(): void; { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1877,18 +2811,87 @@ declare function globalMain(): void; "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1942,12 +2945,74 @@ declare function globalMain(): void; "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7626 + "size": 11717 } //// [/user/username/projects/myproject/src/globalNewFile.js] @@ -1977,19 +3042,23 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:03:27 AM] File change detected. Starting incremental compilation... +[12:03:29 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -2005,21 +3074,32 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:04:29 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:04:31 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2033,6 +3113,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2050,6 +3131,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -2070,11 +3153,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -2108,7 +3195,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2116,6 +3203,7 @@ declare function globalMain(): void; "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2126,6 +3214,7 @@ declare function globalMain(): void; "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2137,11 +3226,62 @@ declare function globalMain(): void; "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2166,8 +3306,12 @@ declare function globalMain(): void; "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -2205,7 +3349,7 @@ declare function globalMain(): void; "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" } }, @@ -2221,7 +3365,8 @@ declare function globalMain(): void; }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2236,7 +3381,8 @@ declare function globalMain(): void; "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2252,9 +3398,18 @@ declare function globalMain(): void; "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -2272,6 +3427,14 @@ declare function globalMain(): void; "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -2308,7 +3471,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2322,12 +3485,36 @@ declare function globalMain(): void; } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2337,6 +3524,14 @@ declare function globalMain(): void; { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2360,6 +3555,74 @@ declare function globalMain(): void; "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2384,7 +3647,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2401,7 +3664,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2420,7 +3683,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2444,7 +3707,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2467,7 +3730,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2486,7 +3749,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2505,7 +3768,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -2514,7 +3777,7 @@ declare function globalMain(): void; "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2528,6 +3791,14 @@ declare function globalMain(): void; { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2551,18 +3822,87 @@ declare function globalMain(): void; "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2588,12 +3928,74 @@ declare function globalMain(): void; "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7794 + "size": 11883 } //// [/user/username/projects/myproject/src/globalNewFile.js] file written with same contents @@ -2613,43 +4015,58 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:04:35 AM] File change detected. Starting incremental compilation... +[12:04:37 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:04:45 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:04:47 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2670,6 +4087,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -2690,11 +4109,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -2710,7 +4133,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2718,6 +4141,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2728,6 +4152,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2739,11 +4164,62 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2768,8 +4244,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -2807,7 +4287,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -2823,7 +4303,8 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2838,7 +4319,8 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2854,9 +4336,18 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -2874,6 +4365,14 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -2910,7 +4409,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2924,12 +4423,36 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2939,6 +4462,14 @@ define(["require", "exports", "./filePresent"], function (require, exports, file { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2962,6 +4493,74 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2986,7 +4585,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3003,7 +4602,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3022,7 +4621,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3046,7 +4645,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3069,7 +4668,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3088,7 +4687,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3107,7 +4706,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3116,7 +4715,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3130,8 +4729,16 @@ define(["require", "exports", "./filePresent"], function (require, exports, file { "kind": 10, "text": "./fileNotFound" - } - ], + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], "resolvedModules": [ [ "./filePresent", @@ -3153,18 +4760,87 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3190,12 +4866,74 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7820 + "size": 11907 } @@ -3205,7 +4943,9 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); //// [/user/username/projects/myproject/src/newFile.ts] export function foo() { return 20; } @@ -3221,22 +4961,26 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:04:53 AM] File change detected. Starting incremental compilation... +[12:04:55 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations @@ -3253,21 +4997,32 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:05:07 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:05:09 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -3290,6 +5045,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -3312,11 +5069,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -3325,7 +5086,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3333,6 +5094,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -3344,6 +5106,7 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -3356,11 +5119,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -3376,6 +5190,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -3389,8 +5204,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -3432,7 +5251,7 @@ exitCode:: ExitStatus.undefined "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -3448,7 +5267,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3464,6 +5284,7 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -3480,9 +5301,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -3500,6 +5330,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -3537,7 +5375,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -3551,12 +5389,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3566,6 +5428,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3589,6 +5459,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3613,7 +5551,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -3630,7 +5568,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3649,7 +5587,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3673,7 +5611,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3696,7 +5634,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3715,7 +5653,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3734,7 +5672,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3753,7 +5691,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3762,7 +5700,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3780,6 +5718,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3812,18 +5758,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3851,6 +5866,68 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -3861,7 +5938,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8382 + "size": 12469 } //// [/user/username/projects/myproject/src/newFile.js] @@ -3894,41 +5971,58 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotF Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update -[12:05:13 AM] File change detected. Starting incremental compilation... +[12:05:15 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:05:33 AM] Found 0 errors. Watching for file changes. +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:05:35 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -3952,6 +6046,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -3976,10 +6072,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -3990,7 +6091,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3999,6 +6100,7 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -4011,6 +6113,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -4018,12 +6121,63 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -4040,6 +6194,7 @@ exitCode:: ExitStatus.undefined [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -4057,8 +6212,12 @@ exitCode:: ExitStatus.undefined "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -4100,7 +6259,7 @@ exitCode:: ExitStatus.undefined "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -4117,7 +6276,8 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4134,13 +6294,27 @@ exitCode:: ExitStatus.undefined "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -4149,7 +6323,19 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - "./src/main.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/newfile.ts", "./src/types.ts" ], @@ -4184,7 +6370,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -4213,7 +6399,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -4222,12 +6408,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -4237,6 +6447,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4257,6 +6475,74 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -4281,7 +6567,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -4298,7 +6584,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -4317,7 +6603,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -4341,7 +6627,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -4364,7 +6650,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -4383,7 +6669,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -4402,7 +6688,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -4421,7 +6707,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -4430,7 +6716,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -4448,6 +6734,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4477,20 +6771,89 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 9 - } - ] - } - ], - "rootFileNames": [ - "./src/anotherFileReusingResolution.ts", - "./src/fileNotFound.ts", - "./src/filePresent.ts", + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalFileNotFound.ts", @@ -4514,6 +6877,68 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -4524,7 +6949,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8235 + "size": 12332 } //// [/user/username/projects/myproject/src/fileNotFound.js] @@ -4551,15 +6976,18 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:05:38 AM] File change detected. Starting incremental compilation... +[12:05:40 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== @@ -4568,24 +6996,37 @@ File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. File '/user/username/projects/myproject/src/fileNotFound.d.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.d.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file -[12:05:54 AM] Found 0 errors. Watching for file changes. +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:05:56 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -4609,6 +7050,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -4633,11 +7076,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -4648,7 +7095,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n",{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4657,6 +7104,7 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -4669,6 +7117,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.d.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -4678,12 +7127,63 @@ exitCode:: ExitStatus.undefined "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", - "./src/fileNotFound.tsx" + "./src/fileNotFound.tsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.d.ts" + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -4700,6 +7200,7 @@ exitCode:: ExitStatus.undefined [ "./src/filepresent.ts", "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -4717,8 +7218,12 @@ exitCode:: ExitStatus.undefined "version": "-14992185226-export declare function something2(): number;\n", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -4760,7 +7265,7 @@ exitCode:: ExitStatus.undefined "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -4777,7 +7282,8 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.d.ts" + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4794,13 +7300,27 @@ exitCode:: ExitStatus.undefined "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", "./src/filenotfound.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -4809,7 +7329,19 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - "./src/main.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/newfile.ts", "./src/types.ts" ], @@ -4844,7 +7376,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -4873,7 +7405,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -4882,12 +7414,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -4897,6 +7453,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4921,6 +7485,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -4945,7 +7577,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -4962,7 +7594,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -4981,7 +7613,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -5005,7 +7637,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -5028,7 +7660,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -5047,7 +7679,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -5066,7 +7698,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -5085,7 +7717,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -5094,7 +7726,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -5112,6 +7744,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -5145,18 +7785,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -5186,6 +7895,68 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx" ] }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -5196,6 +7967,1672 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8247 + "size": 12344 } + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +[12:06:02 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThingNotPresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/externalThingNotPresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:06:22 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[20,18,19,17,16,21,24,23,22,26,25,15,27,7],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/fileNotFound.d.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/main.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10008 +} + +//// [/user/username/projects/myproject/src/externalThingNotPresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); + + +//// [/user/username/projects/myproject/src/externalThingNotPresent.d.ts] +export declare function externalThing2(): number; + + + +Change:: Write .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] +export function externalThing1() { return 10; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +[12:06:28 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. ======== +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThing.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:06:49 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/externalThing.d.ts] +export declare function externalThing1(): number; + + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n",{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[20,18,19,17,16,21,24,23,22,26,25,15,27,7],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/fileNotFound.d.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }", + "signature": "-13282660348-export declare function externalThing1(): number;\n" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/main.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10022 +} + +//// [/user/username/projects/myproject/src/externalThing.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); + + diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 86a0843ef1c1a..0fab608e192ba 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -2,11 +2,15 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } @@ -32,6 +36,9 @@ function globalAnotherFileWithSameReferenes() { } //// [/user/username/projects/myproject/src/globalFilePresent.ts] function globalSomething() { return 10; } +//// [/user/username/projects/myproject/src/externalThing.d.ts] +export function externalThing1(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -88,21 +95,22 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:43 AM] Starting compilation in watch mode... +[12:00:45 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file @@ -118,6 +126,11 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -133,18 +146,24 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:53 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:00:55 AM] Found 6 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -162,6 +181,8 @@ WatchedFiles:: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -192,7 +213,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -231,6 +252,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -240,6 +262,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -249,11 +272,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -271,8 +345,11 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -294,7 +371,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -310,7 +387,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -324,7 +402,8 @@ exitCode:: ExitStatus.undefined "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -359,7 +438,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -373,12 +452,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -388,6 +491,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -411,6 +522,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -435,7 +614,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -452,7 +631,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -471,7 +650,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -494,7 +673,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -512,7 +691,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -521,7 +700,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -535,6 +714,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -558,18 +745,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -622,12 +878,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6411 + "size": 10031 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -692,17 +1010,22 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:01:00 AM] File change detected. Starting incremental compilation... +[12:01:02 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -718,16 +1041,22 @@ CreatingProgramWith:: 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:10 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:12 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -745,6 +1074,8 @@ WatchedFiles:: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -801,7 +1132,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -840,6 +1171,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -849,6 +1181,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -858,11 +1191,62 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -880,8 +1264,11 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -903,7 +1290,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -919,7 +1306,8 @@ define("src/main", ["require", "exports"], function (require, exports) { }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -933,7 +1321,8 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -968,7 +1357,7 @@ define("src/main", ["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -982,12 +1371,36 @@ define("src/main", ["require", "exports"], function (require, exports) { } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -997,6 +1410,14 @@ define("src/main", ["require", "exports"], function (require, exports) { { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1020,6 +1441,74 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1044,7 +1533,7 @@ define("src/main", ["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -1061,7 +1550,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1080,7 +1569,7 @@ define("src/main", ["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1103,7 +1592,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1121,7 +1610,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1130,7 +1619,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1144,6 +1633,14 @@ define("src/main", ["require", "exports"], function (require, exports) { { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1167,18 +1664,87 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1231,12 +1797,74 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6445 + "size": 10065 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1312,14 +1940,15 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:01:23 AM] File change detected. Starting incremental compilation... +[12:01:25 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -1330,15 +1959,65 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -1354,16 +2033,22 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:33 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:35 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1382,6 +2067,8 @@ WatchedFiles:: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -1402,6 +2089,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/node_modules/@types: @@ -1409,6 +2098,8 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -1457,7 +2148,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1497,6 +2188,7 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1507,6 +2199,7 @@ declare module "src/main" { } "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1517,11 +2210,62 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1544,8 +2288,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -1571,7 +2318,7 @@ declare module "src/main" { } "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -1587,7 +2334,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1602,7 +2350,8 @@ declare module "src/main" { } "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1637,7 +2386,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1651,12 +2400,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1666,6 +2439,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1689,6 +2470,74 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1713,7 +2562,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -1730,7 +2579,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1749,7 +2598,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1772,7 +2621,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1791,7 +2640,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -1810,7 +2659,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1819,7 +2668,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1833,6 +2682,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1856,18 +2713,87 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 7 - } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1921,12 +2847,74 @@ declare module "src/main" { } "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6985 + "size": 10603 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -2000,39 +2988,54 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:01:42 AM] File change detected. Starting incremental compilation... +[12:01:44 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:52 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:54 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2052,6 +3055,8 @@ WatchedFiles:: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -2072,6 +3077,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/node_modules/@types: @@ -2079,6 +3086,8 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -2129,7 +3138,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2170,6 +3179,7 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2180,6 +3190,7 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2191,11 +3202,62 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2218,8 +3280,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -2249,7 +3314,7 @@ declare module "src/main" { } "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -2265,7 +3330,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2280,7 +3346,8 @@ declare module "src/main" { } "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2315,7 +3382,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2329,12 +3396,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2344,6 +3435,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2367,6 +3466,74 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2391,7 +3558,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2408,7 +3575,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2427,7 +3594,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2451,7 +3618,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2474,7 +3641,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2493,7 +3660,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2512,7 +3679,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -2521,7 +3688,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2535,6 +3702,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2558,18 +3733,87 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2595,12 +3839,74 @@ declare module "src/main" { } "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7020 + "size": 10636 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -2664,43 +3970,58 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:02:01 AM] File change detected. Starting incremental compilation... +[12:02:03 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:02:11 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:02:13 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2720,6 +4041,8 @@ WatchedFiles:: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -2740,6 +4063,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/node_modules/@types: @@ -2747,6 +4072,8 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -2784,7 +4111,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2825,6 +4152,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2835,6 +4163,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2846,11 +4175,62 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2873,8 +4253,11 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -2904,7 +4287,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -2920,7 +4303,8 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2935,7 +4319,8 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2970,7 +4355,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2984,12 +4369,36 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2999,6 +4408,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3022,6 +4439,74 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3046,7 +4531,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3063,7 +4548,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3082,7 +4567,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3106,7 +4591,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3129,7 +4614,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3148,7 +4633,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3167,7 +4652,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3176,7 +4661,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3190,6 +4675,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3213,18 +4706,87 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3250,12 +4812,74 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7046 + "size": 10660 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -3320,7 +4944,9 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); //// [/user/username/projects/myproject/src/newFile.ts] export function foo() { return 20; } @@ -3336,43 +4962,58 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:02:22 AM] File change detected. Starting incremental compilation... +[12:02:24 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:02:32 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:02:34 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -3393,6 +5034,8 @@ WatchedFiles:: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -3415,6 +5058,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/node_modules/@types: @@ -3422,6 +5067,8 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -3483,7 +5130,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -3525,6 +5172,7 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -3536,6 +5184,7 @@ declare module "src/main" { } "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -3548,11 +5197,62 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -3568,6 +5268,7 @@ declare module "src/main" { } ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -3579,8 +5280,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -3613,7 +5317,7 @@ declare module "src/main" { } "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -3629,7 +5333,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3645,6 +5350,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -3680,7 +5386,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -3694,12 +5400,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3709,6 +5439,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3732,7 +5470,75 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } - ] + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] ], "includeReasons": [ { @@ -3756,7 +5562,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -3773,7 +5579,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3792,7 +5598,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3816,7 +5622,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3839,7 +5645,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3858,7 +5664,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3877,7 +5683,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3896,7 +5702,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3905,7 +5711,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3923,6 +5729,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3955,18 +5769,87 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3994,6 +5877,68 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -4004,7 +5949,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 7575 + "size": 11189 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -4087,12 +6032,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:02:41 AM] File change detected. Starting incremental compilation... +[12:02:43 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -4102,23 +6047,41 @@ File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' does not exist. +File '/user/username/projects/myproject/src/externalThing.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:02:51 AM] Found 0 errors. Watching for file changes. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:02:53 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -4139,6 +6102,8 @@ WatchedFiles:: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -4163,12 +6128,17 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -4240,7 +6210,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4284,6 +6254,7 @@ declare module "src/main" { } "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -4296,6 +6267,7 @@ declare module "src/main" { } "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -4303,12 +6275,63 @@ declare module "src/main" { } "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -4325,6 +6348,7 @@ declare module "src/main" { } [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -4339,8 +6363,11 @@ declare module "src/main" { } "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -4373,7 +6400,7 @@ declare module "src/main" { } "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -4390,7 +6417,8 @@ declare module "src/main" { } "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4407,6 +6435,7 @@ declare module "src/main" { } "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -4442,7 +6471,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -4471,7 +6500,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -4480,12 +6509,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -4495,6 +6548,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4515,6 +6576,74 @@ declare module "src/main" { } "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -4539,7 +6668,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -4556,7 +6685,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -4575,7 +6704,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -4599,7 +6728,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -4622,7 +6751,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -4641,7 +6770,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -4660,7 +6789,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -4679,7 +6808,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -4688,7 +6817,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -4706,6 +6835,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4735,18 +6872,87 @@ declare module "src/main" { } "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -4772,6 +6978,68 @@ declare module "src/main" { } "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -4782,7 +7050,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 7881 + "size": 11497 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -4873,12 +7141,15 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:02:59 AM] File change detected. Starting incremental compilation... +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +[12:03:01 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== @@ -4889,32 +7160,45 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:03:09 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:03:11 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -4935,6 +7219,8 @@ WatchedFiles:: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -4957,6 +7243,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/node_modules/@types: @@ -4964,6 +7252,8 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -5025,7 +7315,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -5067,6 +7357,7 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -5078,6 +7369,7 @@ declare module "src/main" { } "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -5090,11 +7382,62 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -5110,6 +7453,7 @@ declare module "src/main" { } ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -5121,8 +7465,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -5155,7 +7502,7 @@ declare module "src/main" { } "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -5171,7 +7518,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -5187,6 +7535,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -5222,7 +7571,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -5236,12 +7585,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -5251,6 +7624,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -5274,6 +7655,74 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -5298,7 +7747,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -5315,7 +7764,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -5334,7 +7783,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -5358,7 +7807,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -5381,7 +7830,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -5400,7 +7849,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -5419,7 +7868,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -5438,7 +7887,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -5447,7 +7896,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -5465,6 +7914,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -5497,18 +7954,87 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -5538,15 +8064,77 @@ declare module "src/main" { } }, { "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" - } - } - ] - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 7575 + "size": 11189 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -5614,3 +8202,1869 @@ declare module "src/main" { } ====================================================================== + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +[12:03:20 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:03:30 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1562,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":573,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1562, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 573, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 9333 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1562) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-573) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Write .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] +export function externalThing1() { return 10; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +[12:03:39 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. ======== +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:03:49 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/externalThing" { + export function externalThing1(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1824,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":658,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1824, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 658, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 9281 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1824) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-658) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/externalThing" { + export function externalThing1(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index ba803938bfd72..b5683b508cba4 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -2,11 +2,15 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } @@ -32,6 +36,9 @@ function globalAnotherFileWithSameReferenes() { } //// [/user/username/projects/myproject/src/globalFilePresent.ts] function globalSomething() { return 10; } +//// [/user/username/projects/myproject/src/externalThing.d.ts] +export function externalThing1(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -131,21 +138,22 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:01:11 AM] Starting compilation in watch mode... +[12:01:13 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file @@ -161,6 +169,11 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -176,18 +189,24 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:12 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:14 AM] Found 6 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -205,6 +224,8 @@ WatchedFiles:: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -247,17 +268,22 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:01:15 AM] File change detected. Starting incremental compilation... +[12:01:17 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -273,16 +299,22 @@ CreatingProgramWith:: 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:02:07 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:02:09 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -294,6 +326,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -309,6 +342,8 @@ WatchedFiles:: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -359,7 +394,7 @@ globalSomething(); //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -367,6 +402,7 @@ globalSomething(); "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -376,6 +412,7 @@ globalSomething(); "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -385,11 +422,62 @@ globalSomething(); "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -409,8 +497,12 @@ globalSomething(); "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -438,7 +530,7 @@ globalSomething(); "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" } }, @@ -454,7 +546,8 @@ globalSomething(); }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -468,7 +561,8 @@ globalSomething(); "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -484,9 +578,18 @@ globalSomething(); "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -502,6 +605,14 @@ globalSomething(); "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -538,7 +649,7 @@ globalSomething(); }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -552,12 +663,36 @@ globalSomething(); } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -567,6 +702,14 @@ globalSomething(); { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -590,6 +733,74 @@ globalSomething(); "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -614,7 +825,7 @@ globalSomething(); }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -631,7 +842,7 @@ globalSomething(); "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -650,7 +861,7 @@ globalSomething(); }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -673,7 +884,7 @@ globalSomething(); "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -691,7 +902,7 @@ globalSomething(); "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -700,7 +911,7 @@ globalSomething(); "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -714,6 +925,14 @@ globalSomething(); { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -737,18 +956,87 @@ globalSomething(); "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -801,12 +1089,74 @@ globalSomething(); "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7016 + "size": 11109 } @@ -834,14 +1184,15 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:02:16 AM] File change detected. Starting incremental compilation... +[12:02:18 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -852,10 +1203,55 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalNewFile.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -871,6 +1267,11 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -886,16 +1287,22 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:03:12 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:03:14 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -908,6 +1315,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -924,6 +1332,8 @@ WatchedFiles:: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -944,6 +1354,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/node_modules/@types: @@ -951,6 +1363,8 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -984,7 +1398,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -992,6 +1406,7 @@ declare function globalMain(): void; "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1002,6 +1417,7 @@ declare function globalMain(): void; "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1012,11 +1428,62 @@ declare function globalMain(): void; "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1041,8 +1508,12 @@ declare function globalMain(): void; "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -1075,7 +1546,7 @@ declare function globalMain(): void; "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" } }, @@ -1091,7 +1562,8 @@ declare function globalMain(): void; }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1106,7 +1578,8 @@ declare function globalMain(): void; "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1122,9 +1595,18 @@ declare function globalMain(): void; "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -1141,6 +1623,14 @@ declare function globalMain(): void; "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -1177,7 +1667,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1191,12 +1681,36 @@ declare function globalMain(): void; } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1206,6 +1720,14 @@ declare function globalMain(): void; { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1229,6 +1751,74 @@ declare function globalMain(): void; "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1253,7 +1843,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -1270,7 +1860,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1289,7 +1879,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1312,7 +1902,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1331,7 +1921,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -1350,7 +1940,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1359,7 +1949,7 @@ declare function globalMain(): void; "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1373,6 +1963,14 @@ declare function globalMain(): void; { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1396,18 +1994,87 @@ declare function globalMain(): void; "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1461,12 +2128,74 @@ declare function globalMain(): void; "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7626 + "size": 11717 } //// [/user/username/projects/myproject/src/globalNewFile.js] @@ -1496,19 +2225,23 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:03:18 AM] File change detected. Starting incremental compilation... +[12:03:20 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFileNotFound.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -1524,21 +2257,32 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:04:20 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:04:22 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1552,6 +2296,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1569,6 +2314,8 @@ WatchedFiles:: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -1589,6 +2336,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/node_modules/@types: @@ -1596,6 +2345,8 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -1627,7 +2378,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1635,6 +2386,7 @@ declare function globalMain(): void; "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1645,6 +2397,7 @@ declare function globalMain(): void; "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1656,11 +2409,62 @@ declare function globalMain(): void; "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1685,8 +2489,12 @@ declare function globalMain(): void; "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -1724,7 +2532,7 @@ declare function globalMain(): void; "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" } }, @@ -1740,7 +2548,8 @@ declare function globalMain(): void; }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1755,7 +2564,8 @@ declare function globalMain(): void; "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1771,9 +2581,18 @@ declare function globalMain(): void; "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -1791,6 +2610,14 @@ declare function globalMain(): void; "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -1827,7 +2654,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1841,12 +2668,36 @@ declare function globalMain(): void; } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1856,7 +2707,15 @@ declare function globalMain(): void; { "kind": 10, "text": "./fileNotFound" - } + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } ], "resolvedModules": [ [ @@ -1879,6 +2738,74 @@ declare function globalMain(): void; "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1903,7 +2830,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -1920,7 +2847,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1939,7 +2866,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -1963,7 +2890,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1986,7 +2913,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2005,7 +2932,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2024,7 +2951,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -2033,7 +2960,7 @@ declare function globalMain(): void; "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2047,6 +2974,14 @@ declare function globalMain(): void; { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2070,18 +3005,87 @@ declare function globalMain(): void; "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2107,12 +3111,74 @@ declare function globalMain(): void; "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7794 + "size": 11883 } //// [/user/username/projects/myproject/src/globalNewFile.js] file written with same contents @@ -2132,43 +3198,58 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:04:26 AM] File change detected. Starting incremental compilation... +[12:04:28 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:04:36 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:04:38 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2189,6 +3270,8 @@ WatchedFiles:: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -2209,6 +3292,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/node_modules/@types: @@ -2216,6 +3301,8 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -2229,7 +3316,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2237,6 +3324,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2247,6 +3335,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2258,11 +3347,62 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2287,8 +3427,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -2326,7 +3470,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -2342,7 +3486,8 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2357,7 +3502,8 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2373,9 +3519,18 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -2393,6 +3548,14 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -2429,7 +3592,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2443,12 +3606,36 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2458,6 +3645,14 @@ define(["require", "exports", "./filePresent"], function (require, exports, file { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2481,6 +3676,74 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2505,7 +3768,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2522,7 +3785,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2541,7 +3804,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2565,7 +3828,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2588,7 +3851,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2607,7 +3870,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2626,7 +3889,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -2635,7 +3898,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -2649,6 +3912,14 @@ define(["require", "exports", "./filePresent"], function (require, exports, file { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2672,18 +3943,87 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2709,12 +4049,74 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7820 + "size": 11907 } @@ -2724,7 +4126,9 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); //// [/user/username/projects/myproject/src/newFile.ts] export function foo() { return 20; } @@ -2740,22 +4144,26 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:04:44 AM] File change detected. Starting incremental compilation... +[12:04:46 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js @@ -2772,21 +4180,32 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:04:58 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:05:00 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2809,6 +4228,8 @@ WatchedFiles:: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -2831,6 +4252,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/node_modules/@types: @@ -2838,13 +4261,15 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2852,6 +4277,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2863,6 +4289,7 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2875,11 +4302,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2895,6 +4373,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -2908,8 +4387,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -2951,7 +4434,7 @@ exitCode:: ExitStatus.undefined "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -2967,7 +4450,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2983,6 +4467,7 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -2999,9 +4484,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -3019,6 +4513,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -3056,7 +4558,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -3070,12 +4572,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3085,6 +4611,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3108,6 +4642,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3132,7 +4734,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -3149,7 +4751,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3168,7 +4770,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3192,7 +4794,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3215,7 +4817,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3234,7 +4836,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3253,7 +4855,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3272,7 +4874,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3281,7 +4883,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3299,7 +4901,15 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" - } + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } ], "resolvedModules": [ [ @@ -3331,18 +4941,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3370,6 +5049,68 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -3380,7 +5121,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8382 + "size": 12469 } //// [/user/username/projects/myproject/src/newFile.js] @@ -3412,12 +5153,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:05:04 AM] File change detected. Starting incremental compilation... +[12:05:06 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -3427,29 +5168,51 @@ File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' does not exist. +File '/user/username/projects/myproject/src/externalThing.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:05:24 AM] Found 0 errors. Watching for file changes. +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:05:26 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -3473,6 +5236,8 @@ WatchedFiles:: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -3497,12 +5262,17 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -3511,7 +5281,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3520,6 +5290,7 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -3532,6 +5303,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -3539,12 +5311,63 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -3561,6 +5384,7 @@ exitCode:: ExitStatus.undefined [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -3578,8 +5402,12 @@ exitCode:: ExitStatus.undefined "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -3621,7 +5449,7 @@ exitCode:: ExitStatus.undefined "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -3638,7 +5466,8 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3655,13 +5484,27 @@ exitCode:: ExitStatus.undefined "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -3670,7 +5513,19 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - "./src/main.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/newfile.ts", "./src/types.ts" ], @@ -3705,7 +5560,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -3734,7 +5589,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -3743,12 +5598,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3758,6 +5637,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3778,6 +5665,74 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3802,7 +5757,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -3819,7 +5774,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3838,7 +5793,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -3862,7 +5817,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3885,7 +5840,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -3904,7 +5859,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -3923,7 +5878,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3942,7 +5897,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -3951,7 +5906,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3969,6 +5924,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3998,18 +5961,87 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -4035,6 +6067,68 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -4045,7 +6139,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8235 + "size": 12332 } //// [/user/username/projects/myproject/src/fileNotFound.js] @@ -4075,12 +6169,15 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:05:29 AM] File change detected. Starting incremental compilation... +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +[12:05:31 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== @@ -4089,24 +6186,37 @@ File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. File '/user/username/projects/myproject/src/fileNotFound.d.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.d.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file -[12:05:45 AM] Found 0 errors. Watching for file changes. +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:05:47 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -4130,6 +6240,8 @@ WatchedFiles:: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -4154,6 +6266,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/node_modules/@types: @@ -4161,6 +6275,8 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -4169,7 +6285,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n",{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4178,6 +6294,7 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -4190,6 +6307,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.d.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -4199,12 +6317,63 @@ exitCode:: ExitStatus.undefined "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", - "./src/fileNotFound.tsx" + "./src/fileNotFound.tsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.d.ts" + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -4221,6 +6390,7 @@ exitCode:: ExitStatus.undefined [ "./src/filepresent.ts", "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -4238,8 +6408,12 @@ exitCode:: ExitStatus.undefined "version": "-14992185226-export declare function something2(): number;\n", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -4281,7 +6455,7 @@ exitCode:: ExitStatus.undefined "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -4298,7 +6472,8 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.d.ts" + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4315,13 +6490,27 @@ exitCode:: ExitStatus.undefined "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", "./src/filenotfound.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -4330,7 +6519,19 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - "./src/main.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/newfile.ts", "./src/types.ts" ], @@ -4365,7 +6566,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -4394,7 +6595,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -4403,12 +6604,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -4418,6 +6643,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4442,6 +6675,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -4466,7 +6767,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -4483,7 +6784,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -4502,7 +6803,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -4526,7 +6827,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -4549,7 +6850,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -4568,7 +6869,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -4587,7 +6888,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -4606,7 +6907,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -4615,7 +6916,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -4633,7 +6934,1768 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" - } + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/fileNotFound.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12344 +} + + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +[12:05:53 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThingNotPresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/externalThingNotPresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +[12:06:13 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[20,18,19,17,16,21,24,23,22,26,25,15,27,7],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/fileNotFound.d.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/main.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10008 +} + +//// [/user/username/projects/myproject/src/externalThingNotPresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); + + +//// [/user/username/projects/myproject/src/externalThingNotPresent.d.ts] +export declare function externalThing2(): number; + + + +Change:: Write .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] +export function externalThing1() { return 10; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +[12:06:19 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. ======== +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThing.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +[12:06:40 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/externalThing.d.ts] +export declare function externalThing1(): number; + + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n",{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[20,18,19,17,16,21,24,23,22,26,25,15,27,7],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/fileNotFound.d.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }", + "signature": "-13282660348-export declare function externalThing1(): number;\n" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/main.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } ], "resolvedModules": [ [ @@ -4666,18 +8728,38 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 11 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", "./src/fileNotFound.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -4707,6 +8789,18 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx" ] }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -4717,6 +8811,16 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8247 + "size": 10022 } +//// [/user/username/projects/myproject/src/externalThing.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); + + diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 65d4c37b7950c..bf54753f84695 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -2,11 +2,15 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } @@ -32,6 +36,9 @@ function globalAnotherFileWithSameReferenes() { } //// [/user/username/projects/myproject/src/globalFilePresent.ts] function globalSomething() { return 10; } +//// [/user/username/projects/myproject/src/externalThing.d.ts] +export function externalThing1(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -51,13 +58,13 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:37 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== @@ -74,7 +81,53 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' does not exist. +File '/user/username/projects/myproject/src/externalThing.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file @@ -83,15 +136,32 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMai FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/outFile.js :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/outFile.js :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/outFile.d.ts :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/outFile.d.ts :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/outFile.tsbuildinfo :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/outFile.tsbuildinfo :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -107,18 +177,28 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:00:44 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ +[12:00:46 AM] Found 6 errors. Watching for file changes. + +DirectoryWatcher:: Triggered with /user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -136,6 +216,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -154,11 +236,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -204,7 +290,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -243,6 +329,7 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -252,6 +339,7 @@ declare module "src/main" { } "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -261,11 +349,62 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -283,8 +422,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -306,7 +448,7 @@ declare module "src/main" { } "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -322,7 +464,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -336,7 +479,8 @@ declare module "src/main" { } "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -371,7 +515,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -385,12 +529,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -400,6 +568,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -423,6 +599,74 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -447,7 +691,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -464,7 +708,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -483,7 +727,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -506,7 +750,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -524,7 +768,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -533,7 +777,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -547,6 +791,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -570,18 +822,87 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -634,12 +955,74 @@ declare module "src/main" { } "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6411 + "size": 10031 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -704,17 +1087,22 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:00:51 AM] File change detected. Starting incremental compilation... +[12:00:53 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -730,16 +1118,22 @@ CreatingProgramWith:: 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:01 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:03 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -757,6 +1151,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -775,11 +1171,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -814,7 +1214,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -853,6 +1253,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -862,6 +1263,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -871,11 +1273,62 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -893,8 +1346,11 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -916,7 +1372,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -932,7 +1388,8 @@ define("src/main", ["require", "exports"], function (require, exports) { }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -946,7 +1403,8 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -981,7 +1439,7 @@ define("src/main", ["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -995,12 +1453,36 @@ define("src/main", ["require", "exports"], function (require, exports) { } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1010,6 +1492,14 @@ define("src/main", ["require", "exports"], function (require, exports) { { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1033,6 +1523,74 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1057,7 +1615,7 @@ define("src/main", ["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -1074,7 +1632,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1093,7 +1651,7 @@ define("src/main", ["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1116,7 +1674,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1134,7 +1692,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1143,7 +1701,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1157,6 +1715,14 @@ define("src/main", ["require", "exports"], function (require, exports) { { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1180,18 +1746,87 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1244,12 +1879,74 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6445 + "size": 10065 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1328,24 +2025,33 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:01:14 AM] File change detected. Starting incremental compilation... +[12:01:16 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -1361,16 +2067,22 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:24 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:26 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1389,6 +2101,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -1409,11 +2123,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -1464,7 +2182,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1504,6 +2222,7 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1514,6 +2233,7 @@ declare module "src/main" { } "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1524,11 +2244,62 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1551,8 +2322,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -1578,7 +2352,7 @@ declare module "src/main" { } "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -1594,7 +2368,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1609,7 +2384,8 @@ declare module "src/main" { } "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1644,7 +2420,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1658,12 +2434,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1673,6 +2473,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1696,6 +2504,74 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1720,7 +2596,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -1737,7 +2613,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1756,7 +2632,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1779,7 +2655,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1798,7 +2674,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -1817,7 +2693,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1826,7 +2702,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1840,6 +2716,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1863,18 +2747,87 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 7 + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1928,12 +2881,74 @@ declare module "src/main" { } "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6985 + "size": 10603 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -2007,39 +3022,54 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:33 AM] File change detected. Starting incremental compilation... +[12:01:35 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:43 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:45 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2059,6 +3089,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -2079,11 +3111,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -2136,7 +3172,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2177,6 +3213,7 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2187,6 +3224,7 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2198,11 +3236,62 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2225,8 +3314,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -2256,7 +3348,7 @@ declare module "src/main" { } "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -2272,7 +3364,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2287,7 +3380,8 @@ declare module "src/main" { } "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2322,7 +3416,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2336,12 +3430,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2351,6 +3469,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2374,6 +3500,74 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2398,7 +3592,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2415,7 +3609,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2434,7 +3628,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2458,7 +3652,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2481,7 +3675,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2500,7 +3694,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2519,7 +3713,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -2528,7 +3722,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2542,6 +3736,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2565,18 +3767,87 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2602,12 +3873,74 @@ declare module "src/main" { } "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7020 + "size": 10636 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -2671,43 +4004,58 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:01:52 AM] File change detected. Starting incremental compilation... +[12:01:54 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:02:02 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:02:04 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2727,6 +4075,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -2747,11 +4097,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -2791,7 +4145,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2832,6 +4186,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2842,6 +4197,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2853,11 +4209,62 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2880,8 +4287,11 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -2911,7 +4321,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -2927,7 +4337,8 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2942,7 +4353,8 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2977,7 +4389,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2991,12 +4403,36 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3006,6 +4442,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3029,6 +4473,74 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3053,7 +4565,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3070,7 +4582,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3089,7 +4601,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3113,7 +4625,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3136,7 +4648,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3155,7 +4667,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3174,7 +4686,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3183,7 +4695,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3197,6 +4709,14 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3220,18 +4740,87 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3257,12 +4846,74 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7046 + "size": 10660 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -3327,7 +4978,9 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); //// [/user/username/projects/myproject/src/newFile.ts] export function foo() { return 20; } @@ -3343,43 +4996,58 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:02:13 AM] File change detected. Starting incremental compilation... +[12:02:15 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:02:23 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:02:25 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -3400,6 +5068,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -3422,11 +5092,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -3490,7 +5164,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -3532,6 +5206,7 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -3543,6 +5218,7 @@ declare module "src/main" { } "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -3555,11 +5231,62 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -3575,6 +5302,7 @@ declare module "src/main" { } ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -3586,8 +5314,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -3620,7 +5351,7 @@ declare module "src/main" { } "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -3636,7 +5367,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3652,6 +5384,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -3687,7 +5420,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -3701,12 +5434,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3716,6 +5473,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3739,8 +5504,76 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } - ] - ], + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], "includeReasons": [ { "kind": "RootFile", @@ -3763,7 +5596,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -3780,7 +5613,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3799,7 +5632,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3823,7 +5656,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3846,7 +5679,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3865,7 +5698,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3884,7 +5717,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3903,7 +5736,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3912,7 +5745,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3930,6 +5763,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3962,18 +5803,87 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -4001,6 +5911,68 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -4011,7 +5983,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 7575 + "size": 11189 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -4095,35 +6067,48 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotF Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update -[12:02:32 AM] File change detected. Starting incremental compilation... +[12:02:34 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:02:42 AM] Found 0 errors. Watching for file changes. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:02:44 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -4144,6 +6129,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -4168,10 +6155,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -4245,7 +6237,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4289,6 +6281,7 @@ declare module "src/main" { } "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -4301,6 +6294,7 @@ declare module "src/main" { } "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -4308,12 +6302,63 @@ declare module "src/main" { } "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -4330,6 +6375,7 @@ declare module "src/main" { } [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -4344,8 +6390,11 @@ declare module "src/main" { } "./src/filenotfound.ts": { "version": "-497034637-export function something2() { return 20; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -4378,7 +6427,7 @@ declare module "src/main" { } "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -4395,7 +6444,8 @@ declare module "src/main" { } "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4412,6 +6462,7 @@ declare module "src/main" { } "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -4447,7 +6498,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -4476,7 +6527,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -4485,12 +6536,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -4500,6 +6575,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4520,6 +6603,74 @@ declare module "src/main" { } "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -4544,7 +6695,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -4561,7 +6712,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -4580,7 +6731,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -4604,7 +6755,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -4627,7 +6778,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -4646,7 +6797,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -4665,7 +6816,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -4684,7 +6835,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -4693,7 +6844,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -4711,6 +6862,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4740,18 +6899,87 @@ declare module "src/main" { } "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -4777,6 +7005,68 @@ declare module "src/main" { } "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -4787,7 +7077,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 7881 + "size": 11497 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -4875,15 +7165,18 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:02:50 AM] File change detected. Starting incremental compilation... +[12:02:52 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== @@ -4894,32 +7187,45 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:03:00 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:03:02 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -4940,6 +7246,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -4962,11 +7270,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -5030,7 +7342,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -5072,6 +7384,7 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -5083,6 +7396,7 @@ declare module "src/main" { } "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -5095,11 +7409,62 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -5115,6 +7480,7 @@ declare module "src/main" { } ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -5126,8 +7492,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -5160,7 +7529,7 @@ declare module "src/main" { } "version": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();" + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" } }, "options": { @@ -5176,7 +7545,8 @@ declare module "src/main" { } }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -5192,6 +7562,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -5227,7 +7598,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -5241,12 +7612,36 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -5256,6 +7651,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -5279,6 +7682,74 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -5303,7 +7774,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -5320,7 +7791,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -5339,7 +7810,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -5363,7 +7834,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -5386,7 +7857,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -5405,7 +7876,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -5424,7 +7895,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -5443,7 +7914,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -5452,7 +7923,7 @@ declare module "src/main" { } "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -5470,6 +7941,14 @@ declare module "src/main" { } { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -5502,18 +7981,87 @@ declare module "src/main" { } "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -5543,15 +8091,77 @@ declare module "src/main" { } }, { "resolvedModule": { - "resolvedFileName": "./src/newFile.ts", - "extension": ".ts" - } - } - ] - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } }, "version": "FakeTSVersion", - "size": 7575 + "size": 11189 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -5619,3 +8229,1871 @@ declare module "src/main" { } ====================================================================== + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +[12:03:11 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:03:21 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1562,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":573,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1562, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 573, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 9333 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1562) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-573) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Write .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] +export function externalThing1() { return 10; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +[12:03:30 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. ======== +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +2 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +3 import { something2 } from "./fileNotFound"; +   ~~~~~~~~~~~~~~~~ + +[12:03:40 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/externalThing" { + export function externalThing1(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1824,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":658,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1824, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 658, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/fileNotFound.d.ts", + "./src/fileNotFound.js", + "./src/fileNotFound.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 9281 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1824) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-658) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/externalThing" { + export function externalThing1(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index ddb3eee55b042..4818750753ad0 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -2,11 +2,15 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/anotherFileReusingResolution.ts] import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; //// [/user/username/projects/myproject/src/filePresent.ts] export function something() { return 10; } @@ -32,6 +36,9 @@ function globalAnotherFileWithSameReferenes() { } //// [/user/username/projects/myproject/src/globalFilePresent.ts] function globalSomething() { return 10; } +//// [/user/username/projects/myproject/src/externalThing.d.ts] +export function externalThing1(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -51,13 +58,13 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:37 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 250 undefined Source file ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== @@ -74,7 +81,53 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' does not exist. +File '/user/username/projects/myproject/src/externalThing.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file @@ -83,7 +136,13 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMai FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots @@ -119,11 +178,18 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/tsconfig.tsbuildinfo :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/tsconfig.tsbuildinfo :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -139,18 +205,26 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:01:12 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ +[12:01:14 AM] Found 6 errors. Watching for file changes. + +DirectoryWatcher:: Triggered with /user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -162,6 +236,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -177,6 +252,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -195,11 +272,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -288,7 +369,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -296,6 +377,7 @@ export {}; "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -305,6 +387,7 @@ export {}; "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -314,11 +397,62 @@ export {}; "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -338,9 +472,13 @@ export {}; "version": "11598859296-export function something() { return 10; }", "signature": "11598859296-export function something() { return 10; }" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -367,8 +505,8 @@ export {}; "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", - "signature": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";" + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" } }, "options": { @@ -383,7 +521,8 @@ export {}; }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -397,12 +536,14 @@ export {}; "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -416,7 +557,8 @@ export {}; "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "semanticDiagnosticsPerFile": [ @@ -431,9 +573,18 @@ export {}; "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -449,6 +600,14 @@ export {}; "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -485,7 +644,7 @@ export {}; }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -499,12 +658,36 @@ export {}; } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -514,6 +697,14 @@ export {}; { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -537,6 +728,74 @@ export {}; "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -561,7 +820,7 @@ export {}; }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -578,7 +837,7 @@ export {}; "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -597,7 +856,7 @@ export {}; }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -620,7 +879,7 @@ export {}; "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -638,7 +897,7 @@ export {}; "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -647,7 +906,7 @@ export {}; "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -661,6 +920,14 @@ export {}; { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -684,18 +951,87 @@ export {}; "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -748,12 +1084,74 @@ export {}; "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 6362 + "size": 10456 } @@ -771,17 +1169,22 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:01:17 AM] File change detected. Starting incremental compilation... +[12:01:19 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -797,16 +1200,22 @@ CreatingProgramWith:: 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:02:09 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:02:11 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -818,6 +1227,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -833,6 +1243,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -851,11 +1263,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -884,7 +1300,7 @@ globalSomething(); //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,10]],"referencedMap":[[3,1],[5,2],[7,3],[8,3],[9,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,8,[9,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":11,"originalFileName":11,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":9,"index":0},{"kind":3,"file":9,"index":1}]},{"fileName":12,"originalFileName":12,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":7}]},{"fileName":13,"originalFileName":13,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":14,"originalFileName":14,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":8,"index":0}]},{"fileName":15,"originalFileName":15,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":8,"resolvedPath":8,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":6}]}],"rootFileNames":[12,11,13,15,14,16,9,4],"filesByName":[[10,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":11,"extension":".ts"}},{"failedLookupLocations":[17,18,19,20,21]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -892,6 +1308,7 @@ globalSomething(); "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -901,6 +1318,7 @@ globalSomething(); "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -910,11 +1328,62 @@ globalSomething(); "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -934,8 +1403,12 @@ globalSomething(); "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -963,7 +1436,7 @@ globalSomething(); "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" } }, @@ -979,7 +1452,8 @@ globalSomething(); }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -993,7 +1467,8 @@ globalSomething(); "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1009,9 +1484,18 @@ globalSomething(); "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -1027,6 +1511,14 @@ globalSomething(); "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -1063,7 +1555,7 @@ globalSomething(); }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1077,12 +1569,36 @@ globalSomething(); } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1092,6 +1608,14 @@ globalSomething(); { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1115,6 +1639,74 @@ globalSomething(); "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1139,7 +1731,7 @@ globalSomething(); }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -1156,7 +1748,7 @@ globalSomething(); "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1175,7 +1767,7 @@ globalSomething(); }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1198,7 +1790,7 @@ globalSomething(); "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1216,7 +1808,7 @@ globalSomething(); "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1225,7 +1817,7 @@ globalSomething(); "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1239,6 +1831,14 @@ globalSomething(); { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1262,18 +1862,87 @@ globalSomething(); "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1326,12 +1995,74 @@ globalSomething(); "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7016 + "size": 11109 } @@ -1362,19 +2093,23 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:02:19 AM] File change detected. Starting incremental compilation... +[12:02:21 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -1390,6 +2125,11 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/globalAnotherFileWithSameReferenes.ts:2:22 - error TS6053: File '/user/username/projects/myproject/src/globalFileNotFound.ts' not found. 2 /// @@ -1405,16 +2145,22 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:03:15 AM] Found 4 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:03:17 AM] Found 6 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1427,6 +2173,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -1443,6 +2190,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -1463,11 +2212,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -1503,7 +2256,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,11],[6,8,11]],"referencedMap":[[3,1],[5,2],[7,3],[9,4],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,7,6,9,8,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":8}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":4},{"kind":4,"file":9,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[13,12,14,16,15,18,17,10,4],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":7,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1511,6 +2264,7 @@ declare function globalMain(): void; "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -1521,6 +2275,7 @@ declare function globalMain(): void; "./src/main.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -1531,11 +2286,62 @@ declare function globalMain(): void; "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -1560,8 +2366,12 @@ declare function globalMain(): void; "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -1594,7 +2404,7 @@ declare function globalMain(): void; "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" } }, @@ -1610,7 +2420,8 @@ declare function globalMain(): void; }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -1625,7 +2436,8 @@ declare function globalMain(): void; "./src/globalfilenotfound.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -1641,9 +2453,18 @@ declare function globalMain(): void; "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -1660,6 +2481,14 @@ declare function globalMain(): void; "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -1696,7 +2525,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -1710,12 +2539,36 @@ declare function globalMain(): void; } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1725,10 +2578,18 @@ declare function globalMain(): void; { "kind": 10, "text": "./fileNotFound" - } - ], - "resolvedModules": [ - [ + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ "./filePresent", { "resolvedModule": { @@ -1748,6 +2609,74 @@ declare function globalMain(): void; "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -1772,7 +2701,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -1789,7 +2718,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -1808,7 +2737,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -1831,7 +2760,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -1850,7 +2779,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -1869,7 +2798,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -1878,7 +2807,7 @@ declare function globalMain(): void; "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -1892,6 +2821,14 @@ declare function globalMain(): void; { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -1915,18 +2852,87 @@ declare function globalMain(): void; "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -1980,12 +2986,74 @@ declare function globalMain(): void; "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7626 + "size": 11717 } //// [/user/username/projects/myproject/src/globalNewFile.js] @@ -2015,19 +3083,23 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:03:21 AM] File change detected. Starting incremental compilation... +[12:03:23 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -2043,21 +3115,32 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:04:23 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:04:25 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2071,6 +3154,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2088,6 +3172,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -2108,11 +3194,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -2146,7 +3236,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2154,6 +3244,7 @@ declare function globalMain(): void; "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2164,6 +3255,7 @@ declare function globalMain(): void; "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2175,11 +3267,62 @@ declare function globalMain(): void; "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2204,8 +3347,12 @@ declare function globalMain(): void; "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -2243,7 +3390,7 @@ declare function globalMain(): void; "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" } }, @@ -2259,7 +3406,8 @@ declare function globalMain(): void; }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2274,7 +3422,8 @@ declare function globalMain(): void; "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2290,9 +3439,18 @@ declare function globalMain(): void; "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -2310,6 +3468,14 @@ declare function globalMain(): void; "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -2346,7 +3512,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2360,12 +3526,36 @@ declare function globalMain(): void; } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2375,6 +3565,14 @@ declare function globalMain(): void; { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2398,6 +3596,74 @@ declare function globalMain(): void; "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -2422,7 +3688,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -2439,7 +3705,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -2458,7 +3724,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -2482,7 +3748,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -2505,7 +3771,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -2524,7 +3790,7 @@ declare function globalMain(): void; }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -2543,7 +3809,7 @@ declare function globalMain(): void; "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -2552,7 +3818,7 @@ declare function globalMain(): void; "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-9387417376-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2566,6 +3832,14 @@ declare function globalMain(): void; { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -2589,18 +3863,87 @@ declare function globalMain(): void; "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -2626,12 +3969,74 @@ declare function globalMain(): void; "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7794 + "size": 11883 } //// [/user/username/projects/myproject/src/globalNewFile.js] file written with same contents @@ -2651,43 +4056,58 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:04:29 AM] File change detected. Starting incremental compilation... +[12:04:31 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:04:39 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:04:41 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: Completely Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -2708,6 +4128,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -2728,11 +4150,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -2748,7 +4174,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":9}]},{"fileName":14,"originalFileName":14,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":19,"originalFileName":19,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[13,12,14,17,16,15,19,18,11,4],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[20,21,22,23,24]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2756,6 +4182,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -2766,6 +4193,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalmain.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -2777,11 +4205,62 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -2806,8 +4285,12 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -2845,7 +4328,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "affectsGlobalScope": true }, "./src/main.ts": { - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -2861,7 +4344,8 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -2876,7 +4360,8 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalnewfile.ts" ], "./src/main.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ] }, "exportedModulesMap": {}, @@ -2892,9 +4377,18 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -2912,6 +4406,14 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -2948,7 +4450,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -2962,12 +4464,36 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -2977,6 +4503,14 @@ define(["require", "exports", "./filePresent"], function (require, exports, file { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3000,6 +4534,74 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3024,7 +4626,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3041,7 +4643,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3060,7 +4662,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3084,7 +4686,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3107,7 +4709,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3126,7 +4728,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3145,7 +4747,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3154,7 +4756,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "-12344353894-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3168,8 +4770,16 @@ define(["require", "exports", "./filePresent"], function (require, exports, file { "kind": 10, "text": "./fileNotFound" - } - ], + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], "resolvedModules": [ [ "./filePresent", @@ -3191,18 +4801,87 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3228,12 +4907,74 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/fileNotFound.js", "./src/fileNotFound.jsx" ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] } }, "version": "FakeTSVersion", - "size": 7820 + "size": 11907 } @@ -3243,7 +4984,9 @@ Input:: //// [/user/username/projects/myproject/src/main.ts] import { foo } from "./newFile";import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; -import { something2 } from "./fileNotFound";something(); +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";something(); //// [/user/username/projects/myproject/src/newFile.ts] export function foo() { return 20; } @@ -3259,22 +5002,26 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:04:47 AM] File change detected. Starting incremental compilation... +[12:04:49 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations @@ -3291,21 +5038,32 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 2 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound";something(); +3 import { something2 } from "./fileNotFound";    ~~~~~~~~~~~~~~~~ -[12:05:01 AM] Found 2 errors. Watching for file changes. +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:05:03 AM] Found 4 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -3328,6 +5086,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -3350,11 +5110,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -3363,7 +5127,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2],[4],[6,7],[6,7,9],[2,11]],"referencedMap":[[3,1],[5,2],[8,3],[10,4],[12,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[3,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],2,5,8,7,6,10,9,[12,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],11,4],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":3,"index":0},{"kind":0,"index":1},{"kind":3,"file":12,"index":1},{"kind":3,"file":12,"index":2}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":4,"originalFileName":4,"path":4,"resolvedPath":4,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":5,"index":0},{"kind":0,"index":10}]},{"fileName":15,"originalFileName":15,"path":5,"resolvedPath":5,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":2}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":1},{"kind":0,"index":4},{"kind":4,"file":10,"index":2}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[14,13,15,18,17,16,20,19,12,21,4],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3371,6 +5135,7 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -3382,6 +5147,7 @@ exitCode:: ExitStatus.undefined "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -3394,11 +5160,62 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -3414,6 +5231,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -3427,8 +5245,12 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -3470,7 +5292,7 @@ exitCode:: ExitStatus.undefined "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -3486,7 +5308,8 @@ exitCode:: ExitStatus.undefined }, "referencedMap": { "./src/anotherfilereusingresolution.ts": [ - "./src/filepresent.ts" + "./src/filepresent.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -3502,6 +5325,7 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, @@ -3518,9 +5342,18 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], + "./src/externalthing.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -3538,6 +5371,14 @@ exitCode:: ExitStatus.undefined "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 } ] ], @@ -3575,7 +5416,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -3589,12 +5430,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -3604,6 +5469,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3627,6 +5500,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -3651,7 +5592,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -3668,7 +5609,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 2 + "index": 3 } ] }, @@ -3687,7 +5628,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -3711,7 +5652,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 4 + "index": 5 }, { "kind": "ReferenceFile", @@ -3734,7 +5675,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -3753,7 +5694,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -3772,7 +5713,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 7 } ] }, @@ -3791,7 +5732,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -3800,7 +5741,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -3818,6 +5759,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -3850,18 +5799,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -3889,6 +5907,68 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.jsx" ] }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -3899,7 +5979,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8382 + "size": 12469 } //// [/user/username/projects/myproject/src/newFile.js] @@ -3932,41 +6012,58 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotF Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update -[12:05:07 AM] File change detected. Starting incremental compilation... +[12:05:09 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:05:27 AM] Found 0 errors. Watching for file changes. +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:05:29 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -3990,6 +6087,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -4014,10 +6113,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -4028,7 +6132,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4037,6 +6141,7 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -4049,6 +6154,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -4056,12 +6162,63 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", - "./src/newFile.ts" + "./src/newFile.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -4078,6 +6235,7 @@ exitCode:: ExitStatus.undefined [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -4095,8 +6253,12 @@ exitCode:: ExitStatus.undefined "version": "-497034637-export function something2() { return 20; }", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -4138,7 +6300,7 @@ exitCode:: ExitStatus.undefined "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -4155,7 +6317,8 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4172,13 +6335,27 @@ exitCode:: ExitStatus.undefined "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -4187,7 +6364,19 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - "./src/main.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/newfile.ts", "./src/types.ts" ], @@ -4222,7 +6411,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -4251,7 +6440,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -4260,12 +6449,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -4275,6 +6488,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4295,6 +6516,74 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -4319,7 +6608,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -4336,7 +6625,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -4355,7 +6644,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -4379,7 +6668,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -4402,7 +6691,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -4421,7 +6710,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -4440,7 +6729,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -4459,7 +6748,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -4468,7 +6757,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -4486,6 +6775,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4515,20 +6812,89 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 9 - } - ] - } - ], - "rootFileNames": [ - "./src/anotherFileReusingResolution.ts", - "./src/fileNotFound.ts", - "./src/filePresent.ts", + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalFileNotFound.ts", @@ -4552,6 +6918,68 @@ exitCode:: ExitStatus.undefined "extension": ".ts" } }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -4562,7 +6990,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8235 + "size": 12332 } //// [/user/username/projects/myproject/src/fileNotFound.js] @@ -4589,15 +7017,18 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:05:32 AM] File change detected. Starting incremental compilation... +[12:05:34 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== @@ -4606,24 +7037,37 @@ File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.tsx' does not exist. File '/user/username/projects/myproject/src/fileNotFound.d.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.d.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file -[12:05:48 AM] Found 0 errors. Watching for file changes. +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? + +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:05:50 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -4647,6 +7091,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -4671,11 +7117,15 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -4686,7 +7136,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n",{"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,6,9,8,7,11,10,13,12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":4,"index":1},{"kind":0,"index":1},{"kind":3,"file":13,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"}],"resolvedModules":[["./newFile",3],["./filePresent",1],["./fileNotFound",2]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4695,6 +7145,7 @@ exitCode:: ExitStatus.undefined "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -4707,6 +7158,7 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.d.ts", + "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -4716,12 +7168,63 @@ exitCode:: ExitStatus.undefined "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", - "./src/fileNotFound.tsx" + "./src/fileNotFound.tsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/filenotfound.d.ts" + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -4738,6 +7241,7 @@ exitCode:: ExitStatus.undefined [ "./src/filepresent.ts", "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] ], @@ -4755,8 +7259,12 @@ exitCode:: ExitStatus.undefined "version": "-14992185226-export declare function something2(): number;\n", "signature": "-14992185226-export declare function something2(): number;\n" }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, "./src/anotherfilereusingresolution.ts": { - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, "./src/types.ts": { @@ -4798,7 +7306,7 @@ exitCode:: ExitStatus.undefined "signature": "-4788605446-export declare function foo(): number;\n" }, "./src/main.ts": { - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" } }, @@ -4815,7 +7323,8 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/filenotfound.d.ts" + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -4832,13 +7341,27 @@ exitCode:: ExitStatus.undefined "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", "./src/filenotfound.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -4847,7 +7370,19 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - "./src/main.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], "./src/newfile.ts", "./src/types.ts" ], @@ -4882,7 +7417,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 2 + "index": 3 }, { "kind": "Import", @@ -4911,7 +7446,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", @@ -4920,12 +7455,36 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, { "fileName": "./src/anotherFileReusingResolution.ts", "originalFileName": "./src/anotherFileReusingResolution.ts", "path": "./src/anotherfilereusingresolution.ts", "resolvedPath": "./src/anotherfilereusingresolution.ts", - "version": "-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "flags": 0, "imports": [ { @@ -4935,6 +7494,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -4959,6 +7526,74 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ @@ -4983,7 +7618,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -5000,7 +7635,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 3 + "index": 4 } ] }, @@ -5019,7 +7654,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -5043,7 +7678,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 5 + "index": 6 }, { "kind": "ReferenceFile", @@ -5066,7 +7701,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -5085,7 +7720,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -5104,7 +7739,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 7 + "index": 8 } ] }, @@ -5123,7 +7758,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 10 + "index": 11 } ] }, @@ -5132,7 +7767,7 @@ exitCode:: ExitStatus.undefined "originalFileName": "./src/main.ts", "path": "./src/main.ts", "resolvedPath": "./src/main.ts", - "version": "28260231563-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";something();", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "flags": 0, "imports": [ { @@ -5150,6 +7785,14 @@ exitCode:: ExitStatus.undefined { "kind": 10, "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" } ], "resolvedModules": [ @@ -5183,18 +7826,87 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx" ] } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 10 } ] } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", "./src/fileNotFound.d.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", @@ -5224,6 +7936,68 @@ exitCode:: ExitStatus.undefined "./src/fileNotFound.tsx" ] }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", @@ -5234,6 +8008,1672 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 8247 + "size": 12344 } + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +[12:05:56 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThingNotPresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/externalThingNotPresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:06:16 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[20,18,19,17,16,21,24,23,22,26,25,15,27,7],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/fileNotFound.d.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/main.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10008 +} + +//// [/user/username/projects/myproject/src/externalThingNotPresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); + + +//// [/user/username/projects/myproject/src/externalThingNotPresent.d.ts] +export declare function externalThing2(): number; + + + +Change:: Write .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] +export function externalThing1() { return 10; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +[12:06:22 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. ======== +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThing.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:06:43 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/externalThing.d.ts] +export declare function externalThing1(): number; + + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n",{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[20,18,19,17,16,21,24,23,22,26,25,15,27,7],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./src/filePresent.ts", + "./src/fileNotFound.d.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }", + "signature": "-13282660348-export declare function externalThing1(): number;\n" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/main.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10022 +} + +//// [/user/username/projects/myproject/src/externalThing.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); + + diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js index 41616883f49ed..dbd3ff49461fc 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js @@ -7,6 +7,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ "/user/username/projects/myproject/src/anotherFileReusingResolution.ts", + "/user/username/projects/myproject/src/externalThing.d.ts", "/user/username/projects/myproject/src/filePresent.ts", "/user/username/projects/myproject/src/fileWithRef.ts", "/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts", @@ -27,6 +28,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 un Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 500 undefined WatchType: Closed Script info FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 500 undefined WatchType: Closed Script info FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 500 undefined WatchType: Closed Script info FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 500 undefined WatchType: Closed Script info @@ -48,17 +50,69 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' does not exist. +File '/user/username/projects/myproject/src/externalThing.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (9) + Files (10) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -75,6 +129,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -97,7 +155,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Search path: /user/username/projects/myproject For info: /user/username/projects/myproject/tsconfig.json :: No config files found. Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (9) + Files (10) ----------------------------------------------- Open files: @@ -111,7 +169,7 @@ For info: /user/username/projects/myproject/src/globalMain.ts :: Config file nam Search path: /user/username/projects/myproject For info: /user/username/projects/myproject/tsconfig.json :: No config files found. Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (9) + Files (10) ----------------------------------------------- Open files: @@ -138,9 +196,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -163,11 +226,12 @@ function globalAnotherFileWithSameReferenes() { } function globalMain() { } -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Modify global file:: @@ -194,9 +258,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -220,11 +289,12 @@ function globalMain() { } globalSomething(); -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Add new globalFile and update globalMain file:: @@ -243,15 +313,20 @@ Running: /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (10) + Files (11) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -269,6 +344,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -294,7 +373,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (10) + Files (11) ----------------------------------------------- Open files: @@ -304,7 +383,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (10) + Files (11) ----------------------------------------------- Open files: @@ -330,9 +409,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -361,11 +445,12 @@ globalSomething(); globalFoo(); -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Write file that could not be resolved by referenced path:: @@ -385,15 +470,20 @@ Running: /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 4 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (11) + Files (12) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -412,6 +502,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -441,7 +535,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (11) + Files (12) ----------------------------------------------- Open files: @@ -451,7 +545,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (11) + Files (12) ----------------------------------------------- Open files: @@ -477,9 +571,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -511,11 +610,12 @@ globalSomething(); globalFoo(); -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Modify main file:: @@ -524,7 +624,9 @@ response:{"responseRequired":false} Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 5 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Different program with same set of files @@ -545,9 +647,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -579,12 +686,13 @@ globalSomething(); globalFoo(); -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-15360103634-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"716227661-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; something(); - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Add new module and update main file:: @@ -601,19 +709,24 @@ Running: /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 6 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -633,6 +746,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -665,7 +782,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) ----------------------------------------------- Open files: @@ -675,7 +792,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) ----------------------------------------------- Open files: @@ -701,9 +818,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -738,13 +860,14 @@ globalFoo(); {"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} export function foo() { return 20; } -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-94210647-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { foo } from "./newFile"; import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; something(); - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Write file that could not be resolved @@ -764,17 +887,20 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 7 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -798,6 +924,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' Imported via "./fileNotFound" from file 'src/main.ts' Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -830,7 +960,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) ----------------------------------------------- Open files: @@ -840,7 +970,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) ----------------------------------------------- Open files: @@ -869,9 +999,14 @@ export function something() { return 10; } {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} export function something2() { return 20; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -906,13 +1041,14 @@ globalFoo(); {"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} export function foo() { return 20; } -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-94210647-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { foo } from "./newFile"; import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; something(); - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Delete file that could not be resolved @@ -925,6 +1061,9 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotF Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -936,16 +1075,19 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 8 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -965,6 +1107,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -997,7 +1143,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) ----------------------------------------------- Open files: @@ -1007,7 +1153,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) ----------------------------------------------- Open files: @@ -1033,9 +1179,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -1070,11 +1221,378 @@ globalFoo(); {"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} export function foo() { return 20; } -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-94210647-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { foo } from "./newFile"; import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + + +Create external module file that could not be resolved +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Running: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 9 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (14) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.d.ts + /user/username/projects/myproject/src/externalThingNotPresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' + src/externalThingNotPresent.ts + Imported via "externalThingNotPresent" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThingNotPresent" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (14) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (14) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","version":"5318862050-export function externalThing2() { return 20; }"} +export function externalThing2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + + +Write .ts file that takes preference over resolved .d.ts file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Running: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. ======== +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 10 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (14) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.ts + /user/username/projects/myproject/src/externalThingNotPresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThing" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThingNotPresent.ts + Imported via "externalThingNotPresent" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThingNotPresent" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (14) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (14) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/externalThing.ts","version":"5618215488-export function externalThing1() { return 10; }"} +export function externalThing1() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","version":"5318862050-export function externalThing2() { return 20; }"} +export function externalThing2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js index 41616883f49ed..dbd3ff49461fc 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js @@ -7,6 +7,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ "/user/username/projects/myproject/src/anotherFileReusingResolution.ts", + "/user/username/projects/myproject/src/externalThing.d.ts", "/user/username/projects/myproject/src/filePresent.ts", "/user/username/projects/myproject/src/fileWithRef.ts", "/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts", @@ -27,6 +28,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 un Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 500 undefined WatchType: Closed Script info FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 500 undefined WatchType: Closed Script info FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 500 undefined WatchType: Closed Script info FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 500 undefined WatchType: Closed Script info @@ -48,17 +50,69 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' does not exist. +File '/user/username/projects/myproject/src/externalThing.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (9) + Files (10) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -75,6 +129,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -97,7 +155,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Search path: /user/username/projects/myproject For info: /user/username/projects/myproject/tsconfig.json :: No config files found. Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (9) + Files (10) ----------------------------------------------- Open files: @@ -111,7 +169,7 @@ For info: /user/username/projects/myproject/src/globalMain.ts :: Config file nam Search path: /user/username/projects/myproject For info: /user/username/projects/myproject/tsconfig.json :: No config files found. Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (9) + Files (10) ----------------------------------------------- Open files: @@ -138,9 +196,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -163,11 +226,12 @@ function globalAnotherFileWithSameReferenes() { } function globalMain() { } -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Modify global file:: @@ -194,9 +258,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -220,11 +289,12 @@ function globalMain() { } globalSomething(); -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Add new globalFile and update globalMain file:: @@ -243,15 +313,20 @@ Running: /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (10) + Files (11) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -269,6 +344,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -294,7 +373,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (10) + Files (11) ----------------------------------------------- Open files: @@ -304,7 +383,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (10) + Files (11) ----------------------------------------------- Open files: @@ -330,9 +409,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -361,11 +445,12 @@ globalSomething(); globalFoo(); -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Write file that could not be resolved by referenced path:: @@ -385,15 +470,20 @@ Running: /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 4 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (11) + Files (12) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -412,6 +502,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -441,7 +535,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (11) + Files (12) ----------------------------------------------- Open files: @@ -451,7 +545,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (11) + Files (12) ----------------------------------------------- Open files: @@ -477,9 +571,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -511,11 +610,12 @@ globalSomething(); globalFoo(); -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Modify main file:: @@ -524,7 +624,9 @@ response:{"responseRequired":false} Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 5 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Different program with same set of files @@ -545,9 +647,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -579,12 +686,13 @@ globalSomething(); globalFoo(); -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-15360103634-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"716227661-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; something(); - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Add new module and update main file:: @@ -601,19 +709,24 @@ Running: /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 6 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -633,6 +746,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -665,7 +782,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) ----------------------------------------------- Open files: @@ -675,7 +792,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) ----------------------------------------------- Open files: @@ -701,9 +818,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -738,13 +860,14 @@ globalFoo(); {"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} export function foo() { return 20; } -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-94210647-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { foo } from "./newFile"; import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; something(); - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Write file that could not be resolved @@ -764,17 +887,20 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 7 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -798,6 +924,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' Imported via "./fileNotFound" from file 'src/main.ts' Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -830,7 +960,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) ----------------------------------------------- Open files: @@ -840,7 +970,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) ----------------------------------------------- Open files: @@ -869,9 +999,14 @@ export function something() { return 10; } {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} export function something2() { return 20; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -906,13 +1041,14 @@ globalFoo(); {"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} export function foo() { return 20; } -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-94210647-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { foo } from "./newFile"; import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; something(); - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Delete file that could not be resolved @@ -925,6 +1061,9 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotF Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -936,16 +1075,19 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 8 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -965,6 +1107,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -997,7 +1143,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) ----------------------------------------------- Open files: @@ -1007,7 +1153,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) ----------------------------------------------- Open files: @@ -1033,9 +1179,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -1070,11 +1221,378 @@ globalFoo(); {"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} export function foo() { return 20; } -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-94210647-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { foo } from "./newFile"; import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + + +Create external module file that could not be resolved +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Running: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 9 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (14) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.d.ts + /user/username/projects/myproject/src/externalThingNotPresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' + src/externalThingNotPresent.ts + Imported via "externalThingNotPresent" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThingNotPresent" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (14) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (14) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","version":"5318862050-export function externalThing2() { return 20; }"} +export function externalThing2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + + +Write .ts file that takes preference over resolved .d.ts file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Running: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. ======== +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 10 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (14) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.ts + /user/username/projects/myproject/src/externalThingNotPresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThing" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThingNotPresent.ts + Imported via "externalThingNotPresent" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThingNotPresent" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (14) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (14) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/externalThing.ts","version":"5618215488-export function externalThing1() { return 10; }"} +export function externalThing1() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","version":"5318862050-export function externalThing2() { return 20; }"} +export function externalThing2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; diff --git a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js index 1c08799aace38..bf20f6d5fef7f 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js +++ b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js @@ -7,6 +7,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ "/user/username/projects/myproject/src/anotherFileReusingResolution.ts", + "/user/username/projects/myproject/src/externalThing.d.ts", "/user/username/projects/myproject/src/filePresent.ts", "/user/username/projects/myproject/src/fileWithRef.ts", "/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts", @@ -27,6 +28,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 un Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/anotherFileReusingResolution.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 500 undefined WatchType: Closed Script info FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/filePresent.ts 500 undefined WatchType: Closed Script info FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileWithRef.ts 500 undefined WatchType: Closed Script info FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 500 undefined WatchType: Closed Script info @@ -40,9 +42,10 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_mod Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Completely Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (9) + Files (10) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -59,6 +62,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -81,7 +88,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Search path: /user/username/projects/myproject For info: /user/username/projects/myproject/tsconfig.json :: No config files found. Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (9) + Files (10) ----------------------------------------------- Open files: @@ -95,7 +102,7 @@ For info: /user/username/projects/myproject/src/globalMain.ts :: Config file nam Search path: /user/username/projects/myproject For info: /user/username/projects/myproject/tsconfig.json :: No config files found. Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (9) + Files (10) ----------------------------------------------- Open files: @@ -122,9 +129,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -147,11 +159,12 @@ function globalAnotherFileWithSameReferenes() { } function globalMain() { } -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Modify global file:: @@ -178,9 +191,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -204,11 +222,12 @@ function globalMain() { } globalSomething(); -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Add new globalFile and update globalMain file:: @@ -224,6 +243,7 @@ Running: /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' does not exist. @@ -234,14 +254,60 @@ File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (10) + Files (11) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -259,6 +325,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -284,7 +354,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (10) + Files (11) ----------------------------------------------- Open files: @@ -294,7 +364,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (10) + Files (11) ----------------------------------------------- Open files: @@ -320,9 +390,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -351,11 +426,12 @@ globalSomething(); globalFoo(); -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Write file that could not be resolved by referenced path:: @@ -375,15 +451,20 @@ Running: /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 4 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (11) + Files (12) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -402,6 +483,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -431,7 +516,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (11) + Files (12) ----------------------------------------------- Open files: @@ -441,7 +526,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (11) + Files (12) ----------------------------------------------- Open files: @@ -467,9 +552,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -501,11 +591,12 @@ globalSomething(); globalFoo(); -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-9137062678-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Modify main file:: @@ -514,7 +605,9 @@ response:{"responseRequired":false} Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 5 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Different program with same set of files @@ -535,9 +628,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -569,12 +667,13 @@ globalSomething(); globalFoo(); -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-15360103634-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"716227661-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; something(); - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Add new module and update main file:: @@ -591,19 +690,24 @@ Running: /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module './newFile' from '/user/username/projects/myproject/src/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name resolution result. ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 6 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -623,6 +727,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -655,7 +763,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) ----------------------------------------------- Open files: @@ -665,7 +773,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) ----------------------------------------------- Open files: @@ -691,9 +799,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -728,13 +841,14 @@ globalFoo(); {"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} export function foo() { return 20; } -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-94210647-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { foo } from "./newFile"; import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; something(); - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Write file that could not be resolved @@ -757,17 +871,25 @@ File '/user/username/projects/myproject/src/filePresent.ts' exist - use it as a Module resolution kind is not specified, using 'Classic'. File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. ======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' does not exist. +File '/user/username/projects/myproject/src/externalThing.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThing.d.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 7 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -791,6 +913,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' Imported via "./fileNotFound" from file 'src/main.ts' Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -823,7 +949,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) ----------------------------------------------- Open files: @@ -833,7 +959,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) ----------------------------------------------- Open files: @@ -862,9 +988,14 @@ export function something() { return 10; } {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} export function something2() { return 20; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -899,13 +1030,14 @@ globalFoo(); {"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} export function foo() { return 20; } -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-94210647-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { foo } from "./newFile"; import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; something(); - +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; Delete file that could not be resolved @@ -918,6 +1050,9 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotF Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -929,16 +1064,19 @@ File '/user/username/projects/myproject/src/fileNotFound.d.ts' does not exist. File '/user/username/projects/myproject/src/fileNotFound.js' does not exist. File '/user/username/projects/myproject/src/fileNotFound.jsx' does not exist. ======== Module name './fileNotFound' was not resolved. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 8 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -958,6 +1096,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' src/anotherFileReusingResolution.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/types.ts @@ -990,7 +1132,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) ----------------------------------------------- Open files: @@ -1000,7 +1142,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) ----------------------------------------------- Open files: @@ -1026,9 +1168,14 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-18180953903-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";"} +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { something } from "./filePresent"; -import { something2 } from "./fileNotFound"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} interface SomeType {} @@ -1063,11 +1210,378 @@ globalFoo(); {"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} export function foo() { return 20; } -{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-94210647-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\n"} +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} import { foo } from "./newFile"; import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + + +Create external module file that could not be resolved +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Running: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 9 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (14) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.d.ts + /user/username/projects/myproject/src/externalThingNotPresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' + src/externalThingNotPresent.ts + Imported via "externalThingNotPresent" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThingNotPresent" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (14) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (14) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","version":"5318862050-export function externalThing2() { return 20; }"} +export function externalThing2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + + +Write .ts file that takes preference over resolved .d.ts file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Running: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThing.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. ======== +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 10 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (14) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/externalThing.ts + /user/username/projects/myproject/src/externalThingNotPresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/externalThing.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThing" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThingNotPresent.ts + Imported via "externalThingNotPresent" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThingNotPresent" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (14) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (14) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/externalThing.ts","version":"5618215488-export function externalThing1() { return 10; }"} +export function externalThing1() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","version":"5318862050-export function externalThing2() { return 20; }"} +export function externalThing2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; From 8ec6dab35ab5fa8ecb569b535318fdf0c177a8cc Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 18 May 2021 13:33:42 -0700 Subject: [PATCH 43/48] Do not watch failed lookup locations in persistResolutions if resolved to a file This ensure --watch and editor behaviour matches with what happens without watch and there is no confusion as well as we are not watching unnecessary things --- src/compiler/resolutionCache.ts | 22 ++- ...er-resolutions-are-cleaned-with-outFile.js | 147 +++++++++++------- ...can-build-after-resolutions-are-cleaned.js | 133 ++++++++-------- ...-saved-in-tsbuildinfo-file-with-outFile.js | 146 ++++++++++------- ...ons-have-been-saved-in-tsbuildinfo-file.js | 132 +++++++++------- ...nd-uses-it-for-new-program-with-outFile.js | 147 +++++++++++------- ...-resolution-and-uses-it-for-new-program.js | 133 ++++++++-------- ...r-program-if-tsbuildinfo-is-not-present.js | 34 ++-- ...is-present-but-program-is-not-persisted.js | 34 ++-- .../uses-saved-resolution-for-program.js | 34 ++-- 10 files changed, 546 insertions(+), 416 deletions(-) diff --git a/src/compiler/resolutionCache.ts b/src/compiler/resolutionCache.ts index 378cf691cabae..ef3210a7554d3 100644 --- a/src/compiler/resolutionCache.ts +++ b/src/compiler/resolutionCache.ts @@ -33,6 +33,7 @@ namespace ts { refCount?: number; // Files that have this resolution using files?: Path[]; + skipWatchingFailedLookup?: true; } interface ResolutionWithResolvedFileName { @@ -600,18 +601,24 @@ namespace ts { ) { if (resolution.refCount) { resolution.refCount++; - Debug.assertDefined(resolution.files); + Debug.checkDefined(resolution.files); } else { resolution.refCount = 1; Debug.assert(length(resolution.files) === 0); // This resolution shouldnt be referenced by any file yet - if (isExternalModuleNameRelative(name)) { - watchFailedLookupLocationOfResolution(resolution); + const resolved = getResolutionWithResolvedFileName(resolution); + // Watch resolution only if not persisting resolutions or if its not resolved to a file + if (!resolutionHost.getCompilationSettings().persistResolutions || !resolved?.resolvedFileName) { + if (isExternalModuleNameRelative(name)) { + watchFailedLookupLocationOfResolution(resolution); + } + else { + nonRelativeExternalModuleResolutions.add(name, resolution); + } } else { - nonRelativeExternalModuleResolutions.add(name, resolution); + resolution.skipWatchingFailedLookup = true; } - const resolved = getResolutionWithResolvedFileName(resolution); if (resolved && resolved.resolvedFileName) { resolvedFileToResolution.add(resolutionHost.toPath(resolved.resolvedFileName), resolution); } @@ -677,7 +684,7 @@ namespace ts { filePath: Path, getResolutionWithResolvedFileName: GetResolutionWithResolvedFileName, ) { - unorderedRemoveItem(Debug.assertDefined(resolution.files), filePath); + unorderedRemoveItem(Debug.checkDefined(resolution.files), filePath); resolution.refCount!--; if (resolution.refCount) { return; @@ -687,6 +694,7 @@ namespace ts { resolvedFileToResolution.remove(resolutionHost.toPath(resolved.resolvedFileName), resolution); } + if (resolution.skipWatchingFailedLookup) return; if (!unorderedRemoveItem(resolutionsWithFailedLookups, resolution)) { // If not watching failed lookups, it wont be there in resolutionsWithFailedLookups return; @@ -779,7 +787,7 @@ namespace ts { for (const resolution of resolutions) { if (resolution.isInvalidated || !canInvalidate(resolution)) continue; resolution.isInvalidated = invalidated = true; - for (const containingFilePath of Debug.assertDefined(resolution.files)) { + for (const containingFilePath of Debug.checkDefined(resolution.files)) { (filesWithInvalidatedResolutions || (filesWithInvalidatedResolutions = new Set())).add(containingFilePath); // When its a file with inferred types resolution, invalidate type reference directive resolution hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames || endsWith(containingFilePath, inferredTypesContainingFile); diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index e0edd95bc9b13..f908c1d358863 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -9175,7 +9175,6 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Scheduling update [12:03:42 AM] File change detected. Starting incremental compilation... Reloading new file names and options @@ -9184,19 +9183,16 @@ CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. -======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/externalThing.ts' exist - use it as a name resolution result. -======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -9217,9 +9213,10 @@ Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/externalThing.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -9239,6 +9236,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -9283,13 +9282,6 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); -define("src/externalThing", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing1 = void 0; - function externalThing1() { return 10; } - exports.externalThing1 = externalThing1; -}); define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -9301,6 +9293,13 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); /// function globalSomething() { return 10; } function globalSomething2() { return 20; } @@ -9332,13 +9331,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, declare module "src/filePresent" { export function something(): number; } -declare module "src/externalThing" { - export function externalThing1(): number; -} declare module "src/externalThingNotPresent" { export function externalThing2(): number; } declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} interface SomeType { } declare function globalSomething(): number; @@ -9353,7 +9352,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1824,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":658,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1824,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":658,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":3,"file":15,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,20,18,16,21,24,23,22,26,25,15,27,7],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"failedLookupLocations":[28,29,30,31,32]},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[20,33]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -9361,9 +9360,9 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", - "./src/externalThing.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", "./src/types.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -9397,9 +9396,10 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -9410,9 +9410,10 @@ declare module "src/main" { } "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/externalThing.ts", + "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -9424,12 +9425,13 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.tsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], [ @@ -9446,7 +9448,7 @@ declare module "src/main" { } ], [ "./src/filepresent.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] @@ -9459,8 +9461,8 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/externalthing.ts": { - "version": "5618215488-export function externalThing1() { return 10; }" + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" }, "./src/externalthingnotpresent.ts": { "version": "5318862050-export function externalThing2() { return 20; }" @@ -9468,6 +9470,9 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": { "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "affectsGlobalScope": true @@ -9516,7 +9521,7 @@ declare module "src/main" { } "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], "./src/filewithref.ts": [ @@ -9533,7 +9538,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] @@ -9585,11 +9590,11 @@ declare module "src/main" { } ] }, { - "fileName": "./src/externalThing.ts", - "originalFileName": "./src/externalThing.ts", - "path": "./src/externalthing.ts", - "resolvedPath": "./src/externalthing.ts", - "version": "5618215488-export function externalThing1() { return 10; }", + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", "flags": 0, "includeReasons": [ { @@ -9597,10 +9602,6 @@ declare module "src/main" { } "file": "./src/anotherfilereusingresolution.ts", "index": 2 }, - { - "kind": "RootFile", - "index": 1 - }, { "kind": "Import", "file": "./src/main.ts", @@ -9683,9 +9684,13 @@ declare module "src/main" { } "externalThing", { "resolvedModule": { - "resolvedFileName": "./src/externalThing.ts", - "extension": ".ts" - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] } ], [ @@ -9705,6 +9710,20 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -9932,9 +9951,13 @@ declare module "src/main" { } "externalThing", { "resolvedModule": { - "resolvedFileName": "./src/externalThing.ts", - "extension": ".ts" - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] } ], [ @@ -9988,9 +10011,13 @@ declare module "src/main" { } }, { "resolvedModule": { - "resolvedFileName": "./src/externalThing.ts", - "extension": ".ts" - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] }, { "resolvedModule": { @@ -10008,7 +10035,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 9281 + "size": 9642 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -10023,13 +10050,6 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); -define("src/externalThing", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing1 = void 0; - function externalThing1() { return 10; } - exports.externalThing1 = externalThing1; -}); define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -10041,6 +10061,13 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); /// function globalSomething() { return 10; } function globalSomething2() { return 20; } @@ -10075,13 +10102,13 @@ text: (0-658) declare module "src/filePresent" { export function something(): number; } -declare module "src/externalThing" { - export function externalThing1(): number; -} declare module "src/externalThingNotPresent" { export function externalThing2(): number; } declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} interface SomeType { } declare function globalSomething(): number; diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js index 0d21695b6fac3..891e22f6b826b 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -8006,17 +8006,15 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThingNotPresent.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/externalThingNotPresent.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -8088,7 +8086,6 @@ FsWatches:: FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -8823,13 +8820,9 @@ export function externalThing1() { return 10; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Scheduling update [12:06:28 AM] File change detected. Starting incremental compilation... Reloading new file names and options @@ -8839,24 +8832,21 @@ CreatingProgramWith:: options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. -======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/externalThing.ts' exist - use it as a name resolution result. -======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. -Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThing.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:06:49 AM] Found 0 errors. Watching for file changes. +error TS5055: Cannot write file '/user/username/projects/myproject/src/externalThing.d.ts' because it would overwrite input file. + +[12:06:34 AM] Found 1 error. Watching for file changes. @@ -8867,9 +8857,10 @@ Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.d.ts -/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/externalThing.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -8882,8 +8873,6 @@ Program files:: Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/externalThing.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -8892,6 +8881,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -8924,22 +8915,13 @@ FsWatches:: FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/src/externalThing.d.ts] -export declare function externalThing1(): number; - - -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents -//// [/user/username/projects/myproject/src/main.js] file written with same contents -//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n",{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[20,18,19,17,16,21,24,23,22,26,25,15,27,7],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,6,4,5,3,2,9,12,11,10,14,13,16,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":22,"originalFileName":22,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[21,22,20,18,17,23,26,25,24,28,27,16,29,8],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[22,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -8948,9 +8930,10 @@ export declare function externalThing1(): number; "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.d.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -8962,9 +8945,10 @@ export declare function externalThing1(): number; "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.d.ts", - "./src/externalThing.ts", + "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -8973,13 +8957,14 @@ export declare function externalThing1(): number; "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", - "./src/fileNotFound.tsx" + "./src/fileNotFound.tsx", + "./src/externalThing.tsx" ], "fileNamesList": [ [ "./src/filepresent.ts", "./src/filenotfound.d.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], [ @@ -8997,7 +8982,7 @@ export declare function externalThing1(): number; [ "./src/filepresent.ts", "./src/filenotfound.d.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] @@ -9016,9 +9001,9 @@ export declare function externalThing1(): number; "version": "-14992185226-export declare function something2(): number;\n", "signature": "-14992185226-export declare function something2(): number;\n" }, - "./src/externalthing.ts": { - "version": "5618215488-export function externalThing1() { return 10; }", - "signature": "-13282660348-export declare function externalThing1(): number;\n" + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" }, "./src/externalthingnotpresent.ts": { "version": "5318862050-export function externalThing2() { return 20; }", @@ -9028,6 +9013,10 @@ export declare function externalThing1(): number; "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }", + "signature": "-13282660348-export declare function externalThing1(): number;\n" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10760962856-interface SomeType {\n}\n", @@ -9085,7 +9074,7 @@ export declare function externalThing1(): number; "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", "./src/filenotfound.d.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], "./src/filewithref.ts": [ @@ -9103,7 +9092,7 @@ export declare function externalThing1(): number; "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.d.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] @@ -9112,7 +9101,7 @@ export declare function externalThing1(): number; "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", "./src/anotherfilereusingresolution.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/filenotfound.d.ts", "./src/filepresent.ts", @@ -9196,11 +9185,11 @@ export declare function externalThing1(): number; ] }, { - "fileName": "./src/externalThing.ts", - "originalFileName": "./src/externalThing.ts", - "path": "./src/externalthing.ts", - "resolvedPath": "./src/externalthing.ts", - "version": "5618215488-export function externalThing1() { return 10; }", + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", "flags": 0, "includeReasons": [ { @@ -9208,10 +9197,6 @@ export declare function externalThing1(): number; "file": "./src/anotherfilereusingresolution.ts", "index": 2 }, - { - "kind": "RootFile", - "index": 1 - }, { "kind": "Import", "file": "./src/main.ts", @@ -9295,9 +9280,13 @@ export declare function externalThing1(): number; "externalThing", { "resolvedModule": { - "resolvedFileName": "./src/externalThing.ts", - "extension": ".ts" - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] } ], [ @@ -9317,6 +9306,20 @@ export declare function externalThing1(): number; } ] }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -9545,9 +9548,13 @@ export declare function externalThing1(): number; "externalThing", { "resolvedModule": { - "resolvedFileName": "./src/externalThing.ts", - "extension": ".ts" - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] } ], [ @@ -9603,9 +9610,13 @@ export declare function externalThing1(): number; }, { "resolvedModule": { - "resolvedFileName": "./src/externalThing.ts", - "extension": ".ts" - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] }, { "resolvedModule": { @@ -9623,7 +9634,7 @@ export declare function externalThing1(): number; } }, "version": "FakeTSVersion", - "size": 10022 + "size": 10354 } //// [/user/username/projects/myproject/src/externalThing.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 0fab608e192ba..599f0099c44a9 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -9156,19 +9156,16 @@ CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. -======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/externalThing.ts' exist - use it as a name resolution result. -======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -9189,9 +9186,10 @@ Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/externalThing.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -9211,6 +9209,8 @@ WatchedFiles:: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -9255,13 +9255,6 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); -define("src/externalThing", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing1 = void 0; - function externalThing1() { return 10; } - exports.externalThing1 = externalThing1; -}); define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -9273,6 +9266,13 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); /// function globalSomething() { return 10; } function globalSomething2() { return 20; } @@ -9304,13 +9304,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, declare module "src/filePresent" { export function something(): number; } -declare module "src/externalThing" { - export function externalThing1(): number; -} declare module "src/externalThingNotPresent" { export function externalThing2(): number; } declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} interface SomeType { } declare function globalSomething(): number; @@ -9325,7 +9325,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1824,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":658,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1824,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":658,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":3,"file":15,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,20,18,16,21,24,23,22,26,25,15,27,7],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"failedLookupLocations":[28,29,30,31,32]},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[20,33]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -9333,9 +9333,9 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", - "./src/externalThing.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", "./src/types.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -9369,9 +9369,10 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -9382,9 +9383,10 @@ declare module "src/main" { } "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/externalThing.ts", + "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -9396,12 +9398,13 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.tsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], [ @@ -9418,7 +9421,7 @@ declare module "src/main" { } ], [ "./src/filepresent.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] @@ -9431,8 +9434,8 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/externalthing.ts": { - "version": "5618215488-export function externalThing1() { return 10; }" + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" }, "./src/externalthingnotpresent.ts": { "version": "5318862050-export function externalThing2() { return 20; }" @@ -9440,6 +9443,9 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": { "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "affectsGlobalScope": true @@ -9488,7 +9494,7 @@ declare module "src/main" { } "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], "./src/filewithref.ts": [ @@ -9505,7 +9511,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] @@ -9557,11 +9563,11 @@ declare module "src/main" { } ] }, { - "fileName": "./src/externalThing.ts", - "originalFileName": "./src/externalThing.ts", - "path": "./src/externalthing.ts", - "resolvedPath": "./src/externalthing.ts", - "version": "5618215488-export function externalThing1() { return 10; }", + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", "flags": 0, "includeReasons": [ { @@ -9569,10 +9575,6 @@ declare module "src/main" { } "file": "./src/anotherfilereusingresolution.ts", "index": 2 }, - { - "kind": "RootFile", - "index": 1 - }, { "kind": "Import", "file": "./src/main.ts", @@ -9655,9 +9657,13 @@ declare module "src/main" { } "externalThing", { "resolvedModule": { - "resolvedFileName": "./src/externalThing.ts", - "extension": ".ts" - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] } ], [ @@ -9677,6 +9683,20 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -9904,9 +9924,13 @@ declare module "src/main" { } "externalThing", { "resolvedModule": { - "resolvedFileName": "./src/externalThing.ts", - "extension": ".ts" - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] } ], [ @@ -9960,9 +9984,13 @@ declare module "src/main" { } }, { "resolvedModule": { - "resolvedFileName": "./src/externalThing.ts", - "extension": ".ts" - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] }, { "resolvedModule": { @@ -9980,7 +10008,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 9281 + "size": 9642 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -9995,13 +10023,6 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); -define("src/externalThing", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing1 = void 0; - function externalThing1() { return 10; } - exports.externalThing1 = externalThing1; -}); define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -10013,6 +10034,13 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); /// function globalSomething() { return 10; } function globalSomething2() { return 20; } @@ -10047,13 +10075,13 @@ text: (0-658) declare module "src/filePresent" { export function something(): number; } -declare module "src/externalThing" { - export function externalThing1(): number; -} declare module "src/externalThingNotPresent" { export function externalThing2(): number; } declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} interface SomeType { } declare function globalSomething(): number; diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index b5683b508cba4..da0546ab992cb 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -7195,6 +7195,8 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations @@ -7202,13 +7204,9 @@ Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/mypr DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThingNotPresent.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/externalThingNotPresent.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations [12:06:13 AM] Found 0 errors. Watching for file changes. @@ -7279,7 +7277,6 @@ FsWatchesRecursive:: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -8015,9 +8012,6 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations [12:06:19 AM] File change detected. Starting incremental compilation... Reloading new file names and options @@ -8027,24 +8021,21 @@ CreatingProgramWith:: options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. -======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/externalThing.ts' exist - use it as a name resolution result. -======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. -Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThing.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:06:40 AM] Found 0 errors. Watching for file changes. +error TS5055: Cannot write file '/user/username/projects/myproject/src/externalThing.d.ts' because it would overwrite input file. + +[12:06:25 AM] Found 1 error. Watching for file changes. @@ -8055,9 +8046,10 @@ Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.d.ts -/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/externalThing.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -8070,8 +8062,6 @@ Program files:: Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/externalThing.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -8080,6 +8070,8 @@ WatchedFiles:: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/anotherfilereusingresolution.ts: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -8114,20 +8106,11 @@ FsWatchesRecursive:: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/src/externalThing.d.ts] -export declare function externalThing1(): number; - - -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents -//// [/user/username/projects/myproject/src/main.js] file written with same contents -//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n",{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[20,18,19,17,16,21,24,23,22,26,25,15,27,7],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,6,4,5,3,2,9,12,11,10,14,13,16,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":22,"originalFileName":22,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[21,22,20,18,17,23,26,25,24,28,27,16,29,8],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[22,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -8136,9 +8119,10 @@ export declare function externalThing1(): number; "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.d.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -8150,9 +8134,10 @@ export declare function externalThing1(): number; "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.d.ts", - "./src/externalThing.ts", + "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -8161,13 +8146,14 @@ export declare function externalThing1(): number; "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", - "./src/fileNotFound.tsx" + "./src/fileNotFound.tsx", + "./src/externalThing.tsx" ], "fileNamesList": [ [ "./src/filepresent.ts", "./src/filenotfound.d.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], [ @@ -8185,7 +8171,7 @@ export declare function externalThing1(): number; [ "./src/filepresent.ts", "./src/filenotfound.d.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] @@ -8204,9 +8190,9 @@ export declare function externalThing1(): number; "version": "-14992185226-export declare function something2(): number;\n", "signature": "-14992185226-export declare function something2(): number;\n" }, - "./src/externalthing.ts": { - "version": "5618215488-export function externalThing1() { return 10; }", - "signature": "-13282660348-export declare function externalThing1(): number;\n" + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" }, "./src/externalthingnotpresent.ts": { "version": "5318862050-export function externalThing2() { return 20; }", @@ -8216,6 +8202,10 @@ export declare function externalThing1(): number; "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }", + "signature": "-13282660348-export declare function externalThing1(): number;\n" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10760962856-interface SomeType {\n}\n", @@ -8273,7 +8263,7 @@ export declare function externalThing1(): number; "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", "./src/filenotfound.d.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], "./src/filewithref.ts": [ @@ -8291,7 +8281,7 @@ export declare function externalThing1(): number; "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.d.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] @@ -8300,7 +8290,7 @@ export declare function externalThing1(): number; "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", "./src/anotherfilereusingresolution.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/filenotfound.d.ts", "./src/filepresent.ts", @@ -8384,11 +8374,11 @@ export declare function externalThing1(): number; ] }, { - "fileName": "./src/externalThing.ts", - "originalFileName": "./src/externalThing.ts", - "path": "./src/externalthing.ts", - "resolvedPath": "./src/externalthing.ts", - "version": "5618215488-export function externalThing1() { return 10; }", + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", "flags": 0, "includeReasons": [ { @@ -8396,10 +8386,6 @@ export declare function externalThing1(): number; "file": "./src/anotherfilereusingresolution.ts", "index": 2 }, - { - "kind": "RootFile", - "index": 1 - }, { "kind": "Import", "file": "./src/main.ts", @@ -8483,9 +8469,13 @@ export declare function externalThing1(): number; "externalThing", { "resolvedModule": { - "resolvedFileName": "./src/externalThing.ts", - "extension": ".ts" - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] } ], [ @@ -8505,6 +8495,20 @@ export declare function externalThing1(): number; } ] }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -8733,9 +8737,13 @@ export declare function externalThing1(): number; "externalThing", { "resolvedModule": { - "resolvedFileName": "./src/externalThing.ts", - "extension": ".ts" - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] } ], [ @@ -8791,9 +8799,13 @@ export declare function externalThing1(): number; }, { "resolvedModule": { - "resolvedFileName": "./src/externalThing.ts", - "extension": ".ts" - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] }, { "resolvedModule": { @@ -8811,7 +8823,7 @@ export declare function externalThing1(): number; } }, "version": "FakeTSVersion", - "size": 10022 + "size": 10354 } //// [/user/username/projects/myproject/src/externalThing.js] diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index bf54753f84695..889c7945a470d 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -9176,7 +9176,6 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Scheduling update [12:03:30 AM] File change detected. Starting incremental compilation... Reloading new file names and options @@ -9185,19 +9184,16 @@ CreatingProgramWith:: roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. -======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/externalThing.ts' exist - use it as a name resolution result. -======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -9218,9 +9214,10 @@ Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts -/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/externalThing.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -9240,6 +9237,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -9284,13 +9283,6 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); -define("src/externalThing", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing1 = void 0; - function externalThing1() { return 10; } - exports.externalThing1 = externalThing1; -}); define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -9302,6 +9294,13 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); /// function globalSomething() { return 10; } function globalSomething2() { return 20; } @@ -9333,13 +9332,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, declare module "src/filePresent" { export function something(): number; } -declare module "src/externalThing" { - export function externalThing1(): number; -} declare module "src/externalThingNotPresent" { export function externalThing2(): number; } declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} interface SomeType { } declare function globalSomething(): number; @@ -9354,7 +9353,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1824,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":658,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1824,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":658,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":3,"file":15,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,20,18,16,21,24,23,22,26,25,15,27,7],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"failedLookupLocations":[28,29,30,31,32]},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[20,33]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -9362,9 +9361,9 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", - "./src/externalThing.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", "./src/types.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -9398,9 +9397,10 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -9411,9 +9411,10 @@ declare module "src/main" { } "./src/newfile.ts", "./src/main.ts", "./src/filePresent.ts", - "./src/externalThing.ts", + "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -9425,12 +9426,13 @@ declare module "src/main" { } "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", "./src/fileNotFound.js", - "./src/fileNotFound.jsx" + "./src/fileNotFound.jsx", + "./src/externalThing.tsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], [ @@ -9447,7 +9449,7 @@ declare module "src/main" { } ], [ "./src/filepresent.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] @@ -9460,8 +9462,8 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/externalthing.ts": { - "version": "5618215488-export function externalThing1() { return 10; }" + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" }, "./src/externalthingnotpresent.ts": { "version": "5318862050-export function externalThing2() { return 20; }" @@ -9469,6 +9471,9 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": { "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "affectsGlobalScope": true @@ -9517,7 +9522,7 @@ declare module "src/main" { } "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], "./src/filewithref.ts": [ @@ -9534,7 +9539,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] @@ -9586,11 +9591,11 @@ declare module "src/main" { } ] }, { - "fileName": "./src/externalThing.ts", - "originalFileName": "./src/externalThing.ts", - "path": "./src/externalthing.ts", - "resolvedPath": "./src/externalthing.ts", - "version": "5618215488-export function externalThing1() { return 10; }", + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", "flags": 0, "includeReasons": [ { @@ -9598,10 +9603,6 @@ declare module "src/main" { } "file": "./src/anotherfilereusingresolution.ts", "index": 2 }, - { - "kind": "RootFile", - "index": 1 - }, { "kind": "Import", "file": "./src/main.ts", @@ -9684,9 +9685,13 @@ declare module "src/main" { } "externalThing", { "resolvedModule": { - "resolvedFileName": "./src/externalThing.ts", - "extension": ".ts" - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] } ], [ @@ -9706,6 +9711,20 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -9933,9 +9952,13 @@ declare module "src/main" { } "externalThing", { "resolvedModule": { - "resolvedFileName": "./src/externalThing.ts", - "extension": ".ts" - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] } ], [ @@ -9989,9 +10012,13 @@ declare module "src/main" { } }, { "resolvedModule": { - "resolvedFileName": "./src/externalThing.ts", - "extension": ".ts" - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] }, { "resolvedModule": { @@ -10009,7 +10036,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 9281 + "size": 9642 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -10024,13 +10051,6 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); -define("src/externalThing", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing1 = void 0; - function externalThing1() { return 10; } - exports.externalThing1 = externalThing1; -}); define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -10042,6 +10062,13 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); /// function globalSomething() { return 10; } function globalSomething2() { return 20; } @@ -10076,13 +10103,13 @@ text: (0-658) declare module "src/filePresent" { export function something(): number; } -declare module "src/externalThing" { - export function externalThing1(): number; -} declare module "src/externalThingNotPresent" { export function externalThing2(): number; } declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} interface SomeType { } declare function globalSomething(): number; diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index 4818750753ad0..32a8a36bc017c 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -8047,17 +8047,15 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThingNotPresent.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/externalThingNotPresent.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -8129,7 +8127,6 @@ FsWatches:: FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -8864,13 +8861,9 @@ export function externalThing1() { return 10; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Scheduling update [12:06:22 AM] File change detected. Starting incremental compilation... Reloading new file names and options @@ -8880,24 +8873,21 @@ CreatingProgramWith:: options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. -======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/externalThing.ts' exist - use it as a name resolution result. -======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. -Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThing.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:06:43 AM] Found 0 errors. Watching for file changes. +error TS5055: Cannot write file '/user/username/projects/myproject/src/externalThing.d.ts' because it would overwrite input file. + +[12:06:28 AM] Found 1 error. Watching for file changes. @@ -8908,9 +8898,10 @@ Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.d.ts -/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/externalThing.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -8923,8 +8914,6 @@ Program files:: Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/externalThing.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/main.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -8933,6 +8922,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} /user/username/projects/myproject/src/filepresent.ts: {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} /user/username/projects/myproject/src/filewithref.ts: {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} /user/username/projects/myproject/src/types.ts: @@ -8965,22 +8956,13 @@ FsWatches:: FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/src/externalThing.d.ts] -export declare function externalThing1(): number; - - -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents -//// [/user/username/projects/myproject/src/main.js] file written with same contents -//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n",{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[20,18,19,17,16,21,24,23,22,26,25,15,27,7],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,6,4,5,3,2,9,12,11,10,14,13,16,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":22,"originalFileName":22,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[21,22,20,18,17,23,26,25,24,28,27,16,29,8],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[22,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -8989,9 +8971,10 @@ export declare function externalThing1(): number; "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", "./src/filenotfound.d.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -9003,9 +8986,10 @@ export declare function externalThing1(): number; "./src/main.ts", "./src/filePresent.ts", "./src/fileNotFound.d.ts", - "./src/externalThing.ts", + "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -9014,13 +8998,14 @@ export declare function externalThing1(): number; "./src/globalMain.ts", "./src/newFile.ts", "./src/fileNotFound.ts", - "./src/fileNotFound.tsx" + "./src/fileNotFound.tsx", + "./src/externalThing.tsx" ], "fileNamesList": [ [ "./src/filepresent.ts", "./src/filenotfound.d.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], [ @@ -9038,7 +9023,7 @@ export declare function externalThing1(): number; [ "./src/filepresent.ts", "./src/filenotfound.d.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] @@ -9057,9 +9042,9 @@ export declare function externalThing1(): number; "version": "-14992185226-export declare function something2(): number;\n", "signature": "-14992185226-export declare function something2(): number;\n" }, - "./src/externalthing.ts": { - "version": "5618215488-export function externalThing1() { return 10; }", - "signature": "-13282660348-export declare function externalThing1(): number;\n" + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" }, "./src/externalthingnotpresent.ts": { "version": "5318862050-export function externalThing2() { return 20; }", @@ -9069,6 +9054,10 @@ export declare function externalThing1(): number; "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }", + "signature": "-13282660348-export declare function externalThing1(): number;\n" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10760962856-interface SomeType {\n}\n", @@ -9126,7 +9115,7 @@ export declare function externalThing1(): number; "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", "./src/filenotfound.d.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], "./src/filewithref.ts": [ @@ -9144,7 +9133,7 @@ export declare function externalThing1(): number; "./src/main.ts": [ "./src/filepresent.ts", "./src/filenotfound.d.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] @@ -9153,7 +9142,7 @@ export declare function externalThing1(): number; "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", "./src/anotherfilereusingresolution.ts", - "./src/externalthing.ts", + "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/filenotfound.d.ts", "./src/filepresent.ts", @@ -9237,11 +9226,11 @@ export declare function externalThing1(): number; ] }, { - "fileName": "./src/externalThing.ts", - "originalFileName": "./src/externalThing.ts", - "path": "./src/externalthing.ts", - "resolvedPath": "./src/externalthing.ts", - "version": "5618215488-export function externalThing1() { return 10; }", + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", "flags": 0, "includeReasons": [ { @@ -9249,10 +9238,6 @@ export declare function externalThing1(): number; "file": "./src/anotherfilereusingresolution.ts", "index": 2 }, - { - "kind": "RootFile", - "index": 1 - }, { "kind": "Import", "file": "./src/main.ts", @@ -9336,9 +9321,13 @@ export declare function externalThing1(): number; "externalThing", { "resolvedModule": { - "resolvedFileName": "./src/externalThing.ts", - "extension": ".ts" - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] } ], [ @@ -9358,6 +9347,20 @@ export declare function externalThing1(): number; } ] }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -9586,9 +9589,13 @@ export declare function externalThing1(): number; "externalThing", { "resolvedModule": { - "resolvedFileName": "./src/externalThing.ts", - "extension": ".ts" - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] } ], [ @@ -9644,9 +9651,13 @@ export declare function externalThing1(): number; }, { "resolvedModule": { - "resolvedFileName": "./src/externalThing.ts", - "extension": ".ts" - } + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] }, { "resolvedModule": { @@ -9664,7 +9675,7 @@ export declare function externalThing1(): number; } }, "version": "FakeTSVersion", - "size": 10022 + "size": 10354 } //// [/user/username/projects/myproject/src/externalThing.js] diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js index dbd3ff49461fc..f4678ed085cb6 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js @@ -1425,27 +1425,24 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/external Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json -Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. -======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/externalThing.ts' exist - use it as a name resolution result. -======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 10 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (15) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts - /user/username/projects/myproject/src/externalThing.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts @@ -1457,6 +1454,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/src/externalThing.ts ../../../../a/lib/lib.d.ts @@ -1466,10 +1464,9 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' - src/externalThing.ts + src/externalThing.d.ts Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' Imported via "externalThing" from file 'src/main.ts' - Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/externalThingNotPresent.ts Imported via "externalThingNotPresent" from file 'src/anotherFileReusingResolution.ts' Imported via "externalThingNotPresent" from file 'src/main.ts' @@ -1501,12 +1498,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThing.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (15) ----------------------------------------------- Open files: @@ -1516,7 +1515,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (15) ----------------------------------------------- Open files: @@ -1542,8 +1541,8 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/externalThing.ts","version":"5618215488-export function externalThing1() { return 10; }"} -export function externalThing1() { return 10; } +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","version":"5318862050-export function externalThing2() { return 20; }"} export function externalThing2() { return 20; } @@ -1596,3 +1595,6 @@ something(); import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/src/externalThing.ts","version":"5618215488-export function externalThing1() { return 10; }"} +export function externalThing1() { return 10; } + diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js index dbd3ff49461fc..f4678ed085cb6 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js @@ -1425,27 +1425,24 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/external Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json -Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. -======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/externalThing.ts' exist - use it as a name resolution result. -======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 10 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (15) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts - /user/username/projects/myproject/src/externalThing.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts @@ -1457,6 +1454,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/src/externalThing.ts ../../../../a/lib/lib.d.ts @@ -1466,10 +1464,9 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' - src/externalThing.ts + src/externalThing.d.ts Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' Imported via "externalThing" from file 'src/main.ts' - Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/externalThingNotPresent.ts Imported via "externalThingNotPresent" from file 'src/anotherFileReusingResolution.ts' Imported via "externalThingNotPresent" from file 'src/main.ts' @@ -1501,12 +1498,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThing.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (15) ----------------------------------------------- Open files: @@ -1516,7 +1515,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (15) ----------------------------------------------- Open files: @@ -1542,8 +1541,8 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/externalThing.ts","version":"5618215488-export function externalThing1() { return 10; }"} -export function externalThing1() { return 10; } +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","version":"5318862050-export function externalThing2() { return 20; }"} export function externalThing2() { return 20; } @@ -1596,3 +1595,6 @@ something(); import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/src/externalThing.ts","version":"5618215488-export function externalThing1() { return 10; }"} +export function externalThing1() { return 10; } + diff --git a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js index bf20f6d5fef7f..a330592bd49e3 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js +++ b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js @@ -1414,27 +1414,24 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/external Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json -Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. -======== Resolving module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/externalThing.ts' exist - use it as a name resolution result. -======== Module name 'externalThing' was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 10 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (15) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts - /user/username/projects/myproject/src/externalThing.ts + /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts @@ -1446,6 +1443,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/src/externalThing.ts ../../../../a/lib/lib.d.ts @@ -1455,10 +1453,9 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' - src/externalThing.ts + src/externalThing.d.ts Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' Imported via "externalThing" from file 'src/main.ts' - Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/externalThingNotPresent.ts Imported via "externalThingNotPresent" from file 'src/anotherFileReusingResolution.ts' Imported via "externalThingNotPresent" from file 'src/main.ts' @@ -1490,12 +1487,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThing.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (15) ----------------------------------------------- Open files: @@ -1505,7 +1504,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (15) ----------------------------------------------- Open files: @@ -1531,8 +1530,8 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } -{"fileName":"/user/username/projects/myproject/src/externalThing.ts","version":"5618215488-export function externalThing1() { return 10; }"} -export function externalThing1() { return 10; } +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","version":"5318862050-export function externalThing2() { return 20; }"} export function externalThing2() { return 20; } @@ -1585,3 +1584,6 @@ something(); import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/src/externalThing.ts","version":"5618215488-export function externalThing1() { return 10; }"} +export function externalThing1() { return 10; } + From 76ec5cd33781e7be2f91706677be84d9e36d6d60 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 18 May 2021 16:51:18 -0700 Subject: [PATCH 44/48] Add tests for auto type reference directives --- .../unittests/tsbuild/persistResolutions.ts | 384 +- .../tsbuildWatch/persistResolutions.ts | 760 +-- .../unittests/tsc/persistResolutions.ts | 255 +- .../unittests/tscWatch/persistResolutions.ts | 573 +- .../unittests/tsserver/persistResolutions.ts | 365 +- ...nd-uses-it-for-new-program-with-outFile.js | 3254 +++++++++- ...-resolution-and-uses-it-for-new-program.js | 2787 ++++++++- ...er-resolutions-are-cleaned-with-outFile.js | 2300 ++++++- ...can-build-after-resolutions-are-cleaned.js | 2173 ++++++- ...-saved-in-tsbuildinfo-file-with-outFile.js | 2259 ++++++- ...ons-have-been-saved-in-tsbuildinfo-file.js | 2234 ++++++- ...nd-uses-it-for-new-program-with-outFile.js | 2298 ++++++- ...-resolution-and-uses-it-for-new-program.js | 2172 ++++++- ...nd-uses-it-for-new-program-with-outFile.js | 4072 +++++++++++- ...-resolution-and-uses-it-for-new-program.js | 3882 +++++++++++- ...er-resolutions-are-cleaned-with-outFile.js | 5515 +++++++++++++++-- ...can-build-after-resolutions-are-cleaned.js | 4705 +++++++++++++- ...-saved-in-tsbuildinfo-file-with-outFile.js | 5513 ++++++++++++++-- ...ons-have-been-saved-in-tsbuildinfo-file.js | 4592 +++++++++++++- ...nd-uses-it-for-new-program-with-outFile.js | 5515 +++++++++++++++-- ...-resolution-and-uses-it-for-new-program.js | 3264 +++++++++- ...r-program-if-tsbuildinfo-is-not-present.js | 946 ++- ...is-present-but-program-is-not-persisted.js | 946 ++- .../uses-saved-resolution-for-program.js | 945 ++- 24 files changed, 56297 insertions(+), 5412 deletions(-) diff --git a/src/testRunner/unittests/tsbuild/persistResolutions.ts b/src/testRunner/unittests/tsbuild/persistResolutions.ts index 2c929961ded8f..1d0df96a2b0ed 100644 --- a/src/testRunner/unittests/tsbuild/persistResolutions.ts +++ b/src/testRunner/unittests/tsbuild/persistResolutions.ts @@ -1,45 +1,152 @@ -namespace ts { - describe("unittests:: tsbuild:: persistResolutions::", () => { - function getFs(outFile?: string) { - return loadProjectFromFiles({ - "/src/project/src/main.ts": Utils.dedent` +namespace ts.PersistentResolutionsTests { + export function getFs(outFile?: string) { + return loadProjectFromFiles({ + "/src/project/src/main.ts": Utils.dedent` import { something } from "./filePresent"; import { something as something1 } from "./filePresent"; import { something2 } from "./fileNotFound"; import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent";`, - "/src/project/src/anotherFileReusingResolution.ts": Utils.dedent` + "/src/project/src/anotherFileReusingResolution.ts": Utils.dedent` import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent";`, - "/src/project/src/filePresent.ts": `export function something() { return 10; }`, - "/src/project/src/fileWithRef.ts": `/// `, - "/src/project/src/types.ts": `interface SomeType {}`, - "/src/project/src/globalMain.ts": Utils.dedent` + "/src/project/src/filePresent.ts": `export function something() { return 10; }`, + "/src/project/src/fileWithRef.ts": `/// `, + "/src/project/src/types.ts": `interface SomeType {}`, + "/src/project/src/globalMain.ts": Utils.dedent` /// /// function globalMain() { } `, - "/src/project/src/globalAnotherFileWithSameReferenes.ts": Utils.dedent` + "/src/project/src/globalAnotherFileWithSameReferenes.ts": Utils.dedent` /// /// function globalAnotherFileWithSameReferenes() { } `, - "/src/project/src/globalFilePresent.ts": `function globalSomething() { return 10; }`, - "/src/project/src/externalThing.d.ts": `export function externalThing1(): number;`, - "/src/project/tsconfig.json": JSON.stringify({ - compilerOptions: { - module: "amd", - composite: true, - persistResolutions: true, - traceResolution: true, - outFile - }, - include: ["src/**/*.ts"] - }), - }); - } + "/src/project/src/globalFilePresent.ts": `function globalSomething() { return 10; }`, + "/src/project/src/externalThing.d.ts": `export function externalThing1(): number;`, + "/src/project/node_modules/@types/someType/index.d.ts": `export function someType(): number;`, + "/src/project/tsconfig.json": JSON.stringify({ + compilerOptions: { + module: "amd", + composite: true, + persistResolutions: true, + traceResolution: true, + outFile + }, + include: ["src/**/*.ts"] + }), + }); + } + export const modifyGlobalMain: TscIncremental = { + subScenario: "Modify globalMain file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => appendText(fs, `/src/project/src/globalMain.ts`, `globalSomething();`), + }; + export const addNewGlobalFile: TscIncremental = { + subScenario: "Add new globalFile and update globalMain file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => { + fs.writeFileSync(`/src/project/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + prependText(fs, `/src/project/src/globalMain.ts`, `/// +`); + appendText(fs, `/src/project/src/globalMain.ts`, `globalFoo();`); + }, + }; + export const writeFileNotResolvedByReferencedPath: TscIncremental = { + subScenario: "Write file that could not be resolved by referenced path", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.writeFileSync(`/src/project/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), + }; + export function cleanResolutions(buildType: "--b" | "--p"): TscIncremental { + return { + subScenario: "Clean resolutions", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: noop, + commandLineArgs: [buildType, "src/project", "--cleanPersistedProgram"] + }; + } + export function cleanResolutionsAgain(buildType: "--b" | "--p"): TscIncremental { + return { ...cleanResolutions(buildType), subScenario: "Clean resolutions again", }; + } + export const modifyMain: TscIncremental = { + subScenario: "Modify main file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), + }; + export const addNewFile: TscIncremental = { + subScenario: "Add new module and update main file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => { + fs.writeFileSync(`/src/project/src/newFile.ts`, "export function foo() { return 20; }"); + prependText(fs, `/src/project/src/main.ts`, `import { foo } from "./newFile";`); + }, + }; + export const writeFileNotResolved: TscIncremental = { + subScenario: "Write file that could not be resolved", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.writeFileSync(`/src/project/src/fileNotFound.ts`, "export function something2() { return 20; }"), + }; + export const deleteFileNotResolved: TscIncremental = { + subScenario: "Delete file that could not be resolved", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.unlinkSync(`/src/project/src/fileNotFound.ts`), + }; + export const writeExternalModuleNotResolved: TscIncremental = { + subScenario: "Create external module file that could not be resolved", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.writeFileSync(`/src/project/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), + }; + export const writeExternalModuleTakingPreference: TscIncremental = { + subScenario: "Write .ts file that takes preference over resolved .d.ts file", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.writeFileSync(`/src/project/src/externalThing.ts`, "export function externalThing1() { return 10; }"), + }; + export function cleanBuildModifyFs(modifyFs: (fs: vfs.FileSystem) => void): (fs: vfs.FileSystem) => void { + return fs => { + // Ignore error when doing incremental correctness check + try { + modifyFs(fs); + } + catch { } // eslint-disable-line no-empty + }; + } + export const deleteTsBuildInfo: TscIncremental = { + subScenario: "Delete tsbuildinfo file and do clean build", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: cleanBuildModifyFs(fs => fs.unlinkSync("/src/project/tsconfig.tsbuildinfo")), + }; + export const deleteOutTsBuildInfo: TscIncremental = { + subScenario: "Delete tsbuildinfo file and do clean build", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: cleanBuildModifyFs(fs => fs.unlinkSync("/src/project/outfile.tsbuildinfo")), + }; + export function installNewType(subScenario: string): TscIncremental { + return { + subScenario, + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => { + fs.mkdirpSync(`/src/project/node_modules/@types/someType2`); + fs.writeFileSync(`/src/project/node_modules/@types/someType2/index.d.ts`, "export function someType2(): number;"); + } + }; + } + export function deleteExistingType(subScenario: string): TscIncremental { + return { + subScenario, + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => fs.rimrafSync(`/src/project/node_modules/@types/someType`), + }; + } + + describe("unittests:: tsbuild:: persistResolutions::", () => { + const cleanResolutionsWithBuild = cleanResolutions("--b"); + const cleanResolutionsAgainWithBuild = cleanResolutionsAgain("--b"); + const installNewTypeWithBuild = installNewType("Install another type and program is not created because its not listed file in tsconfig"); + const deleteExistingTypeWithBuild = deleteExistingType("Delete existing type and program is not created because its not listed file in tsconfig"); + verifyTscSerializedIncrementalEdits({ scenario: "persistResolutions", subScenario: `saves resolution and uses it for new program`, @@ -47,95 +154,35 @@ namespace ts { commandLineArgs: ["--b", "src/project"], incrementalScenarios: [ noChangeRun, - { - subScenario: "Modify globalMain file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => appendText(fs, `/src/project/src/globalMain.ts`, `globalSomething();`), - }, - { - subScenario: "Add new globalFile and update globalMain file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => { - fs.writeFileSync(`/src/project/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); - prependText(fs, `/src/project/src/globalMain.ts`, `/// -`); - appendText(fs, `/src/project/src/globalMain.ts`, `globalFoo();`); - }, - }, - { - subScenario: "Write file that could not be resolved by referenced path", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => fs.writeFileSync(`/src/project/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), - }, - { - subScenario: "Clean resolutions", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: noop, - commandLineArgs: ["--b", "src/project", "--cleanPersistedProgram"] - }, - { - subScenario: "Clean resolutions again", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: noop, - commandLineArgs: ["--b", "src/project", "--cleanPersistedProgram"] - }, + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + cleanResolutionsWithBuild, + cleanResolutionsAgainWithBuild, noChangeRun, - { - subScenario: "Modify global main file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => appendText(fs, `/src/project/src/globalMain.ts`, `globalSomething();`), - }, - { - subScenario: "Modify main file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), - }, - { - subScenario: "Add new module and update main file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => { - fs.writeFileSync(`/src/project/src/newFile.ts`, "export function foo() { return 20; }"); - prependText(fs, `/src/project/src/main.ts`, `import { foo } from "./newFile";`); - }, - }, - { - subScenario: "Write file that could not be resolved", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => fs.writeFileSync(`/src/project/src/fileNotFound.ts`, "export function something2() { return 20; }"), - }, - { - subScenario: "Clean resolutions", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: noop, - commandLineArgs: ["--b", "src/project", "--cleanPersistedProgram"] - }, - { - subScenario: "Clean resolutions again", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: noop, - commandLineArgs: ["--b", "src/project", "--cleanPersistedProgram"] - }, + modifyGlobalMain, + modifyMain, + addNewFile, + writeFileNotResolved, + cleanResolutionsWithBuild, + cleanResolutionsAgainWithBuild, noChangeRun, - { - subScenario: "Modify main file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), - }, - { - subScenario: "Delete file that could not be resolved", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => fs.unlinkSync(`/src/project/src/fileNotFound.ts`), - }, - { - subScenario: "Create external module file that could not be resolved", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => fs.writeFileSync(`/src/project/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), - }, - { - subScenario: "Write .ts file that takes preference over resolved .d.ts file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => fs.writeFileSync(`/src/project/src/externalThing.ts`, "export function externalThing1() { return 10; }"), - }, + modifyMain, + deleteFileNotResolved, + writeFileNotResolved, + writeExternalModuleNotResolved, + { + ...writeExternalModuleTakingPreference, + cleanBuildDiscrepancies: () => new Map([ + // In the clean build since .d.ts is not picked up, it can be overwritten with d.ts output from .ts file + ["/src/project/src/externalthing.d.ts", CleanBuildDescrepancy.CleanFileTextDifferent], + // This will be present in in clean build since resolutions will not pick up d.ts and write output files + ["/src/project/src/externalthing.js", CleanBuildDescrepancy.CleanFilePresent], + ]) + }, + deleteTsBuildInfo, + installNewTypeWithBuild, + deleteExistingTypeWithBuild, ], baselinePrograms: true, }); @@ -147,95 +194,34 @@ namespace ts { commandLineArgs: ["--b", "src/project"], incrementalScenarios: [ noChangeRun, - { - subScenario: "Modify globalMain file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => appendText(fs, `/src/project/src/globalMain.ts`, `globalSomething();`), - }, - { - subScenario: "Add new globalFile and update globalMain file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => { - fs.writeFileSync(`/src/project/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); - prependText(fs, `/src/project/src/globalMain.ts`, `/// -`); - appendText(fs, `/src/project/src/globalMain.ts`, `globalFoo();`); - }, - }, - { - subScenario: "Write file that could not be resolved by referenced path", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => fs.writeFileSync(`/src/project/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), - }, - { - subScenario: "Clean resolutions", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: noop, - commandLineArgs: ["--b", "src/project", "--cleanPersistedProgram"] - }, - { - subScenario: "Clean resolutions again", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: noop, - commandLineArgs: ["--b", "src/project", "--cleanPersistedProgram"] - }, + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + cleanResolutionsWithBuild, + cleanResolutionsAgainWithBuild, noChangeRun, - { - subScenario: "Modify global main file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => appendText(fs, `/src/project/src/globalMain.ts`, `globalSomething();`), - }, - { - subScenario: "Modify main file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), - }, - { - subScenario: "Add new module and update main file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => { - fs.writeFileSync(`/src/project/src/newFile.ts`, "export function foo() { return 20; }"); - prependText(fs, `/src/project/src/main.ts`, `import { foo } from "./newFile";`); - }, - }, - { - subScenario: "Write file that could not be resolved", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => fs.writeFileSync(`/src/project/src/fileNotFound.ts`, "export function something2() { return 20; }"), - }, - { - subScenario: "Clean resolutions", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: noop, - commandLineArgs: ["--b", "src/project", "--cleanPersistedProgram"] - }, - { - subScenario: "Clean resolutions again", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: noop, - commandLineArgs: ["--b", "src/project", "--cleanPersistedProgram"] - }, + modifyGlobalMain, + modifyMain, + addNewFile, + writeFileNotResolved, + cleanResolutionsWithBuild, + cleanResolutionsAgainWithBuild, noChangeRun, - { - subScenario: "Modify main file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), - }, - { - subScenario: "Delete file that could not be resolved", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => fs.unlinkSync(`/src/project/src/fileNotFound.ts`), - }, - { - subScenario: "Create external module file that could not be resolved", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => fs.writeFileSync(`/src/project/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), - }, - { - subScenario: "Write .ts file that takes preference over resolved .d.ts file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => fs.writeFileSync(`/src/project/src/externalThing.ts`, "export function externalThing1() { return 10; }"), - }, + modifyMain, + deleteFileNotResolved, + writeFileNotResolved, + writeExternalModuleNotResolved, + { + ...writeExternalModuleTakingPreference, + cleanBuildDiscrepancies: () => new Map([ + // In the clean build since .d.ts is not picked up, the output of externalThing.ts would be before the main file because of import + ["/src/project/outfile.js", CleanBuildDescrepancy.CleanFileTextDifferent], + ["/src/project/outfile.d.ts", CleanBuildDescrepancy.CleanFileTextDifferent], + ]) + }, + deleteOutTsBuildInfo, + installNewTypeWithBuild, + deleteExistingTypeWithBuild, ], baselinePrograms: true, }); diff --git a/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts b/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts index bcaeb51033a1c..c8af2728614e8 100644 --- a/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts +++ b/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts @@ -1,99 +1,205 @@ -namespace ts.tscWatch { - describe("unittests:: tsbuildWatch:: watchMode:: persistResolutions", () => { - function getSys(outFile?: string) { - return createWatchedSystem([ - { - path: `${projectRoot}/src/main.ts`, - content: Utils.dedent` - import { something } from "./filePresent"; - import { something as something1 } from "./filePresent"; - import { something2 } from "./fileNotFound"; - import { externalThing1 } from "externalThing"; - import { externalThing2 } from "externalThingNotPresent";`, - }, - { - path: `${projectRoot}/src/anotherFileReusingResolution.ts`, - content: Utils.dedent` - import { something } from "./filePresent"; - import { something2 } from "./fileNotFound"; - import { externalThing1 } from "externalThing"; - import { externalThing2 } from "externalThingNotPresent";`, - }, - { - path: `${projectRoot}/src/filePresent.ts`, - content: `export function something() { return 10; }`, - }, - { - path: `${projectRoot}/src/fileWithRef.ts`, - content: `/// `, - }, - { - path: `${projectRoot}/src/types.ts`, - content: `interface SomeType {}`, - }, - { - path: `${projectRoot}/src/globalMain.ts`, - content: Utils.dedent` - /// - /// - function globalMain() { } - `, - }, - { - path: `${projectRoot}/src/globalAnotherFileWithSameReferenes.ts`, - content: Utils.dedent` +namespace ts.tscWatch.PersistentResolutionsTests { + export function getFiles(outFile?: string) { + const main: File = { + path: `${projectRoot}/src/main.ts`, + content: Utils.dedent` + import { something } from "./filePresent"; + import { something as something1 } from "./filePresent"; + import { something2 } from "./fileNotFound"; + import { externalThing1 } from "externalThing"; + import { externalThing2 } from "externalThingNotPresent";`, + }; + const anotherFileReusingResolution: File = { + path: `${projectRoot}/src/anotherFileReusingResolution.ts`, + content: Utils.dedent` + import { something } from "./filePresent"; + import { something2 } from "./fileNotFound"; + import { externalThing1 } from "externalThing"; + import { externalThing2 } from "externalThingNotPresent";`, + }; + const filePresent: File = { + path: `${projectRoot}/src/filePresent.ts`, + content: `export function something() { return 10; }`, + }; + const fileWithRef: File = { + path: `${projectRoot}/src/fileWithRef.ts`, + content: `/// `, + }; + const types: File = { + path: `${projectRoot}/src/types.ts`, + content: `interface SomeType {}`, + }; + const globalMain: File = { + path: `${projectRoot}/src/globalMain.ts`, + content: Utils.dedent` + /// + /// + function globalMain() { } + `, + }; + const globalAnotherFileWithSameReferenes: File = { + path: `${projectRoot}/src/globalAnotherFileWithSameReferenes.ts`, + content: Utils.dedent` /// /// function globalAnotherFileWithSameReferenes() { } `, - }, - { - path: `${projectRoot}/src/globalFilePresent.ts`, - content: `function globalSomething() { return 10; }`, - }, - { - path: `${projectRoot}/src/externalThing.d.ts`, - content: `export function externalThing1(): number;`, - }, - { - path: `${projectRoot}/tsconfig.json`, - content: JSON.stringify({ - compilerOptions: { - module: "amd", - composite: true, - persistResolutions: true, - traceResolution: true, - outFile - }, - include: ["src/**/*.ts"] - }), - }, - libFile - ], { currentDirectory: projectRoot }); - } + }; + const globalFilePresent: File = { + path: `${projectRoot}/src/globalFilePresent.ts`, + content: `function globalSomething() { return 10; }`, + }; + const externalThing: File = { + path: `${projectRoot}/src/externalThing.d.ts`, + content: `export function externalThing1(): number;`, + }; + const someType: File = { + path: `${projectRoot}/node_modules/@types/someType/index.d.ts`, + content: `export function someType(): number;`, + }; + const config: File = { + path: `${projectRoot}/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { + module: "amd", + composite: true, + persistResolutions: true, + traceResolution: true, + outFile + }, + include: ["src/**/*.ts"] + }), + }; + return { main, anotherFileReusingResolution, filePresent, fileWithRef, types, globalMain, globalAnotherFileWithSameReferenes, globalFilePresent, externalThing, someType, config }; + } - function getSysWithSavedResolutions(outFile?: string) { - const sys = getSys(outFile); - const exit = sys.exit; - sys.exit = noop; - fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => executeCommandLine(sys, noop, ["--b", "."])); - sys.exit = exit; - sys.clearOutput(); - return sys; - } + export function getSys(outFile?: string) { + const { main, anotherFileReusingResolution, filePresent, fileWithRef, types, globalMain, globalAnotherFileWithSameReferenes, globalFilePresent, externalThing, someType, config } = getFiles(outFile); + return createWatchedSystem( + [main, anotherFileReusingResolution, filePresent, fileWithRef, types, globalMain, globalAnotherFileWithSameReferenes, globalFilePresent, externalThing, someType, config, libFile], + { currentDirectory: projectRoot }); + } + + export function getSysWithSavedResolutions(buildType: "--b" | "--p", outFile?: string) { + const sys = getSys(outFile); + const exit = sys.exit; + sys.exit = noop; + fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => executeCommandLine(sys, noop, [buildType, "."])); + sys.exit = exit; + sys.clearOutput(); + return sys; + } - function getSysWithClearedResolutions(outFile?: string) { - const sys = getSys(outFile); - const exit = sys.exit; - sys.exit = noop; - fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => { - executeCommandLine(sys, noop, ["--b", "."]); - executeCommandLine(sys, noop, ["--b", ".", "--cleanPersistedProgram"]); - }); - sys.exit = exit; - sys.clearOutput(); - return sys; + export function getSysWithClearedResolutions(buildType: "--b" | "--p", outFile?: string) { + const sys = getSys(outFile); + const exit = sys.exit; + sys.exit = noop; + fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => { + executeCommandLine(sys, noop, [buildType, "."]); + executeCommandLine(sys, noop, [buildType, ".", "--cleanPersistedProgram"]); + }); + sys.exit = exit; + sys.clearOutput(); + return sys; + } + + export const modifyGlobalMain: TscWatchCompileChange = { + caption: "Modify globalMain file", + change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), + timeouts: runQueuedTimeoutCallbacks, + }; + export const addNewGlobalFile: TscWatchCompileChange = { + caption: "Add new globalFile and update globalMain file", + change: sys => { + sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// +`); + sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); + }, + timeouts: runQueuedTimeoutCallbacks, + }; + export const writeFileNotResolvedByReferencedPath: TscWatchCompileChange = { + caption: "Write file that could not be resolved by referenced path", + change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), + timeouts: runQueuedTimeoutCallbacks, + }; + export const modifyMain: TscWatchCompileChange = { + caption: "Modify main file", + change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), + timeouts: runQueuedTimeoutCallbacks, + }; + export const addNewFile: TscWatchCompileChange = { + caption: "Add new module and update main file", + change: sys => { + sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); + sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); + }, + timeouts: runQueuedTimeoutCallbacks, + }; + export const writeFileNotResolved: TscWatchCompileChange = { + caption: "Write file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }; + export const deleteFileNotResolved: TscWatchCompileChange = { + caption: "Delete file that could not be resolved", + change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }; + export const writeExternalModuleNotResolved: TscWatchCompileChange = { + caption: "Create external module file that could not be resolved", + change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update } + }; + export const writeExternalModuleTakingPreference: TscWatchCompileChange = { + caption: "Write .ts file that takes preference over resolved .d.ts file", + change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }; + export const deleteExternalModuleTakingPreference: TscWatchCompileChange = { + caption: "Delete .ts file that takes preference over resolved .d.ts file", + change: sys => sys.deleteFile(`${projectRoot}/src/externalThing.ts`), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }; + export function installNewType(caption: string): TscWatchCompileChange { + return { + caption, + change: sys => sys.ensureFileOrFolder({ path: `${projectRoot}/node_modules/@types/someType2/index.d.ts`, content: "export function someType2(): number;" }), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }; + } + export function deleteExistingType(caption: string): TscWatchCompileChange { + return { + caption, + change: sys => sys.deleteFolder(`${projectRoot}/node_modules/@types/someType`, /*recursive*/ true), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions + sys.runQueuedTimeoutCallbacks(); // Actual update + } + }; + } + + describe("unittests:: tsbuildWatch:: watchMode:: persistResolutions", () => { + const installNewTypeWithBuild = installNewType("Install another type and program is not created because its not listed file in tsconfig"); + const deleteExistingTypeWithBuild = deleteExistingType("Delete existing type and program is not created because its not listed file in tsconfig"); verifyTscWatch({ scenario: "persistResolutions", @@ -101,217 +207,61 @@ namespace ts.tscWatch { sys: getSys, commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], changes: [ - { - caption: "Modify globalMain file", - change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new globalFile and update globalMain file", - change: sys => { - sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// -`); - sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved by referenced path", - change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Modify main file", - change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new module and update main file", - change: sys => { - sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Delete file that could not be resolved", - change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Create external module file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Write .ts file that takes preference over resolved .d.ts file", - change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + modifyMain, + addNewFile, + writeFileNotResolved, + deleteFileNotResolved, + writeFileNotResolved, + writeExternalModuleNotResolved, + writeExternalModuleTakingPreference, + deleteExternalModuleTakingPreference, + installNewTypeWithBuild, + deleteExistingTypeWithBuild, ] }); verifyTscWatch({ scenario: "persistResolutions", subScenario: "can build after resolutions have been saved in tsbuildinfo file", - sys: getSysWithSavedResolutions, + sys: () => getSysWithSavedResolutions("--b"), commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], changes: [ - { - caption: "Modify globalMain file", - change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new globalFile and update globalMain file", - change: sys => { - sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// -`); - sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved by referenced path", - change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Modify main file", - change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new module and update main file", - change: sys => { - sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Delete file that could not be resolved", - change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Create external module file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Write .ts file that takes preference over resolved .d.ts file", - change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + modifyMain, + addNewFile, + writeFileNotResolved, + deleteFileNotResolved, + writeFileNotResolved, + writeExternalModuleNotResolved, + writeExternalModuleTakingPreference, + deleteExternalModuleTakingPreference, + installNewTypeWithBuild, + deleteExistingTypeWithBuild, ] }); verifyTscWatch({ scenario: "persistResolutions", subScenario: "can build after resolutions are cleaned", - sys: getSysWithClearedResolutions, + sys: () => getSysWithClearedResolutions("--b"), commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], changes: [ - { - caption: "Modify globalMain file", - change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new globalFile and update globalMain file", - change: sys => { - sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// -`); - sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved by referenced path", - change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Modify main file", - change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new module and update main file", - change: sys => { - sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Delete file that could not be resolved", - change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Create external module file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Write .ts file that takes preference over resolved .d.ts file", - change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + modifyMain, + addNewFile, + writeFileNotResolved, + deleteFileNotResolved, + writeFileNotResolved, + writeExternalModuleNotResolved, + writeExternalModuleTakingPreference, + deleteExternalModuleTakingPreference, + installNewTypeWithBuild, + deleteExistingTypeWithBuild, ] }); @@ -321,217 +271,61 @@ namespace ts.tscWatch { sys: () => getSys("outFile.js"), commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], changes: [ - { - caption: "Modify globalMain file", - change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new globalFile and update globalMain file", - change: sys => { - sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// -`); - sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved by referenced path", - change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Modify main file", - change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new module and update main file", - change: sys => { - sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Delete file that could not be resolved", - change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Create external module file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Write .ts file that takes preference over resolved .d.ts file", - change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + modifyMain, + addNewFile, + writeFileNotResolved, + deleteFileNotResolved, + writeFileNotResolved, + writeExternalModuleNotResolved, + writeExternalModuleTakingPreference, + deleteExternalModuleTakingPreference, + installNewTypeWithBuild, + deleteExistingTypeWithBuild, ] }); verifyTscWatch({ scenario: "persistResolutions", subScenario: "can build after resolutions have been saved in tsbuildinfo file with outFile", - sys: () => getSysWithSavedResolutions("outFile.js"), + sys: () => getSysWithSavedResolutions("--b", "outFile.js"), commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], changes: [ - { - caption: "Modify globalMain file", - change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new globalFile and update globalMain file", - change: sys => { - sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// -`); - sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved by referenced path", - change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Modify main file", - change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new module and update main file", - change: sys => { - sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Delete file that could not be resolved", - change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Create external module file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Write .ts file that takes preference over resolved .d.ts file", - change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + modifyMain, + addNewFile, + writeFileNotResolved, + deleteFileNotResolved, + writeFileNotResolved, + writeExternalModuleNotResolved, + writeExternalModuleTakingPreference, + deleteExternalModuleTakingPreference, + installNewTypeWithBuild, + deleteExistingTypeWithBuild, ] }); verifyTscWatch({ scenario: "persistResolutions", subScenario: "can build after resolutions are cleaned with outFile", - sys: () => getSysWithClearedResolutions("outFile.js"), + sys: () => getSysWithClearedResolutions("--b", "outFile.js"), commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], changes: [ - { - caption: "Modify globalMain file", - change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new globalFile and update globalMain file", - change: sys => { - sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// -`); - sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved by referenced path", - change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Modify main file", - change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new module and update main file", - change: sys => { - sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Delete file that could not be resolved", - change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Create external module file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Write .ts file that takes preference over resolved .d.ts file", - change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + modifyMain, + addNewFile, + writeFileNotResolved, + deleteFileNotResolved, + writeFileNotResolved, + writeExternalModuleNotResolved, + writeExternalModuleTakingPreference, + deleteExternalModuleTakingPreference, + installNewTypeWithBuild, + deleteExistingTypeWithBuild, ] }); }); diff --git a/src/testRunner/unittests/tsc/persistResolutions.ts b/src/testRunner/unittests/tsc/persistResolutions.ts index 3e6c2c67682f4..3d8df849e6528 100644 --- a/src/testRunner/unittests/tsc/persistResolutions.ts +++ b/src/testRunner/unittests/tsc/persistResolutions.ts @@ -1,45 +1,10 @@ -namespace ts { +namespace ts.PersistentResolutionsTests { describe("unittests:: tsc:: persistResolutions::", () => { - function getFs(outFile?: string) { - return loadProjectFromFiles({ - "/src/project/src/main.ts": Utils.dedent` - import { something } from "./filePresent"; - import { something as something1 } from "./filePresent"; - import { something2 } from "./fileNotFound"; - import { externalThing1 } from "externalThing"; - import { externalThing2 } from "externalThingNotPresent";`, - "/src/project/src/anotherFileReusingResolution.ts": Utils.dedent` - import { something } from "./filePresent"; - import { something2 } from "./fileNotFound"; - import { externalThing1 } from "externalThing"; - import { externalThing2 } from "externalThingNotPresent";`, - "/src/project/src/filePresent.ts": `export function something() { return 10; }`, - "/src/project/src/fileWithRef.ts": `/// `, - "/src/project/src/types.ts": `interface SomeType {}`, - "/src/project/src/globalMain.ts": Utils.dedent` - /// - /// - function globalMain() { } - `, - "/src/project/src/globalAnotherFileWithSameReferenes.ts": Utils.dedent` - /// - /// - function globalAnotherFileWithSameReferenes() { } - `, - "/src/project/src/globalFilePresent.ts": `function globalSomething() { return 10; }`, - "/src/project/src/externalThing.d.ts": `export function externalThing1(): number;`, - "/src/project/tsconfig.json": JSON.stringify({ - compilerOptions: { - module: "amd", - composite: true, - persistResolutions: true, - traceResolution: true, - outFile - }, - include: ["src/**/*.ts"] - }), - }); - } + const cleanResolutionsWithProject = cleanResolutions("--p"); + const cleanResolutionsAgainWithProject = cleanResolutionsAgain("--p"); + const installNewTypeWithProject = installNewType("Install another type and it is not picked by program"); + const deleteExistingTypeWithProject = deleteExistingType("Delete existing type and this will trigger new program so above new type becomes part of program"); + verifyTscSerializedIncrementalEdits({ scenario: "persistResolutions", subScenario: `saves resolution and uses it for new program`, @@ -47,99 +12,33 @@ namespace ts { commandLineArgs: ["--p", "src/project"], incrementalScenarios: [ noChangeRun, - { - subScenario: "Modify globalMain file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => appendText(fs, `/src/project/src/globalMain.ts`, `globalSomething();`), - }, - { - subScenario: "Add new globalFile and update globalMain file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => { - fs.writeFileSync(`/src/project/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); - prependText(fs, `/src/project/src/globalMain.ts`, `/// -`); - appendText(fs, `/src/project/src/globalMain.ts`, `globalFoo();`); - }, - }, - { - subScenario: "Write file that could not be resolved by referenced path", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => fs.writeFileSync(`/src/project/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), - }, - { - subScenario: "Clean resolutions", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: noop, - commandLineArgs: ["--p", "src/project", "--cleanPersistedProgram"] - }, - { - subScenario: "Clean resolutions again", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: noop, - commandLineArgs: ["--p", "src/project", "--cleanPersistedProgram"] - }, + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + cleanResolutionsWithProject, + cleanResolutionsAgainWithProject, noChangeRun, - { - subScenario: "Modify global main file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => appendText(fs, `/src/project/src/globalMain.ts`, `globalSomething();`), - }, - { - subScenario: "Modify main file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), - }, - { - subScenario: "Add new module and update main file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => { - fs.writeFileSync(`/src/project/src/newFile.ts`, "export function foo() { return 20; }"); - prependText(fs, `/src/project/src/main.ts`, `import { foo } from "./newFile";`); - }, - }, - { - subScenario: "Write file that could not be resolved", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => fs.writeFileSync(`/src/project/src/fileNotFound.ts`, "export function something2() { return 20; }"), - }, - { - subScenario: "Clean resolutions", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: noop, - commandLineArgs: ["--p", "src/project", "--cleanPersistedProgram"] - }, - { - subScenario: "Clean resolutions again", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: noop, - commandLineArgs: ["--p", "src/project", "--cleanPersistedProgram"] - }, + modifyGlobalMain, + modifyMain, + addNewFile, + writeFileNotResolved, + cleanResolutionsWithProject, + cleanResolutionsAgainWithProject, noChangeRun, + modifyMain, + deleteFileNotResolved, + writeFileNotResolved, + writeExternalModuleNotResolved, { - subScenario: "Modify main file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), - }, - { - subScenario: "Delete file that could not be resolved", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => fs.unlinkSync(`/src/project/src/fileNotFound.ts`), - }, - { - subScenario: "Create external module file that could not be resolved", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => fs.writeFileSync(`/src/project/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), - }, - { - subScenario: "Write .ts file that takes preference over resolved .d.ts file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => fs.writeFileSync(`/src/project/src/externalThing.ts`, "export function externalThing1() { return 10; }"), + ...writeExternalModuleTakingPreference, cleanBuildDiscrepancies: () => new Map([ // In the clean build since .d.ts is not picked up, it can be overwritten with d.ts output from .ts file ["/src/project/src/externalthing.d.ts", CleanBuildDescrepancy.CleanFileTextDifferent], ]) }, + deleteTsBuildInfo, + installNewTypeWithProject, + deleteExistingTypeWithProject, ], baselinePrograms: true, }); @@ -151,100 +50,34 @@ namespace ts { commandLineArgs: ["--p", "src/project"], incrementalScenarios: [ noChangeRun, - { - subScenario: "Modify globalMain file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => appendText(fs, `/src/project/src/globalMain.ts`, `globalSomething();`), - }, - { - subScenario: "Add new globalFile and update globalMain file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => { - fs.writeFileSync(`/src/project/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); - prependText(fs, `/src/project/src/globalMain.ts`, `/// -`); - appendText(fs, `/src/project/src/globalMain.ts`, `globalFoo();`); - }, - }, - { - subScenario: "Write file that could not be resolved by referenced path", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => fs.writeFileSync(`/src/project/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), - }, - { - subScenario: "Clean resolutions", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: noop, - commandLineArgs: ["--p", "src/project", "--cleanPersistedProgram"] - }, - { - subScenario: "Clean resolutions again", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: noop, - commandLineArgs: ["--p", "src/project", "--cleanPersistedProgram"] - }, + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + cleanResolutionsWithProject, + cleanResolutionsAgainWithProject, noChangeRun, - { - subScenario: "Modify global main file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => appendText(fs, `/src/project/src/globalMain.ts`, `globalSomething();`), - }, - { - subScenario: "Modify main file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), - }, - { - subScenario: "Add new module and update main file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => { - fs.writeFileSync(`/src/project/src/newFile.ts`, "export function foo() { return 20; }"); - prependText(fs, `/src/project/src/main.ts`, `import { foo } from "./newFile";`); - }, - }, - { - subScenario: "Write file that could not be resolved", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => fs.writeFileSync(`/src/project/src/fileNotFound.ts`, "export function something2() { return 20; }"), - }, - { - subScenario: "Clean resolutions", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: noop, - commandLineArgs: ["--p", "src/project", "--cleanPersistedProgram"] - }, - { - subScenario: "Clean resolutions again", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: noop, - commandLineArgs: ["--p", "src/project", "--cleanPersistedProgram"] - }, + modifyGlobalMain, + modifyMain, + addNewFile, + writeFileNotResolved, + cleanResolutionsWithProject, + cleanResolutionsAgainWithProject, noChangeRun, + modifyMain, + deleteFileNotResolved, + writeFileNotResolved, + writeExternalModuleNotResolved, { - subScenario: "Modify main file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), - }, - { - subScenario: "Delete file that could not be resolved", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => fs.unlinkSync(`/src/project/src/fileNotFound.ts`), - }, - { - subScenario: "Create external module file that could not be resolved", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => fs.writeFileSync(`/src/project/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), - }, - { - subScenario: "Write .ts file that takes preference over resolved .d.ts file", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: fs => fs.writeFileSync(`/src/project/src/externalThing.ts`, "export function externalThing1() { return 10; }"), + ...writeExternalModuleTakingPreference, cleanBuildDiscrepancies: () => new Map([ // In the clean build since .d.ts is not picked up, the output of externalThing.ts would be before the main file because of import ["/src/project/outfile.js", CleanBuildDescrepancy.CleanFileTextDifferent], ["/src/project/outfile.d.ts", CleanBuildDescrepancy.CleanFileTextDifferent], ]) }, + deleteOutTsBuildInfo, + installNewTypeWithProject, + deleteExistingTypeWithProject, ], baselinePrograms: true, }); diff --git a/src/testRunner/unittests/tscWatch/persistResolutions.ts b/src/testRunner/unittests/tscWatch/persistResolutions.ts index e5b117b90ee05..30c261983c966 100644 --- a/src/testRunner/unittests/tscWatch/persistResolutions.ts +++ b/src/testRunner/unittests/tscWatch/persistResolutions.ts @@ -1,99 +1,7 @@ -namespace ts.tscWatch { +namespace ts.tscWatch.PersistentResolutionsTests { describe("unittests:: tsc-watch:: persistResolutions", () => { - function getSys(outFile?: string) { - return createWatchedSystem([ - { - path: `${projectRoot}/src/main.ts`, - content: Utils.dedent` - import { something } from "./filePresent"; - import { something as something1 } from "./filePresent"; - import { something2 } from "./fileNotFound"; - import { externalThing1 } from "externalThing"; - import { externalThing2 } from "externalThingNotPresent";`, - }, - { - path: `${projectRoot}/src/anotherFileReusingResolution.ts`, - content: Utils.dedent` - import { something } from "./filePresent"; - import { something2 } from "./fileNotFound"; - import { externalThing1 } from "externalThing"; - import { externalThing2 } from "externalThingNotPresent";`, - }, - { - path: `${projectRoot}/src/filePresent.ts`, - content: `export function something() { return 10; }`, - }, - { - path: `${projectRoot}/src/fileWithRef.ts`, - content: `/// `, - }, - { - path: `${projectRoot}/src/types.ts`, - content: `interface SomeType {}`, - }, - { - path: `${projectRoot}/src/globalMain.ts`, - content: Utils.dedent` - /// - /// - function globalMain() { } - `, - }, - { - path: `${projectRoot}/src/globalAnotherFileWithSameReferenes.ts`, - content: Utils.dedent` - /// - /// - function globalAnotherFileWithSameReferenes() { } - `, - }, - { - path: `${projectRoot}/src/globalFilePresent.ts`, - content: `function globalSomething() { return 10; }`, - }, - { - path: `${projectRoot}/src/externalThing.d.ts`, - content: `export function externalThing1(): number;`, - }, - { - path: `${projectRoot}/tsconfig.json`, - content: JSON.stringify({ - compilerOptions: { - module: "amd", - composite: true, - persistResolutions: true, - traceResolution: true, - outFile - }, - include: ["src/**/*.ts"] - }), - }, - libFile - ], { currentDirectory: projectRoot }); - } - - function getSysWithSavedResolutions(outFile?: string) { - const sys = getSys(outFile); - const exit = sys.exit; - sys.exit = noop; - fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => executeCommandLine(sys, noop, ["--p", "."])); - sys.exit = exit; - sys.clearOutput(); - return sys; - } - - function getSysWithClearedResolutions(outFile?: string) { - const sys = getSys(outFile); - const exit = sys.exit; - sys.exit = noop; - fakes.withTemporaryPatchingForBuildinfoReadWrite(sys, sys => { - executeCommandLine(sys, noop, ["--p", "."]); - executeCommandLine(sys, noop, ["--p", ".", "--cleanPersistedProgram"]); - }); - sys.exit = exit; - sys.clearOutput(); - return sys; - } + const installNewTypeWithProject = installNewType("Install another type picked up by program"); + const deleteExistingTypeWithProject = deleteExistingType("Delete existing type picked up by program"); verifyTscWatch({ scenario: "persistResolutions", @@ -101,217 +9,60 @@ namespace ts.tscWatch { sys: getSys, commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], changes: [ - { - caption: "Modify globalMain file", - change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new globalFile and update globalMain file", - change: sys => { - sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// -`); - sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved by referenced path", - change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Modify main file", - change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new module and update main file", - change: sys => { - sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Delete file that could not be resolved", - change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Create external module file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Write .ts file that takes preference over resolved .d.ts file", - change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + modifyMain, + addNewFile, + writeFileNotResolved, + deleteFileNotResolved, + writeExternalModuleNotResolved, + writeExternalModuleTakingPreference, + deleteExternalModuleTakingPreference, + installNewTypeWithProject, + deleteExistingTypeWithProject, ] }); verifyTscWatch({ scenario: "persistResolutions", subScenario: "can build after resolutions have been saved in tsbuildinfo file", - sys: getSysWithSavedResolutions, + sys: () => getSysWithSavedResolutions("--p"), commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], changes: [ - { - caption: "Modify globalMain file", - change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new globalFile and update globalMain file", - change: sys => { - sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// -`); - sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved by referenced path", - change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Modify main file", - change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new module and update main file", - change: sys => { - sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Delete file that could not be resolved", - change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Create external module file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Write .ts file that takes preference over resolved .d.ts file", - change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + modifyMain, + addNewFile, + writeFileNotResolved, + deleteFileNotResolved, + writeFileNotResolved, + writeExternalModuleNotResolved, + writeExternalModuleTakingPreference, + deleteExternalModuleTakingPreference, + installNewTypeWithProject, + deleteExistingTypeWithProject, ] }); verifyTscWatch({ scenario: "persistResolutions", subScenario: "can build after resolutions are cleaned", - sys: getSysWithClearedResolutions, + sys: () => getSysWithClearedResolutions("--p"), commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], changes: [ - { - caption: "Modify globalMain file", - change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new globalFile and update globalMain file", - change: sys => { - sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// -`); - sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved by referenced path", - change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Modify main file", - change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new module and update main file", - change: sys => { - sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Delete file that could not be resolved", - change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Create external module file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Write .ts file that takes preference over resolved .d.ts file", - change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + modifyMain, + addNewFile, + writeFileNotResolved, + deleteFileNotResolved, + writeFileNotResolved, + writeExternalModuleNotResolved, + writeExternalModuleTakingPreference, + deleteExternalModuleTakingPreference, + installNewTypeWithProject, + deleteExistingTypeWithProject, ] }); @@ -321,217 +72,61 @@ namespace ts.tscWatch { sys: () => getSys("outFile.js"), commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], changes: [ - { - caption: "Modify globalMain file", - change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new globalFile and update globalMain file", - change: sys => { - sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// -`); - sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved by referenced path", - change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Modify main file", - change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new module and update main file", - change: sys => { - sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Delete file that could not be resolved", - change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Create external module file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Write .ts file that takes preference over resolved .d.ts file", - change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + modifyMain, + addNewFile, + writeFileNotResolved, + deleteFileNotResolved, + writeFileNotResolved, + writeExternalModuleNotResolved, + writeExternalModuleTakingPreference, + deleteExternalModuleTakingPreference, + installNewTypeWithProject, + deleteExistingTypeWithProject, ] }); verifyTscWatch({ scenario: "persistResolutions", subScenario: "can build after resolutions have been saved in tsbuildinfo file with outFile", - sys: () => getSysWithSavedResolutions("outFile.js"), + sys: () => getSysWithSavedResolutions("--p", "outFile.js"), commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], changes: [ - { - caption: "Modify globalMain file", - change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new globalFile and update globalMain file", - change: sys => { - sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// -`); - sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved by referenced path", - change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Modify main file", - change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new module and update main file", - change: sys => { - sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Delete file that could not be resolved", - change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Create external module file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Write .ts file that takes preference over resolved .d.ts file", - change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + modifyMain, + addNewFile, + writeFileNotResolved, + deleteFileNotResolved, + writeFileNotResolved, + writeExternalModuleNotResolved, + writeExternalModuleTakingPreference, + deleteExternalModuleTakingPreference, + installNewTypeWithProject, + deleteExistingTypeWithProject, ] }); verifyTscWatch({ scenario: "persistResolutions", subScenario: "can build after resolutions are cleaned with outFile", - sys: () => getSysWithClearedResolutions("outFile.js"), + sys: () => getSysWithClearedResolutions("--p", "outFile.js"), commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], changes: [ - { - caption: "Modify globalMain file", - change: sys => sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalSomething();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new globalFile and update globalMain file", - change: sys => { - sys.writeFile(`${projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/globalMain.ts`, `/// -`); - sys.appendFile(`${projectRoot}/src/globalMain.ts`, `globalFoo();`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved by referenced path", - change: sys => sys.writeFile(`${projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Modify main file", - change: sys => sys.appendFile(`${projectRoot}/src/main.ts`, `something();`), - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Add new module and update main file", - change: sys => { - sys.writeFile(`${projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); - sys.prependFile(`${projectRoot}/src/main.ts`, `import { foo } from "./newFile";`); - }, - timeouts: runQueuedTimeoutCallbacks, - }, - { - caption: "Write file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Delete file that could not be resolved", - change: sys => sys.deleteFile(`${projectRoot}/src/fileNotFound.ts`), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Create external module file that could not be resolved", - change: sys => sys.writeFile(`${projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, - { - caption: "Write .ts file that takes preference over resolved .d.ts file", - change: sys => sys.writeFile(`${projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"), - timeouts: sys => { - sys.runQueuedTimeoutCallbacks(); // Invalidate resolutions - sys.runQueuedTimeoutCallbacks(); // Actual update - } - }, + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + modifyMain, + addNewFile, + writeFileNotResolved, + deleteFileNotResolved, + writeFileNotResolved, + writeExternalModuleNotResolved, + writeExternalModuleTakingPreference, + deleteExternalModuleTakingPreference, + installNewTypeWithProject, + deleteExistingTypeWithProject, ] }); }); diff --git a/src/testRunner/unittests/tsserver/persistResolutions.ts b/src/testRunner/unittests/tsserver/persistResolutions.ts index d3b67b559a105..51cd3562c3912 100644 --- a/src/testRunner/unittests/tsserver/persistResolutions.ts +++ b/src/testRunner/unittests/tsserver/persistResolutions.ts @@ -1,74 +1,9 @@ namespace ts.projectSystem { describe("unittests:: tsserver:: persistResolutions", () => { function setupHost() { - const main: File = { - path: `${tscWatch.projectRoot}/src/main.ts`, - content: Utils.dedent` - import { something } from "./filePresent"; - import { something as something1 } from "./filePresent"; - import { something2 } from "./fileNotFound"; - import { externalThing1 } from "externalThing"; - import { externalThing2 } from "externalThingNotPresent";`, - }; - const anotherFileReusingResolution: File = { - path: `${tscWatch.projectRoot}/src/anotherFileReusingResolution.ts`, - content: Utils.dedent` - import { something } from "./filePresent"; - import { something2 } from "./fileNotFound"; - import { externalThing1 } from "externalThing"; - import { externalThing2 } from "externalThingNotPresent";`, - }; - const filePresent: File = { - path: `${tscWatch.projectRoot}/src/filePresent.ts`, - content: `export function something() { return 10; }`, - }; - const fileWithRef: File = { - path: `${tscWatch.projectRoot}/src/fileWithRef.ts`, - content: `/// `, - }; - const types: File = { - path: `${tscWatch.projectRoot}/src/types.ts`, - content: `interface SomeType {}`, - }; - const globalMain: File = { - path: `${tscWatch.projectRoot}/src/globalMain.ts`, - content: Utils.dedent` - /// - /// - function globalMain() { } - `, - }; - const globalAnotherFileWithSameReferenes: File = { - path: `${tscWatch.projectRoot}/src/globalAnotherFileWithSameReferenes.ts`, - content: Utils.dedent` - /// - /// - function globalAnotherFileWithSameReferenes() { } - `, - }; - const globalFilePresent: File = { - path: `${tscWatch.projectRoot}/src/globalFilePresent.ts`, - content: `function globalSomething() { return 10; }`, - }; - const externalThing: File = { - path: `${tscWatch.projectRoot}/src/externalThing.d.ts`, - content: `export function externalThing1(): number;`, - }; - const config: File = { - path: `${tscWatch.projectRoot}/tsconfig.json`, - content: JSON.stringify({ - compilerOptions: { - module: "amd", - composite: true, - persistResolutions: true, - traceResolution: true, - outFile - }, - include: ["src/**/*.ts"] - }), - }; + const { main, anotherFileReusingResolution, filePresent, fileWithRef, types, globalMain, globalAnotherFileWithSameReferenes, globalFilePresent, externalThing, someType, config } = tscWatch.PersistentResolutionsTests.getFiles(); const host = createServerHost( - [main, anotherFileReusingResolution, filePresent, fileWithRef, types, globalMain, globalAnotherFileWithSameReferenes, globalFilePresent, externalThing, config, libFile], + [main, anotherFileReusingResolution, filePresent, fileWithRef, types, globalMain, globalAnotherFileWithSameReferenes, globalFilePresent, externalThing, someType, config, libFile], { currentDirectory: tscWatch.projectRoot, useCaseSensitiveFileNames: true } ); return { host, main, globalMain, config }; @@ -105,12 +40,7 @@ namespace ts.projectSystem { return { session, project }; } - it("uses saved resolution for program", () => { - const result = setupHostWithSavedResolutions(); - const { project, session } = setup(result); - const { host, main, globalMain } = result; - appendProjectFileText(project, session); - + function modifyGlobalMain(session: TestSession, project: server.ConfiguredProject, globalMain: File) { session.logger.logs.push(`Modify global file::`); session.executeCommandSeq({ command: protocol.CommandTypes.Change, @@ -126,7 +56,9 @@ namespace ts.projectSystem { }); project.updateGraph(); appendProjectFileText(project, session); + } + function addNewGlobalFile(host: TestServerHost, session: TestSession, project: server.ConfiguredProject, globalMain: File) { session.logger.logs.push(`Add new globalFile and update globalMain file::`); host.writeFile(`${tscWatch.projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); session.executeCommandSeq({ @@ -155,12 +87,16 @@ namespace ts.projectSystem { }); host.runQueuedTimeoutCallbacks(); appendProjectFileText(project, session); + } + function writeFileNotResolvedByReferencedPath(host: TestServerHost, session: TestSession, project: server.ConfiguredProject) { session.logger.logs.push("Write file that could not be resolved by referenced path::"); host.writeFile(`${tscWatch.projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"); host.runQueuedTimeoutCallbacks(); appendProjectFileText(project, session); + } + function modifyMain(session: TestSession, project: server.ConfiguredProject, main: File) { session.logger.logs.push(`Modify main file::`); session.executeCommandSeq({ command: protocol.CommandTypes.Change, @@ -176,7 +112,9 @@ namespace ts.projectSystem { }); project.updateGraph(); appendProjectFileText(project, session); + } + function addNewFile(host: TestServerHost, session: TestSession, project: server.ConfiguredProject, main: File) { session.logger.logs.push(`Add new module and update main file::`); host.writeFile(`${tscWatch.projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); session.executeCommandSeq({ @@ -193,262 +131,129 @@ namespace ts.projectSystem { }); host.runQueuedTimeoutCallbacks(); appendProjectFileText(project, session); + } + function writeFileNotResolved(host: TestServerHost, session: TestSession, project: server.ConfiguredProject) { session.logger.logs.push("Write file that could not be resolved"); host.writeFile(`${tscWatch.projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"); host.runQueuedTimeoutCallbacks(); // Invalidate resolutions host.runQueuedTimeoutCallbacks(); // Actual Update appendProjectFileText(project, session); + } + function deleteFileNotResolved(host: TestServerHost, session: TestSession, project: server.ConfiguredProject) { session.logger.logs.push("Delete file that could not be resolved"); host.deleteFile(`${tscWatch.projectRoot}/src/fileNotFound.ts`); host.runQueuedTimeoutCallbacks(); // Invalidate resolutions host.runQueuedTimeoutCallbacks(); // Actual Update appendProjectFileText(project, session); + } + function writeExternalModuleNotResolved(host: TestServerHost, session: TestSession, project: server.ConfiguredProject) { session.logger.logs.push("Create external module file that could not be resolved"); host.writeFile(`${tscWatch.projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"); host.runQueuedTimeoutCallbacks(); // Invalidate resolutions host.runQueuedTimeoutCallbacks(); // Actual Update appendProjectFileText(project, session); + } + function writeExternalModuleTakingPreference(host: TestServerHost, session: TestSession, project: server.ConfiguredProject) { session.logger.logs.push("Write .ts file that takes preference over resolved .d.ts file"); host.writeFile(`${tscWatch.projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"); host.runQueuedTimeoutCallbacks(); // Invalidate resolutions host.runQueuedTimeoutCallbacks(); // Actual Update appendProjectFileText(project, session); + } - baselineTsserverLogs("persistResolutions", "uses saved resolution for program", session); - }); - - it("creates new resolutions for program if tsbuildinfo is not present", () => { - const result = setupHost(); - const { project, session } = setup(result); - const { host, main, globalMain } = result; - appendProjectFileText(project, session); - - session.logger.logs.push(`Modify global file::`); - session.executeCommandSeq({ - command: protocol.CommandTypes.Change, - arguments: { - file: globalMain.path, - line: 4, - offset: 1, - endLine: 4, - endOffset: 1, - insertString: `globalSomething(); -` - } - }); - project.updateGraph(); - appendProjectFileText(project, session); - - session.logger.logs.push(`Add new globalFile and update globalMain file::`); - host.writeFile(`${tscWatch.projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); - session.executeCommandSeq({ - command: protocol.CommandTypes.Change, - arguments: { - file: globalMain.path, - line: 1, - offset: 1, - endLine: 1, - endOffset: 1, - insertString: `/// -`, - } - }); - session.executeCommandSeq({ - command: protocol.CommandTypes.Change, - arguments: { - file: globalMain.path, - line: 6, - offset: 1, - endLine: 6, - endOffset: 1, - insertString: `globalFoo(); -` - } - }); - host.runQueuedTimeoutCallbacks(); - appendProjectFileText(project, session); - - session.logger.logs.push("Write file that could not be resolved by referenced path::"); - host.writeFile(`${tscWatch.projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"); - host.runQueuedTimeoutCallbacks(); - appendProjectFileText(project, session); - - session.logger.logs.push(`Modify main file::`); - session.executeCommandSeq({ - command: protocol.CommandTypes.Change, - arguments: { - file: main.path, - line: 4, - offset: 1, - endLine: 4, - endOffset: 1, - insertString: `something(); -` - } - }); - project.updateGraph(); - appendProjectFileText(project, session); - - session.logger.logs.push(`Add new module and update main file::`); - host.writeFile(`${tscWatch.projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); - session.executeCommandSeq({ - command: protocol.CommandTypes.Change, - arguments: { - file: main.path, - line: 1, - offset: 1, - endLine: 1, - endOffset: 1, - insertString: `import { foo } from "./newFile"; -`, - } - }); - host.runQueuedTimeoutCallbacks(); - appendProjectFileText(project, session); - - session.logger.logs.push("Write file that could not be resolved"); - host.writeFile(`${tscWatch.projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"); + function deleteExternalModuleTakingPreference(host: TestServerHost, session: TestSession, project: server.ConfiguredProject) { + session.logger.logs.push("Delete .ts file that takes preference over resolved .d.ts file"); + host.deleteFile(`${tscWatch.projectRoot}/src/externalThing.ts`); host.runQueuedTimeoutCallbacks(); // Invalidate resolutions host.runQueuedTimeoutCallbacks(); // Actual Update appendProjectFileText(project, session); + } - session.logger.logs.push("Delete file that could not be resolved"); - host.deleteFile(`${tscWatch.projectRoot}/src/fileNotFound.ts`); + function installNewType(host: TestServerHost, session: TestSession, project: server.ConfiguredProject) { + session.logger.logs.push("Install another type picked up by program"); + host.ensureFileOrFolder({ path: `${tscWatch.projectRoot}/node_modules/@types/someType2/index.d.ts`, content: "export function someType2(): number;" }); host.runQueuedTimeoutCallbacks(); // Invalidate resolutions host.runQueuedTimeoutCallbacks(); // Actual Update appendProjectFileText(project, session); + } - session.logger.logs.push("Create external module file that could not be resolved"); - host.writeFile(`${tscWatch.projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"); + function deleteExistingType(host: TestServerHost, session: TestSession, project: server.ConfiguredProject) { + session.logger.logs.push("Delete existing type picked up by program"); + host.deleteFolder(`${tscWatch.projectRoot}/node_modules/@types/someType`, /*recursive*/ true); host.runQueuedTimeoutCallbacks(); // Invalidate resolutions host.runQueuedTimeoutCallbacks(); // Actual Update appendProjectFileText(project, session); + } - session.logger.logs.push("Write .ts file that takes preference over resolved .d.ts file"); - host.writeFile(`${tscWatch.projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"); - host.runQueuedTimeoutCallbacks(); // Invalidate resolutions - host.runQueuedTimeoutCallbacks(); // Actual Update - appendProjectFileText(project, session); - - baselineTsserverLogs("persistResolutions", "creates new resolutions for program if tsbuildinfo is not present", session); - }); - - it("creates new resolutions for program if tsbuildinfo is present but program is not persisted", () => { - const result = setupHostWithClearedResolutions(); + it("uses saved resolution for program", () => { + const result = setupHostWithSavedResolutions(); const { project, session } = setup(result); const { host, main, globalMain } = result; appendProjectFileText(project, session); - session.logger.logs.push(`Modify global file::`); - session.executeCommandSeq({ - command: protocol.CommandTypes.Change, - arguments: { - file: globalMain.path, - line: 4, - offset: 1, - endLine: 4, - endOffset: 1, - insertString: `globalSomething(); -` - } - }); - project.updateGraph(); - appendProjectFileText(project, session); - - session.logger.logs.push(`Add new globalFile and update globalMain file::`); - host.writeFile(`${tscWatch.projectRoot}/src/globalNewFile.ts`, "function globalFoo() { return 20; }"); - session.executeCommandSeq({ - command: protocol.CommandTypes.Change, - arguments: { - file: globalMain.path, - line: 1, - offset: 1, - endLine: 1, - endOffset: 1, - insertString: `/// -`, - } - }); - session.executeCommandSeq({ - command: protocol.CommandTypes.Change, - arguments: { - file: globalMain.path, - line: 6, - offset: 1, - endLine: 6, - endOffset: 1, - insertString: `globalFoo(); -` - } - }); - host.runQueuedTimeoutCallbacks(); - appendProjectFileText(project, session); - - session.logger.logs.push("Write file that could not be resolved by referenced path::"); - host.writeFile(`${tscWatch.projectRoot}/src/globalFileNotFound.ts`, "function globalSomething2() { return 20; }"); - host.runQueuedTimeoutCallbacks(); - appendProjectFileText(project, session); + modifyGlobalMain(session, project, globalMain); + addNewGlobalFile(host, session, project, globalMain); + writeFileNotResolvedByReferencedPath(host, session, project); + modifyMain(session, project, main); + addNewFile(host, session, project, main); + writeFileNotResolved(host, session, project); + deleteFileNotResolved(host, session, project); + writeFileNotResolved(host, session, project); + writeExternalModuleNotResolved(host, session, project); + writeExternalModuleTakingPreference(host, session, project); + deleteExternalModuleTakingPreference(host, session, project); + installNewType(host, session, project); + deleteExistingType(host, session, project); - session.logger.logs.push(`Modify main file::`); - session.executeCommandSeq({ - command: protocol.CommandTypes.Change, - arguments: { - file: main.path, - line: 4, - offset: 1, - endLine: 4, - endOffset: 1, - insertString: `something(); -` - } - }); - project.updateGraph(); - appendProjectFileText(project, session); + baselineTsserverLogs("persistResolutions", "uses saved resolution for program", session); + }); - session.logger.logs.push(`Add new module and update main file::`); - host.writeFile(`${tscWatch.projectRoot}/src/newFile.ts`, "export function foo() { return 20; }"); - session.executeCommandSeq({ - command: protocol.CommandTypes.Change, - arguments: { - file: main.path, - line: 1, - offset: 1, - endLine: 1, - endOffset: 1, - insertString: `import { foo } from "./newFile"; -`, - } - }); - host.runQueuedTimeoutCallbacks(); + it("creates new resolutions for program if tsbuildinfo is not present", () => { + const result = setupHost(); + const { project, session } = setup(result); + const { host, main, globalMain } = result; appendProjectFileText(project, session); - session.logger.logs.push("Write file that could not be resolved"); - host.writeFile(`${tscWatch.projectRoot}/src/fileNotFound.ts`, "export function something2() { return 20; }"); - host.runQueuedTimeoutCallbacks(); // Invalidate resolutions - host.runQueuedTimeoutCallbacks(); // Actual Update - appendProjectFileText(project, session); + modifyGlobalMain(session, project, globalMain); + addNewGlobalFile(host, session, project, globalMain); + writeFileNotResolvedByReferencedPath(host, session, project); + modifyMain(session, project, main); + addNewFile(host, session, project, main); + writeFileNotResolved(host, session, project); + deleteFileNotResolved(host, session, project); + writeFileNotResolved(host, session, project); + writeExternalModuleNotResolved(host, session, project); + writeExternalModuleTakingPreference(host, session, project); + deleteExternalModuleTakingPreference(host, session, project); + installNewType(host, session, project); + deleteExistingType(host, session, project); - session.logger.logs.push("Delete file that could not be resolved"); - host.deleteFile(`${tscWatch.projectRoot}/src/fileNotFound.ts`); - host.runQueuedTimeoutCallbacks(); // Invalidate resolutions - host.runQueuedTimeoutCallbacks(); // Actual Update - appendProjectFileText(project, session); + baselineTsserverLogs("persistResolutions", "creates new resolutions for program if tsbuildinfo is not present", session); + }); - session.logger.logs.push("Create external module file that could not be resolved"); - host.writeFile(`${tscWatch.projectRoot}/src/externalThingNotPresent.ts`, "export function externalThing2() { return 20; }"); - host.runQueuedTimeoutCallbacks(); // Invalidate resolutions - host.runQueuedTimeoutCallbacks(); // Actual Update + it("creates new resolutions for program if tsbuildinfo is present but program is not persisted", () => { + const result = setupHostWithClearedResolutions(); + const { project, session } = setup(result); + const { host, main, globalMain } = result; appendProjectFileText(project, session); - session.logger.logs.push("Write .ts file that takes preference over resolved .d.ts file"); - host.writeFile(`${tscWatch.projectRoot}/src/externalThing.ts`, "export function externalThing1() { return 10; }"); - host.runQueuedTimeoutCallbacks(); // Invalidate resolutions - host.runQueuedTimeoutCallbacks(); // Actual Update - appendProjectFileText(project, session); + modifyGlobalMain(session, project, globalMain); + addNewGlobalFile(host, session, project, globalMain); + writeFileNotResolvedByReferencedPath(host, session, project); + modifyMain(session, project, main); + addNewFile(host, session, project, main); + writeFileNotResolved(host, session, project); + deleteFileNotResolved(host, session, project); + writeFileNotResolved(host, session, project); + writeExternalModuleNotResolved(host, session, project); + writeExternalModuleTakingPreference(host, session, project); + deleteExternalModuleTakingPreference(host, session, project); + installNewType(host, session, project); + deleteExistingType(host, session, project); baselineTsserverLogs("persistResolutions", "creates new resolutions for program if tsbuildinfo is present but program is not persisted", session); }); diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 9c65af2d2d91f..65c2cceb36d4c 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -14,6 +14,9 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; +//// [/src/project/node_modules/@types/someType/index.d.ts] +export function someType(): number; + //// [/src/project/src/anotherFileReusingResolution.ts] import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; @@ -94,7 +97,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -118,6 +121,12 @@ Resolution for module 'externalThing' was found in cache from location '/src/pro ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -166,12 +175,13 @@ Program files:: /src/project/src/globalAnotherFileWithSameReferenes.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -187,6 +197,7 @@ No cached semantic diagnostics in the builder:: "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -195,6 +206,7 @@ No cached semantic diagnostics in the builder:: "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -283,6 +295,9 @@ No cached semantic diagnostics in the builder:: }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -697,6 +712,21 @@ No cached semantic diagnostics in the builder:: "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -713,6 +743,18 @@ No cached semantic diagnostics in the builder:: "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -800,12 +842,19 @@ No cached semantic diagnostics in the builder:: "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 8857 + "size": 9415 } @@ -864,6 +913,7 @@ Program files:: /src/project/src/globalAnotherFileWithSameReferenes.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -930,12 +980,13 @@ Program files:: /src/project/src/globalAnotherFileWithSameReferenes.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -951,6 +1002,7 @@ No cached semantic diagnostics in the builder:: "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -959,6 +1011,7 @@ No cached semantic diagnostics in the builder:: "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1047,6 +1100,9 @@ No cached semantic diagnostics in the builder:: }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -1461,6 +1517,21 @@ No cached semantic diagnostics in the builder:: "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -1477,6 +1548,18 @@ No cached semantic diagnostics in the builder:: "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1564,12 +1647,19 @@ No cached semantic diagnostics in the builder:: "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 8891 + "size": 9449 } @@ -1615,7 +1705,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -1636,6 +1726,12 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1685,12 +1781,13 @@ Program files:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1707,6 +1804,7 @@ No cached semantic diagnostics in the builder:: "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -1716,6 +1814,7 @@ No cached semantic diagnostics in the builder:: "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1813,6 +1912,9 @@ No cached semantic diagnostics in the builder:: }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -2248,6 +2350,21 @@ No cached semantic diagnostics in the builder:: "index": 8 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -2265,6 +2382,18 @@ No cached semantic diagnostics in the builder:: "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2352,12 +2481,19 @@ No cached semantic diagnostics in the builder:: "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 9404 + "size": 9962 } @@ -2396,7 +2532,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -2417,6 +2553,12 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2457,12 +2599,13 @@ Program files:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2480,6 +2623,7 @@ No cached semantic diagnostics in the builder:: "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -2489,6 +2633,7 @@ No cached semantic diagnostics in the builder:: "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -2590,6 +2735,9 @@ No cached semantic diagnostics in the builder:: }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -3049,6 +3197,21 @@ No cached semantic diagnostics in the builder:: "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -3064,6 +3227,18 @@ No cached semantic diagnostics in the builder:: "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -3125,12 +3300,19 @@ No cached semantic diagnostics in the builder:: "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 9448 + "size": 10006 } @@ -3145,7 +3327,7 @@ exitCode:: ExitStatus.Success //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} @@ -3199,7 +3381,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -3223,6 +3405,12 @@ Resolution for module 'externalThing' was found in cache from location '/src/pro ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3263,17 +3451,18 @@ Program files:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents -Change:: Modify global main file +Change:: Modify globalMain file Input:: //// [/src/project/src/globalMain.ts] /// @@ -3326,12 +3515,13 @@ Program files:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -3349,6 +3539,7 @@ No cached semantic diagnostics in the builder:: "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -3358,6 +3549,7 @@ No cached semantic diagnostics in the builder:: "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -3459,6 +3651,9 @@ No cached semantic diagnostics in the builder:: }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -3918,6 +4113,21 @@ No cached semantic diagnostics in the builder:: "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -3933,6 +4143,18 @@ No cached semantic diagnostics in the builder:: "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -3994,12 +4216,19 @@ No cached semantic diagnostics in the builder:: "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 9484 + "size": 10042 } @@ -4043,7 +4272,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -4095,12 +4324,13 @@ Program files:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4118,6 +4348,7 @@ No cached semantic diagnostics in the builder:: "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -4127,6 +4358,7 @@ No cached semantic diagnostics in the builder:: "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -4228,6 +4460,9 @@ No cached semantic diagnostics in the builder:: }, "./src/main.ts": { "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -4687,6 +4922,21 @@ No cached semantic diagnostics in the builder:: "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -4702,6 +4952,18 @@ No cached semantic diagnostics in the builder:: "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -4763,12 +5025,19 @@ No cached semantic diagnostics in the builder:: "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 9508 + "size": 10066 } @@ -4814,7 +5083,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -4839,6 +5108,12 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -4880,12 +5155,13 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4904,6 +5180,7 @@ No cached semantic diagnostics in the builder:: "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -4914,6 +5191,7 @@ No cached semantic diagnostics in the builder:: "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -5023,6 +5301,9 @@ No cached semantic diagnostics in the builder:: }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -5515,6 +5796,21 @@ No cached semantic diagnostics in the builder:: "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -5531,6 +5827,18 @@ No cached semantic diagnostics in the builder:: "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -5598,12 +5906,19 @@ No cached semantic diagnostics in the builder:: "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10018 + "size": 10576 } @@ -5638,7 +5953,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -5660,6 +5975,12 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 4 import { externalThing2 } from "externalThingNotPresent"; @@ -5692,12 +6013,13 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -5717,6 +6039,7 @@ No cached semantic diagnostics in the builder:: "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/externalThing.d.ts", @@ -5728,6 +6051,7 @@ No cached semantic diagnostics in the builder:: "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", "./src/externalThing.tsx", "./src/externalThingNotPresent.ts", @@ -5837,6 +6161,9 @@ No cached semantic diagnostics in the builder:: }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -6349,6 +6676,21 @@ No cached semantic diagnostics in the builder:: "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -6366,6 +6708,18 @@ No cached semantic diagnostics in the builder:: "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -6430,12 +6784,19 @@ No cached semantic diagnostics in the builder:: "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10302 + "size": 10860 } @@ -6450,7 +6811,7 @@ exitCode:: ExitStatus.Success //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[]},"version":"FakeTSVersion"} @@ -6500,7 +6861,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -6528,6 +6889,12 @@ Resolution for module 'externalThing' was found in cache from location '/src/pro ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 4 import { externalThing2 } from "externalThingNotPresent"; @@ -6560,12 +6927,13 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents @@ -6603,7 +6971,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -6647,12 +7015,13 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -6672,6 +7041,7 @@ No cached semantic diagnostics in the builder:: "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/externalThing.d.ts", @@ -6683,6 +7053,7 @@ No cached semantic diagnostics in the builder:: "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", "./src/externalThing.tsx", "./src/externalThingNotPresent.ts", @@ -6792,6 +7163,9 @@ No cached semantic diagnostics in the builder:: }, "./src/main.ts": { "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -7304,6 +7678,21 @@ No cached semantic diagnostics in the builder:: "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -7321,6 +7710,18 @@ No cached semantic diagnostics in the builder:: "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -7385,12 +7786,19 @@ No cached semantic diagnostics in the builder:: "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10326 + "size": 10884 } @@ -7420,7 +7828,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -7440,6 +7848,12 @@ Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -7481,12 +7895,13 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"filesByName":[[24,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[26,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -7505,6 +7920,7 @@ No cached semantic diagnostics in the builder:: "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -7515,6 +7931,7 @@ No cached semantic diagnostics in the builder:: "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/filenotfound.ts", "./src/fileNotFound.ts", "./src/externalThing.ts", @@ -7621,6 +8038,9 @@ No cached semantic diagnostics in the builder:: }, "./src/main.ts": { "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -8107,6 +8527,21 @@ No cached semantic diagnostics in the builder:: "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -8126,6 +8561,18 @@ No cached semantic diagnostics in the builder:: "filesByName": { "./src/filenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -8190,20 +8637,27 @@ No cached semantic diagnostics in the builder:: "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10007 + "size": 10565 } -Change:: Create external module file that could not be resolved +Change:: Write file that could not be resolved Input:: -//// [/src/project/src/externalThingNotPresent.ts] -export function externalThing2() { return 20; } +//// [/src/project/src/fileNotFound.ts] +export function something2() { return 20; } @@ -8214,8 +8668,31 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFile Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/externalThingNotPresent.ts' exist - use it as a name resolution result. -======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. @@ -8223,29 +8700,35 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. -======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== -src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +5 import { externalThing2 } from "externalThingNotPresent";something();something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts /src/project/src/externalThing.d.ts -/src/project/src/externalThingNotPresent.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -8256,12 +8739,13 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"filesByName":[[26,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -8269,8 +8753,8 @@ No cached semantic diagnostics in the builder:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -8281,9 +8765,10 @@ No cached semantic diagnostics in the builder:: "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -8292,16 +8777,47 @@ No cached semantic diagnostics in the builder:: "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/filenotfound.ts", - "./src/fileNotFound.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", - "./src/externalThing.tsx" + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -8317,8 +8833,8 @@ No cached semantic diagnostics in the builder:: ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] ], @@ -8330,12 +8846,12 @@ No cached semantic diagnostics in the builder:: "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, "./src/externalthing.d.ts": { "version": "5686005290-export function externalThing1(): number;" }, - "./src/externalthingnotpresent.ts": { - "version": "5318862050-export function externalThing2() { return 20; }" - }, "./src/anotherfilereusingresolution.ts": { "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, @@ -8371,6 +8887,9 @@ No cached semantic diagnostics in the builder:: }, "./src/main.ts": { "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -8384,8 +8903,8 @@ No cached semantic diagnostics in the builder:: "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -8401,8 +8920,8 @@ No cached semantic diagnostics in the builder:: ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] }, @@ -8453,50 +8972,50 @@ No cached semantic diagnostics in the builder:: ] }, { - "fileName": "./src/externalThing.d.ts", - "originalFileName": "./src/externalThing.d.ts", - "path": "./src/externalthing.d.ts", - "resolvedPath": "./src/externalthing.d.ts", - "version": "5686005290-export function externalThing1(): number;", - "flags": 0, + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, "includeReasons": [ { "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", - "index": 2 + "index": 1 }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", "file": "./src/main.ts", - "index": 4 + "index": 3 } ] }, { - "fileName": "./src/externalThingNotPresent.ts", - "originalFileName": "./src/externalThingNotPresent.ts", - "path": "./src/externalthingnotpresent.ts", - "resolvedPath": "./src/externalthingnotpresent.ts", - "version": "5318862050-export function externalThing2() { return 20; }", + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", "flags": 0, "includeReasons": [ { "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", - "index": 3 + "index": 2 }, { "kind": "RootFile", - "index": 2 + "index": 1 }, { "kind": "Import", "file": "./src/main.ts", - "index": 5 + "index": 4 } ] }, @@ -8560,10 +9079,40 @@ No cached semantic diagnostics in the builder:: [ "externalThingNotPresent", { - "resolvedModule": { - "resolvedFileName": "./src/externalThingNotPresent.ts", - "extension": ".ts" - } + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] ], @@ -8810,10 +9359,40 @@ No cached semantic diagnostics in the builder:: [ "externalThingNotPresent", { - "resolvedModule": { - "resolvedFileName": "./src/externalThingNotPresent.ts", - "extension": ".ts" - } + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] ], @@ -8823,12 +9402,27 @@ No cached semantic diagnostics in the builder:: "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -8840,9 +9434,18 @@ No cached semantic diagnostics in the builder:: "./src/newFile.ts", "./src/types.ts" ], - "filesByName": { - "./src/filenotfound.ts": 0 - }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -8867,30 +9470,67 @@ No cached semantic diagnostics in the builder:: ] }, { - "resolvedModule": { - "resolvedFileName": "./src/externalThingNotPresent.ts", - "extension": ".ts" - } + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 8964 + "size": 10884 } -Change:: Write .ts file that takes preference over resolved .d.ts file +Change:: Create external module file that could not be resolved Input:: -//// [/src/project/src/externalThing.ts] -export function externalThing1() { return 10; } +//// [/src/project/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } @@ -8899,37 +9539,1985 @@ Output:: Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. -Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. -Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. -src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.d.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1909,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":674,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-1909) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-674) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } -Found 2 errors. +====================================================================== -exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1909, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 674, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10355 +} + + + +Change:: Write .ts file that takes preference over resolved .d.ts file +Input:: +//// [/src/project/src/externalThing.ts] +export function externalThing1() { return 10; } + + + +Output:: +/lib/tsc --b src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.d.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/externalThing.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + + +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2178,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":762,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-2178) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-762) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 2178, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 762, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10664 +} + + + +Change:: Delete tsbuildinfo file and do clean build +Input:: +//// [/src/project/outFile.tsbuildinfo] unlink + + +Output:: +/lib/tsc --b src/project +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThing.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThing' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThing' was found in cache from location '/src/project/src'. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: SafeModules +Program structureReused: Not Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts -/src/project/src/externalThing.d.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.ts /src/project/src/externalThingNotPresent.ts /src/project/src/anotherFileReusingResolution.ts -/src/project/src/externalThing.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts /src/project/src/globalFilePresent.ts @@ -8939,23 +11527,247 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: +//// [/src/project/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThing" { + export function externalThing1(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + + //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":3,"file":15,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,20,18,16,21,24,23,22,26,25,15,27,7],"filesByName":[[28,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[20,30]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2178,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":762,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-2178) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-762) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThing" { + export function externalThing1(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 2178, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 762, + "kind": "text" + } + ] + } + }, "program": { "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", - "./src/externalthing.d.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/externalthing.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -8965,11 +11777,12 @@ No cached semantic diagnostics in the builder:: "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", - "./src/externalThing.d.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/externalThing.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -8977,14 +11790,13 @@ No cached semantic diagnostics in the builder:: "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/filenotfound.ts", - "./src/fileNotFound.ts", - "./src/externalThing.tsx" + "./node_modules/@types/someType/index.d.ts" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/externalthing.d.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", "./src/externalthingnotpresent.ts" ], [ @@ -9001,7 +11813,8 @@ No cached semantic diagnostics in the builder:: ], [ "./src/filepresent.ts", - "./src/externalthing.d.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] @@ -9014,8 +11827,11 @@ No cached semantic diagnostics in the builder:: "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/externalthing.d.ts": { - "version": "5686005290-export function externalThing1(): number;" + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }" }, "./src/externalthingnotpresent.ts": { "version": "5318862050-export function externalThing2() { return 20; }" @@ -9023,9 +11839,6 @@ No cached semantic diagnostics in the builder:: "./src/anotherfilereusingresolution.ts": { "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, - "./src/externalthing.ts": { - "version": "5618215488-export function externalThing1() { return 10; }" - }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "affectsGlobalScope": true @@ -9058,6 +11871,9 @@ No cached semantic diagnostics in the builder:: }, "./src/main.ts": { "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -9071,7 +11887,8 @@ No cached semantic diagnostics in the builder:: "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/externalthing.d.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", "./src/externalthingnotpresent.ts" ], "./src/filewithref.ts": [ @@ -9088,7 +11905,8 @@ No cached semantic diagnostics in the builder:: ], "./src/main.ts": [ "./src/filepresent.ts", - "./src/externalthing.d.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] @@ -9125,7 +11943,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 3 + "index": 4 }, { "kind": "Import", @@ -9140,11 +11958,35 @@ No cached semantic diagnostics in the builder:: ] }, { - "fileName": "./src/externalThing.d.ts", - "originalFileName": "./src/externalThing.d.ts", - "path": "./src/externalthing.d.ts", - "resolvedPath": "./src/externalthing.d.ts", - "version": "5686005290-export function externalThing1(): number;", + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", "flags": 0, "includeReasons": [ { @@ -9152,6 +11994,10 @@ No cached semantic diagnostics in the builder:: "file": "./src/anotherfilereusingresolution.ts", "index": 2 }, + { + "kind": "RootFile", + "index": 1 + }, { "kind": "Import", "file": "./src/main.ts", @@ -9231,13 +12077,9 @@ No cached semantic diagnostics in the builder:: "externalThing", { "resolvedModule": { - "resolvedFileName": "./src/externalThing.d.ts", - "extension": ".d.ts" - }, - "failedLookupLocations": [ - "./src/externalThing.ts", - "./src/externalThing.tsx" - ] + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } } ], [ @@ -9257,20 +12099,6 @@ No cached semantic diagnostics in the builder:: } ] }, - { - "fileName": "./src/externalThing.ts", - "originalFileName": "./src/externalThing.ts", - "path": "./src/externalthing.ts", - "resolvedPath": "./src/externalthing.ts", - "version": "5618215488-export function externalThing1() { return 10; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -9286,7 +12114,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 12 + "index": 13 } ] }, @@ -9303,7 +12131,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -9322,7 +12150,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 7 + "index": 8 }, { "kind": "ReferenceFile", @@ -9346,7 +12174,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -9369,7 +12197,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -9388,7 +12216,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -9407,7 +12235,7 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -9426,7 +12254,7 @@ No cached semantic diagnostics in the builder:: }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -9495,13 +12323,9 @@ No cached semantic diagnostics in the builder:: "externalThing", { "resolvedModule": { - "resolvedFileName": "./src/externalThing.d.ts", - "extension": ".d.ts" - }, - "failedLookupLocations": [ - "./src/externalThing.ts", - "./src/externalThing.tsx" - ] + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } } ], [ @@ -9517,15 +12341,31 @@ No cached semantic diagnostics in the builder:: "includeReasons": [ { "kind": "RootFile", - "index": 10 + "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/externalThing.ts", "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -9537,9 +12377,18 @@ No cached semantic diagnostics in the builder:: "./src/newFile.ts", "./src/types.ts" ], - "filesByName": { - "./src/filenotfound.ts": 0 - }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -9555,13 +12404,9 @@ No cached semantic diagnostics in the builder:: }, { "resolvedModule": { - "resolvedFileName": "./src/externalThing.d.ts", - "extension": ".d.ts" - }, - "failedLookupLocations": [ - "./src/externalThing.ts", - "./src/externalThing.tsx" - ] + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -9574,11 +12419,44 @@ No cached semantic diagnostics in the builder:: "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 9248 + "size": 10303 } + + +Change:: Install another type and program is not created because its not listed file in tsconfig +Input:: +//// [/src/project/node_modules/@types/someType2/index.d.ts] +export function someType2(): number; + + + +Output:: +/lib/tsc --b src/project +exitCode:: ExitStatus.Success + + + + +Change:: Delete existing type and program is not created because its not listed file in tsconfig +Input:: +//// [/src/project/node_modules/@types/someType] unlink + + +Output:: +/lib/tsc --b src/project +exitCode:: ExitStatus.Success + + diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 8bf3ca1319f25..e62ed97049a78 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -14,6 +14,9 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; +//// [/src/project/node_modules/@types/someType/index.d.ts] +export function someType(): number; + //// [/src/project/src/anotherFileReusingResolution.ts] import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; @@ -94,7 +97,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -118,6 +121,12 @@ Resolution for module 'externalThing' was found in cache from location '/src/pro ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -166,6 +175,7 @@ Program files:: /src/project/src/globalAnotherFileWithSameReferenes.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /lib/lib.d.ts @@ -178,10 +188,11 @@ Semantic diagnostics in builder refreshed for:: /src/project/src/globalAnotherFileWithSameReferenes.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -197,6 +208,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -205,6 +217,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -303,6 +316,10 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -356,6 +373,7 @@ Semantic diagnostics in builder refreshed for:: }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -407,6 +425,10 @@ Semantic diagnostics in builder refreshed for:: "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -826,6 +848,21 @@ Semantic diagnostics in builder refreshed for:: "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -842,6 +879,18 @@ Semantic diagnostics in builder refreshed for:: "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -929,12 +978,19 @@ Semantic diagnostics in builder refreshed for:: "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 9747 + "size": 10285 } @@ -993,6 +1049,7 @@ Program files:: /src/project/src/globalAnotherFileWithSameReferenes.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: @@ -1059,6 +1116,7 @@ Program files:: /src/project/src/globalAnotherFileWithSameReferenes.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /lib/lib.d.ts @@ -1071,10 +1129,11 @@ Semantic diagnostics in builder refreshed for:: /src/project/src/globalAnotherFileWithSameReferenes.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-19927227517-/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-19927227517-/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1090,6 +1149,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -1098,6 +1158,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1196,6 +1257,10 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -1229,6 +1294,7 @@ Semantic diagnostics in builder refreshed for:: "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -1280,6 +1346,10 @@ Semantic diagnostics in builder refreshed for:: "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -1699,6 +1769,21 @@ Semantic diagnostics in builder refreshed for:: "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -1715,6 +1800,18 @@ Semantic diagnostics in builder refreshed for:: "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1802,12 +1899,19 @@ Semantic diagnostics in builder refreshed for:: "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10422 + "size": 10960 } @@ -1853,7 +1957,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -1874,6 +1978,12 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1923,6 +2033,7 @@ Program files:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /lib/lib.d.ts @@ -1936,10 +2047,11 @@ Semantic diagnostics in builder refreshed for:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"604791887-/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[10,1],[9,1],[11,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"604791887-/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[12,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[10,1],[9,1],[11,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1956,6 +2068,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -1965,6 +2078,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -2073,6 +2187,10 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -2107,6 +2225,7 @@ Semantic diagnostics in builder refreshed for:: "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -2159,6 +2278,10 @@ Semantic diagnostics in builder refreshed for:: "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -2602,6 +2725,21 @@ Semantic diagnostics in builder refreshed for:: "index": 8 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -2619,6 +2757,18 @@ Semantic diagnostics in builder refreshed for:: "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2706,12 +2856,19 @@ Semantic diagnostics in builder refreshed for:: "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11040 + "size": 11578 } @@ -2750,7 +2907,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -2771,6 +2928,12 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2811,6 +2974,7 @@ Program files:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /lib/lib.d.ts @@ -2825,10 +2989,11 @@ Semantic diagnostics in builder refreshed for:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2846,6 +3011,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -2855,6 +3021,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -2968,6 +3135,10 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -3002,6 +3173,7 @@ Semantic diagnostics in builder refreshed for:: "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -3055,6 +3227,10 @@ Semantic diagnostics in builder refreshed for:: "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -3526,6 +3702,21 @@ Semantic diagnostics in builder refreshed for:: "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -3541,6 +3732,18 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -3602,12 +3805,19 @@ Semantic diagnostics in builder refreshed for:: "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11260 + "size": 11798 } @@ -3622,7 +3832,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]]},"version":"FakeTSVersion"} @@ -3676,7 +3886,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -3700,6 +3910,12 @@ Resolution for module 'externalThing' was found in cache from location '/src/pro ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3740,17 +3956,18 @@ Program files:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents -Change:: Modify global main file +Change:: Modify globalMain file Input:: //// [/src/project/src/globalMain.ts] /// @@ -3803,13 +4020,14 @@ Program files:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /src/project/src/globalMain.ts //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3827,6 +4045,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -3836,6 +4055,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -3949,6 +4169,10 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -3983,6 +4207,7 @@ Semantic diagnostics in builder refreshed for:: "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -4036,6 +4261,10 @@ Semantic diagnostics in builder refreshed for:: "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -4507,6 +4736,21 @@ Semantic diagnostics in builder refreshed for:: "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -4522,6 +4766,18 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -4583,12 +4839,19 @@ Semantic diagnostics in builder refreshed for:: "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11296 + "size": 11834 } @@ -4632,7 +4895,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -4684,13 +4947,14 @@ Program files:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /src/project/src/main.ts //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4708,6 +4972,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -4717,6 +4982,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -4830,6 +5096,10 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts": { "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -4864,6 +5134,7 @@ Semantic diagnostics in builder refreshed for:: "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -4917,6 +5188,10 @@ Semantic diagnostics in builder refreshed for:: "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -5388,6 +5663,21 @@ Semantic diagnostics in builder refreshed for:: "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -5403,6 +5693,18 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -5464,12 +5766,19 @@ Semantic diagnostics in builder refreshed for:: "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11320 + "size": 11858 } @@ -5515,7 +5824,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -5540,6 +5849,12 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -5581,6 +5896,7 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /src/project/src/newFile.ts @@ -5588,7 +5904,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -5607,6 +5923,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -5617,6 +5934,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -5739,6 +6057,10 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -5774,6 +6096,7 @@ Semantic diagnostics in builder refreshed for:: "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -5828,6 +6151,10 @@ Semantic diagnostics in builder refreshed for:: "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -6335,6 +6662,21 @@ Semantic diagnostics in builder refreshed for:: "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -6351,6 +6693,18 @@ Semantic diagnostics in builder refreshed for:: "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -6418,12 +6772,19 @@ Semantic diagnostics in builder refreshed for:: "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11891 + "size": 12429 } @@ -6458,7 +6819,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -6480,6 +6841,12 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 4 import { externalThing2 } from "externalThingNotPresent"; @@ -6512,6 +6879,7 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /src/project/src/fileNotFound.ts @@ -6520,7 +6888,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -6540,6 +6908,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/externalThing.d.ts", @@ -6551,6 +6920,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", "./src/externalThing.tsx", "./src/externalThingNotPresent.ts", @@ -6674,6 +7044,10 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -6711,6 +7085,7 @@ Semantic diagnostics in builder refreshed for:: "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -6750,6 +7125,10 @@ Semantic diagnostics in builder refreshed for:: "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -7279,6 +7658,21 @@ Semantic diagnostics in builder refreshed for:: "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -7296,6 +7690,18 @@ Semantic diagnostics in builder refreshed for:: "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -7360,12 +7766,19 @@ Semantic diagnostics in builder refreshed for:: "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11763 + "size": 12301 } @@ -7380,7 +7793,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]]},"version":"FakeTSVersion"} @@ -7430,7 +7843,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -7458,6 +7871,12 @@ Resolution for module 'externalThing' was found in cache from location '/src/pro ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 4 import { externalThing2 } from "externalThingNotPresent"; @@ -7490,12 +7909,13 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents @@ -7533,7 +7953,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -7577,13 +7997,14 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /src/project/src/main.ts //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -7603,6 +8024,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/externalThing.d.ts", @@ -7614,6 +8036,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", "./src/externalThing.tsx", "./src/externalThingNotPresent.ts", @@ -7737,6 +8160,10 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts": { "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -7774,6 +8201,7 @@ Semantic diagnostics in builder refreshed for:: "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -7813,6 +8241,10 @@ Semantic diagnostics in builder refreshed for:: "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -8342,6 +8774,21 @@ Semantic diagnostics in builder refreshed for:: "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -8359,6 +8806,18 @@ Semantic diagnostics in builder refreshed for:: "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -8423,12 +8882,19 @@ Semantic diagnostics in builder refreshed for:: "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11787 + "size": 12325 } @@ -8458,7 +8924,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -8478,6 +8944,12 @@ Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -8519,6 +8991,7 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /src/project/src/anotherFileReusingResolution.ts @@ -8526,7 +8999,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[4,1],[3,1],[14,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[14,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[15,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":19,"originalFileName":19,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[18,17,16,19,22,21,20,24,23,13,25,5],"filesByName":[[15,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":26,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -8545,6 +9018,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -8556,6 +9030,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/externalThing.ts", "./src/externalThing.tsx", @@ -8674,6 +9149,10 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts": { "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -8709,6 +9188,7 @@ Semantic diagnostics in builder refreshed for:: "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -8763,6 +9243,10 @@ Semantic diagnostics in builder refreshed for:: "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -9268,6 +9752,21 @@ Semantic diagnostics in builder refreshed for:: "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -9287,6 +9786,18 @@ Semantic diagnostics in builder refreshed for:: "filesByName": { "./src/filenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -9351,20 +9862,27 @@ Semantic diagnostics in builder refreshed for:: "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11887 + "size": 12425 } -Change:: Create external module file that could not be resolved +Change:: Write file that could not be resolved Input:: -//// [/src/project/src/externalThingNotPresent.ts] -export function externalThing2() { return 20; } +//// [/src/project/src/fileNotFound.ts] +export function something2() { return 20; } @@ -9375,8 +9893,31 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFile Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/externalThingNotPresent.ts' exist - use it as a name resolution result. -======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. @@ -9384,29 +9925,35 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. -======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== -src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +5 import { externalThing2 } from "externalThingNotPresent";something();something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts /src/project/src/externalThing.d.ts -/src/project/src/externalThingNotPresent.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -9417,15 +9964,16 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: -/src/project/src/externalThingNotPresent.ts +/src/project/src/fileNotFound.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/main.ts //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16426931566-export declare function externalThing2(): number;\r\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,4,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[3,1],[4,1],[15,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,17,18,16,20,23,22,21,25,24,14,26,6],"filesByName":[[15,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -9433,8 +9981,8 @@ Semantic diagnostics in builder refreshed for:: "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -9445,10 +9993,10 @@ Semantic diagnostics in builder refreshed for:: "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", - "./src/filenotfound.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -9457,15 +10005,47 @@ Semantic diagnostics in builder refreshed for:: "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/fileNotFound.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", - "./src/externalThing.tsx" + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -9481,8 +10061,8 @@ Semantic diagnostics in builder refreshed for:: ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] ], @@ -9496,14 +10076,14 @@ Semantic diagnostics in builder refreshed for:: "version": "11598859296-export function something() { return 10; }", "signature": "-15062742831-export declare function something(): number;\r\n" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-13705775197-export declare function something2(): number;\r\n" + }, "./src/externalthing.d.ts": { "version": "5686005290-export function externalThing1(): number;", "signature": "5686005290-export function externalThing1(): number;" }, - "./src/externalthingnotpresent.ts": { - "version": "5318862050-export function externalThing2() { return 20; }", - "signature": "-16426931566-export declare function externalThing2(): number;\r\n" - }, "./src/anotherfilereusingresolution.ts": { "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" @@ -9549,6 +10129,10 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts": { "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -9561,8 +10145,8 @@ Semantic diagnostics in builder refreshed for:: "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -9578,29 +10162,30 @@ Semantic diagnostics in builder refreshed for:: ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ { "file": "./src/anotherfilereusingresolution.ts", - "start": 70, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 } ] ], "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", + "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -9613,9 +10198,9 @@ Semantic diagnostics in builder refreshed for:: [ { "file": "./src/main.ts", - "start": 159, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 } @@ -9626,15 +10211,15 @@ Semantic diagnostics in builder refreshed for:: ], "affectedFilesPendingEmit": [ [ - "./src/anotherfilereusingresolution.ts", + "./node_modules/@types/sometype/index.d.ts", "Full" ], [ - "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", "Full" ], [ - "./src/externalthingnotpresent.ts", + "./src/externalthing.d.ts", "Full" ], [ @@ -9728,50 +10313,50 @@ Semantic diagnostics in builder refreshed for:: ] }, { - "fileName": "./src/externalThing.d.ts", - "originalFileName": "./src/externalThing.d.ts", - "path": "./src/externalthing.d.ts", - "resolvedPath": "./src/externalthing.d.ts", - "version": "5686005290-export function externalThing1(): number;", + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", "flags": 0, "includeReasons": [ { "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", - "index": 2 + "index": 1 }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", "file": "./src/main.ts", - "index": 4 + "index": 3 } ] }, { - "fileName": "./src/externalThingNotPresent.ts", - "originalFileName": "./src/externalThingNotPresent.ts", - "path": "./src/externalthingnotpresent.ts", - "resolvedPath": "./src/externalthingnotpresent.ts", - "version": "5318862050-export function externalThing2() { return 20; }", + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", "flags": 0, "includeReasons": [ { "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", - "index": 3 + "index": 2 }, { "kind": "RootFile", - "index": 2 + "index": 1 }, { "kind": "Import", "file": "./src/main.ts", - "index": 5 + "index": 4 } ] }, @@ -9835,10 +10420,40 @@ Semantic diagnostics in builder refreshed for:: [ "externalThingNotPresent", { - "resolvedModule": { - "resolvedFileName": "./src/externalThingNotPresent.ts", - "extension": ".ts" - } + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] ], @@ -10085,10 +10700,40 @@ Semantic diagnostics in builder refreshed for:: [ "externalThingNotPresent", { - "resolvedModule": { - "resolvedFileName": "./src/externalThingNotPresent.ts", - "extension": ".ts" - } + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] ], @@ -10098,12 +10743,27 @@ Semantic diagnostics in builder refreshed for:: "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -10115,9 +10775,18 @@ Semantic diagnostics in builder refreshed for:: "./src/newFile.ts", "./src/types.ts" ], - "filesByName": { - "./src/filenotfound.ts": 0 - }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -10142,30 +10811,67 @@ Semantic diagnostics in builder refreshed for:: ] }, { - "resolvedModule": { - "resolvedFileName": "./src/externalThingNotPresent.ts", - "extension": ".ts" - } + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10417 + "size": 12325 } -Change:: Write .ts file that takes preference over resolved .d.ts file +Change:: Create external module file that could not be resolved Input:: -//// [/src/project/src/externalThing.ts] -export function externalThing1() { return 10; } +//// [/src/project/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } @@ -10174,29 +10880,35 @@ Output:: Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. -Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. -Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. -error TS5055: Cannot write file '/src/project/src/externalThing.d.ts' because it would overwrite input file. - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts /src/project/src/externalThing.d.ts /src/project/src/externalThingNotPresent.ts /src/project/src/anotherFileReusingResolution.ts -/src/project/src/externalThing.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts /src/project/src/globalFilePresent.ts @@ -10206,8 +10918,1837 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: -/src/project/src/externalThing.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/main.ts + + +//// [/src/project/src/anotherFileReusingResolution.d.ts] +export {}; + + +//// [/src/project/src/anotherFileReusingResolution.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/src/project/src/externalThingNotPresent.d.ts] +export declare function externalThing2(): number; + + +//// [/src/project/src/externalThingNotPresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); + + +//// [/src/project/src/fileNotFound.d.ts] +export declare function something2(): number; + + +//// [/src/project/src/fileNotFound.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); + + +//// [/src/project/src/filePresent.d.ts] +export declare function something(): number; + + +//// [/src/project/src/filePresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); + + +//// [/src/project/src/fileWithRef.d.ts] +/// + + +//// [/src/project/src/fileWithRef.js] +/// + + +//// [/src/project/src/globalAnotherFileWithSameReferenes.d.ts] +/// +/// +declare function globalAnotherFileWithSameReferenes(): void; + + +//// [/src/project/src/globalAnotherFileWithSameReferenes.js] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/src/project/src/globalFileNotFound.d.ts] +declare function globalSomething2(): number; + + +//// [/src/project/src/globalFileNotFound.js] +function globalSomething2() { return 20; } + + +//// [/src/project/src/globalFilePresent.d.ts] +declare function globalSomething(): number; + + +//// [/src/project/src/globalFilePresent.js] +function globalSomething() { return 10; } + + +//// [/src/project/src/globalMain.d.ts] +/// +/// +/// +declare function globalMain(): void; + + +//// [/src/project/src/globalMain.js] +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); + + +//// [/src/project/src/globalNewFile.d.ts] +declare function globalFoo(): number; + + +//// [/src/project/src/globalNewFile.js] +function globalFoo() { return 20; } + + +//// [/src/project/src/main.d.ts] +export {}; + + +//// [/src/project/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + + +//// [/src/project/src/newFile.d.ts] +export declare function foo(): number; + + +//// [/src/project/src/newFile.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); + + +//// [/src/project/src/types.d.ts] +interface SomeType { +} + + +//// [/src/project/src/types.js] + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16426931566-export declare function externalThing2(): number;\r\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-15062742831-export declare function something(): number;\r\n" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-13705775197-export declare function something2(): number;\r\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16426931566-export declare function externalThing2(): number;\r\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-4882119183-export {};\r\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-3405156953-export declare function foo(): number;\r\n" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/main.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10720 +} + + + +Change:: Write .ts file that takes preference over resolved .d.ts file +Input:: +//// [/src/project/src/externalThing.ts] +export function externalThing1() { return 10; } + + + +Output:: +/lib/tsc --b src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== +error TS5055: Cannot write file '/src/project/src/externalThing.d.ts' because it would overwrite input file. + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.d.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/externalThing.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/externalThing.ts + + + + +Change:: Delete tsbuildinfo file and do clean build +Input:: +//// [/src/project/tsconfig.tsbuildinfo] unlink + + +Output:: +/lib/tsc --b src/project +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThing.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThing' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThing' was found in cache from location '/src/project/src'. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts + + +//// [/src/project/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/src/project/src/anotherFileReusingResolution.js] file written with same contents +//// [/src/project/src/externalThing.d.ts] +export declare function externalThing1(): number; + + +//// [/src/project/src/externalThing.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); + + +//// [/src/project/src/externalThingNotPresent.d.ts] file written with same contents +//// [/src/project/src/externalThingNotPresent.js] file written with same contents +//// [/src/project/src/fileNotFound.d.ts] file written with same contents +//// [/src/project/src/fileNotFound.js] file written with same contents +//// [/src/project/src/filePresent.d.ts] file written with same contents +//// [/src/project/src/filePresent.js] file written with same contents +//// [/src/project/src/fileWithRef.d.ts] file written with same contents +//// [/src/project/src/fileWithRef.js] file written with same contents +//// [/src/project/src/globalAnotherFileWithSameReferenes.d.ts] file written with same contents +//// [/src/project/src/globalAnotherFileWithSameReferenes.js] file written with same contents +//// [/src/project/src/globalFileNotFound.d.ts] file written with same contents +//// [/src/project/src/globalFileNotFound.js] file written with same contents +//// [/src/project/src/globalFilePresent.d.ts] file written with same contents +//// [/src/project/src/globalFilePresent.js] file written with same contents +//// [/src/project/src/globalMain.d.ts] file written with same contents +//// [/src/project/src/globalMain.js] file written with same contents +//// [/src/project/src/globalNewFile.d.ts] file written with same contents +//// [/src/project/src/globalNewFile.js] file written with same contents +//// [/src/project/src/main.d.ts] file written with same contents +//// [/src/project/src/main.js] file written with same contents +//// [/src/project/src/newFile.d.ts] file written with same contents +//// [/src/project/src/newFile.js] file written with same contents +//// [/src/project/src/types.d.ts] file written with same contents +//// [/src/project/src/types.js] file written with same contents +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-497034637-export function something2() { return 20; }","5618215488-export function externalThing1() { return 10; }","5318862050-export function externalThing2() { return 20; }","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","affectsGlobalScope":true},"4428918903-export function foo() { return 20; }","2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }", + "signature": "5618215488-export function externalThing1() { return 10; }" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "signature": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/main.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 9444 +} + + + +Change:: Install another type and program is not created because its not listed file in tsconfig +Input:: +//// [/src/project/node_modules/@types/someType2/index.d.ts] +export function someType2(): number; + + + +Output:: +/lib/tsc --b src/project +exitCode:: ExitStatus.Success + + + + +Change:: Delete existing type and program is not created because its not listed file in tsconfig +Input:: +//// [/src/project/node_modules/@types/someType] unlink + + +Output:: +/lib/tsc --b src/project +exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index 1737567a52451..def20e6987c7b 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -39,6 +39,9 @@ function globalSomething() { return 10; } //// [/user/username/projects/myproject/src/externalThing.d.ts] export function externalThing1(): number; +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] +export function someType(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -56,12 +59,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:44 AM] Starting compilation in watch mode... +[12:00:52 AM] Starting compilation in watch mode... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -102,7 +105,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -132,6 +135,12 @@ Resolution for module 'externalThing' was found in cache from location '/user/us ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -162,7 +171,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:00:50 AM] Found 6 errors. Watching for file changes. +[12:00:58 AM] Found 6 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json @@ -192,6 +201,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -226,7 +236,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -242,6 +252,7 @@ exitCode:: ExitStatus.undefined "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -250,6 +261,7 @@ exitCode:: ExitStatus.undefined "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -354,6 +366,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -802,6 +817,21 @@ exitCode:: ExitStatus.undefined "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -818,6 +848,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -921,12 +963,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 9635 + "size": 10193 } @@ -943,7 +992,7 @@ globalSomething(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:53 AM] File change detected. Starting incremental compilation... +[12:01:01 AM] File change detected. Starting incremental compilation... src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -975,7 +1024,7 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:00 AM] Found 6 errors. Watching for file changes. +[12:01:08 AM] Found 6 errors. Watching for file changes. @@ -993,6 +1042,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -1027,7 +1077,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1043,6 +1093,7 @@ exitCode:: ExitStatus.undefined "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -1051,6 +1102,7 @@ exitCode:: ExitStatus.undefined "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1155,6 +1207,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -1603,6 +1658,21 @@ exitCode:: ExitStatus.undefined "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -1619,6 +1689,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1722,12 +1804,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 9669 + "size": 10227 } @@ -1752,7 +1841,7 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:07 AM] File change detected. Starting incremental compilation... +[12:01:15 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -1786,7 +1875,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -1813,6 +1902,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1843,7 +1938,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:14 AM] Found 6 errors. Watching for file changes. +[12:01:22 AM] Found 6 errors. Watching for file changes. @@ -1862,6 +1957,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -1898,7 +1994,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1915,6 +2011,7 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -1924,6 +2021,7 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -2037,6 +2135,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -2506,6 +2607,21 @@ exitCode:: ExitStatus.undefined "index": 8 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -2523,6 +2639,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2626,12 +2754,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10182 + "size": 10740 } @@ -2645,7 +2780,7 @@ function globalSomething2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:17 AM] File change detected. Starting incremental compilation... +[12:01:25 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -2679,7 +2814,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -2706,6 +2841,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2726,7 +2867,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:24 AM] Found 4 errors. Watching for file changes. +[12:01:32 AM] Found 4 errors. Watching for file changes. @@ -2746,6 +2887,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -2784,7 +2926,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2802,6 +2944,7 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -2811,6 +2954,7 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -2928,6 +3072,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -3421,6 +3568,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -3436,6 +3598,18 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -3513,12 +3687,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10184 + "size": 10742 } @@ -3536,7 +3717,7 @@ import { externalThing2 } from "externalThingNotPresent";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:27 AM] File change detected. Starting incremental compilation... +[12:01:35 AM] File change detected. Starting incremental compilation... Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -3570,7 +3751,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -3608,7 +3789,7 @@ File '/externalThingNotPresent.jsx' does not exist. 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:34 AM] Found 4 errors. Watching for file changes. +[12:01:42 AM] Found 4 errors. Watching for file changes. @@ -3628,6 +3809,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -3666,7 +3848,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -3684,6 +3866,7 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -3693,6 +3876,7 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -3810,6 +3994,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -4303,6 +4490,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -4318,6 +4520,18 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -4395,12 +4609,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10208 + "size": 10766 } @@ -4423,7 +4644,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:39 AM] File change detected. Starting incremental compilation... +[12:01:47 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -4457,7 +4678,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -4488,6 +4709,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -4508,7 +4735,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:46 AM] Found 4 errors. Watching for file changes. +[12:01:54 AM] Found 4 errors. Watching for file changes. @@ -4529,6 +4756,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -4569,7 +4797,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4588,6 +4816,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -4598,6 +4827,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -4723,6 +4953,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -5249,6 +5482,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -5265,6 +5513,18 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -5348,12 +5608,19 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10718 + "size": 11276 } @@ -5367,7 +5634,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:49 AM] File change detected. Starting incremental compilation... +[12:01:57 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -5397,7 +5664,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -5425,6 +5692,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 4 import { externalThing2 } from "externalThingNotPresent"; @@ -5435,7 +5708,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:56 AM] Found 2 errors. Watching for file changes. +[12:02:04 AM] Found 2 errors. Watching for file changes. @@ -5457,6 +5730,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -5499,7 +5773,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -5519,6 +5793,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/externalThing.d.ts", @@ -5530,6 +5805,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", "./src/externalThing.tsx", "./src/externalThingNotPresent.ts", @@ -5655,6 +5931,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -6201,6 +6480,21 @@ exitCode:: ExitStatus.undefined "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -6218,6 +6512,18 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -6298,12 +6604,19 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11002 + "size": 11560 } @@ -6317,7 +6630,7 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound. Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:58 AM] File change detected. Starting incremental compilation... +[12:02:06 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -6344,7 +6657,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -6370,6 +6683,12 @@ Reusing resolution of module 'externalThing' from '/user/username/projects/mypro ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -6390,7 +6709,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:05 AM] Found 4 errors. Watching for file changes. +[12:02:13 AM] Found 4 errors. Watching for file changes. @@ -6411,6 +6730,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -6451,7 +6771,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"filesByName":[[24,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[26,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -6470,6 +6790,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -6480,6 +6801,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/filenotfound.ts", "./src/fileNotFound.ts", "./src/externalThing.ts", @@ -6602,6 +6924,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -7122,6 +7447,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -7141,6 +7481,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/filenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -7221,35 +7573,77 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10683 + "size": 11241 } -Change:: Create external module file that could not be resolved +Change:: Write file that could not be resolved Input:: -//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] -export function externalThing2() { return 20; } +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:02:08 AM] File change detected. Starting incremental compilation... +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:16 AM] File change detected. Starting incremental compilation... -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. -======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -7257,29 +7651,35 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:15 AM] Found 2 errors. Watching for file changes. +[12:02:23 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts -/user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -7290,6 +7690,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -7320,8 +7721,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} -/user/username/projects/myproject/src/externalthingnotpresent.ts: - {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} FsWatches:: @@ -7332,7 +7733,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"filesByName":[[26,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -7340,8 +7741,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -7352,9 +7753,10 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -7363,16 +7765,63 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/filenotfound.ts", - "./src/fileNotFound.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", - "./src/externalThing.tsx" + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -7388,8 +7837,8 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] ], @@ -7401,12 +7850,12 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, "./src/externalthing.d.ts": { "version": "5686005290-export function externalThing1(): number;" }, - "./src/externalthingnotpresent.ts": { - "version": "5318862050-export function externalThing2() { return 20; }" - }, "./src/anotherfilereusingresolution.ts": { "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, @@ -7442,6 +7891,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -7457,9 +7909,954 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" - ], + "./src/filenotfound.ts", + "./src/externalthing.d.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11560 +} + + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:26 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +[12:02:39 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1807, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 653, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], "./src/filewithref.ts": [ "./src/types.ts" ], @@ -7474,6 +8871,7 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" @@ -7511,7 +8909,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 3 + "index": 4 }, { "kind": "Import", @@ -7525,6 +8923,30 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/externalThing.d.ts", "originalFileName": "./src/externalThing.d.ts", @@ -7662,7 +9084,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 12 + "index": 13 } ] }, @@ -7679,7 +9101,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -7698,7 +9120,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 }, { "kind": "ReferenceFile", @@ -7722,7 +9144,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -7745,7 +9167,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -7764,7 +9186,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -7783,7 +9205,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -7802,7 +9224,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -7893,15 +9315,31 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 10 + "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -7913,9 +9351,18 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], - "filesByName": { - "./src/filenotfound.ts": 0 - }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -7950,13 +9397,182 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 8792 + "size": 10183 +} + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1807) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-653) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; } +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== Change:: Write .ts file that takes preference over resolved .d.ts file @@ -7969,7 +9585,7 @@ export function externalThing1() { return 10; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:02:18 AM] File change detected. Starting incremental compilation... +[12:02:42 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json @@ -7983,26 +9599,23 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -[12:02:25 AM] Found 2 errors. Watching for file changes. +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +[12:02:58 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts @@ -8016,6 +9629,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -8044,6 +9658,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/externalthingnotpresent.ts: {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} /user/username/projects/myproject/src/externalthing.ts: @@ -8058,14 +9674,52 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":3,"file":15,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,20,18,16,21,24,23,22,26,25,15,27,7],"filesByName":[[28,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[20,30]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2069,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":738,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 2069, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 738, + "kind": "text" + } + ] + } + }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", @@ -8079,7 +9733,9 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", @@ -8091,13 +9747,13 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/filenotfound.ts", - "./src/fileNotFound.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.tsx" ], "fileNamesList": [ [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], @@ -8115,6 +9771,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" @@ -8128,6 +9785,9 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, "./src/externalthing.d.ts": { "version": "5686005290-export function externalThing1(): number;" }, @@ -8172,6 +9832,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -8187,6 +9850,7 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], @@ -8204,6 +9868,7 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" @@ -8241,7 +9906,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 3 + "index": 4 }, { "kind": "Import", @@ -8255,6 +9920,30 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/externalThing.d.ts", "originalFileName": "./src/externalThing.d.ts", @@ -8402,7 +10091,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 12 + "index": 13 } ] }, @@ -8419,7 +10108,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -8438,7 +10127,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 }, { "kind": "ReferenceFile", @@ -8462,7 +10151,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -8485,7 +10174,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -8504,7 +10193,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -8523,7 +10212,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -8542,7 +10231,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -8633,15 +10322,31 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 10 + "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/externalThing.ts", "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -8653,9 +10358,18 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], - "filesByName": { - "./src/filenotfound.ts": 0 - }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -8690,11 +10404,357 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 9076 + "size": 10492 +} + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-2069) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-738) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Delete .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:03:00 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:03:01 AM] Found 0 errors. Watching for file changes. + + + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Install another type and program is not created because its not listed file in tsconfig + +Input:: +//// [/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts] +export function someType2(): number; + + +Output:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Delete existing type and program is not created because its not listed file in tsconfig + +Input:: +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] deleted + +Output:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js index 8fbfc6b52d381..502f3c53ee9e8 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -39,6 +39,9 @@ function globalSomething() { return 10; } //// [/user/username/projects/myproject/src/externalThing.d.ts] export function externalThing1(): number; +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] +export function someType(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -56,12 +59,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]]},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:44 AM] Starting compilation in watch mode... +[12:00:52 AM] Starting compilation in watch mode... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -102,7 +105,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -132,6 +135,12 @@ Resolution for module 'externalThing' was found in cache from location '/user/us ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -162,7 +171,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:00:50 AM] Found 6 errors. Watching for file changes. +[12:00:58 AM] Found 6 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json @@ -192,6 +201,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: @@ -226,7 +236,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -242,6 +252,7 @@ exitCode:: ExitStatus.undefined "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -250,6 +261,7 @@ exitCode:: ExitStatus.undefined "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -364,6 +376,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -419,6 +435,7 @@ exitCode:: ExitStatus.undefined }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -470,6 +487,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -921,6 +942,21 @@ exitCode:: ExitStatus.undefined "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -937,6 +973,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1040,12 +1088,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10525 + "size": 11063 } @@ -1062,7 +1117,7 @@ globalSomething(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:53 AM] File change detected. Starting incremental compilation... +[12:01:01 AM] File change detected. Starting incremental compilation... src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -1094,7 +1149,7 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:00 AM] Found 6 errors. Watching for file changes. +[12:01:08 AM] Found 6 errors. Watching for file changes. @@ -1112,6 +1167,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts @@ -1124,6 +1180,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -1156,7 +1213,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1172,6 +1229,7 @@ exitCode:: ExitStatus.undefined "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -1180,6 +1238,7 @@ exitCode:: ExitStatus.undefined "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1294,6 +1353,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -1329,6 +1392,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -1380,6 +1444,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -1831,6 +1899,21 @@ exitCode:: ExitStatus.undefined "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -1847,6 +1930,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1950,12 +2045,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11178 + "size": 11716 } @@ -1980,7 +2082,7 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:07 AM] File change detected. Starting incremental compilation... +[12:01:15 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -2014,7 +2116,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -2041,6 +2143,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2071,7 +2179,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:14 AM] Found 6 errors. Watching for file changes. +[12:01:22 AM] Found 6 errors. Watching for file changes. @@ -2090,6 +2198,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts @@ -2103,6 +2212,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -2137,7 +2247,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[10,1],[9,1],[11,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[12,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[10,1],[9,1],[11,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2154,6 +2264,7 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -2163,6 +2274,7 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -2287,6 +2399,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -2323,6 +2439,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -2375,6 +2492,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -2850,6 +2971,21 @@ exitCode:: ExitStatus.undefined "index": 8 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -2867,6 +3003,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2970,12 +3118,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11793 + "size": 12331 } @@ -2989,7 +3144,7 @@ function globalSomething2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:17 AM] File change detected. Starting incremental compilation... +[12:01:25 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -3023,7 +3178,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -3050,6 +3205,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3070,7 +3231,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:24 AM] Found 4 errors. Watching for file changes. +[12:01:32 AM] Found 4 errors. Watching for file changes. @@ -3090,6 +3251,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts @@ -3104,6 +3266,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -3140,7 +3303,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3158,6 +3321,7 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -3167,6 +3331,7 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -3296,6 +3461,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -3332,6 +3501,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -3385,6 +3555,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -3888,6 +4062,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -3903,6 +4092,18 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -3980,12 +4181,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11966 + "size": 12504 } @@ -4003,7 +4211,7 @@ import { externalThing2 } from "externalThingNotPresent";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:27 AM] File change detected. Starting incremental compilation... +[12:01:35 AM] File change detected. Starting incremental compilation... Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -4037,7 +4245,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -4075,7 +4283,7 @@ File '/externalThingNotPresent.jsx' does not exist. 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:34 AM] Found 4 errors. Watching for file changes. +[12:01:42 AM] Found 4 errors. Watching for file changes. @@ -4095,6 +4303,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/main.ts @@ -4134,7 +4343,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4152,6 +4361,7 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -4161,6 +4371,7 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -4290,6 +4501,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -4326,6 +4541,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -4379,6 +4595,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -4882,6 +5102,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -4897,6 +5132,18 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -4974,12 +5221,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11990 + "size": 12528 } @@ -5002,7 +5256,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:39 AM] File change detected. Starting incremental compilation... +[12:01:47 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -5036,7 +5290,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -5067,6 +5321,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -5087,7 +5347,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:46 AM] Found 4 errors. Watching for file changes. +[12:01:54 AM] Found 4 errors. Watching for file changes. @@ -5108,6 +5368,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/newFile.ts @@ -5150,7 +5411,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -5169,6 +5430,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -5179,6 +5441,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -5317,6 +5580,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -5354,6 +5621,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -5408,6 +5676,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -5947,6 +6219,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -5963,6 +6250,18 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -6046,12 +6345,19 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 12559 + "size": 13097 } @@ -6065,7 +6371,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:49 AM] File change detected. Starting incremental compilation... +[12:01:57 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -6095,7 +6401,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -6123,6 +6429,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 4 import { externalThing2 } from "externalThingNotPresent"; @@ -6133,7 +6445,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:56 AM] Found 2 errors. Watching for file changes. +[12:02:04 AM] Found 2 errors. Watching for file changes. @@ -6155,6 +6467,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts @@ -6200,7 +6513,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -6220,6 +6533,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/externalThing.d.ts", @@ -6231,6 +6545,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", "./src/externalThing.tsx", "./src/externalThingNotPresent.ts", @@ -6370,6 +6685,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -6409,6 +6728,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -6448,6 +6768,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -7009,6 +7333,21 @@ exitCode:: ExitStatus.undefined "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -7026,6 +7365,18 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -7106,12 +7457,19 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 12429 + "size": 12967 } @@ -7125,7 +7483,7 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound. Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:58 AM] File change detected. Starting incremental compilation... +[12:02:06 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -7152,7 +7510,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -7178,6 +7536,12 @@ Reusing resolution of module 'externalThing' from '/user/username/projects/mypro ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -7198,7 +7562,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:05 AM] Found 4 errors. Watching for file changes. +[12:02:13 AM] Found 4 errors. Watching for file changes. @@ -7219,6 +7583,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts @@ -7261,7 +7626,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[4,1],[3,1],[14,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[14,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[15,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":19,"originalFileName":19,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[18,17,16,19,22,21,20,24,23,13,25,5],"filesByName":[[15,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":26,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -7280,6 +7645,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -7291,6 +7657,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/externalThing.ts", "./src/externalThing.tsx", @@ -7425,6 +7792,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -7462,6 +7833,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -7516,6 +7888,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -8053,6 +8429,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -8072,6 +8463,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/filenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -8152,35 +8555,77 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 12531 + "size": 13069 } -Change:: Create external module file that could not be resolved +Change:: Write file that could not be resolved Input:: -//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] -export function externalThing2() { return 20; } +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:02:08 AM] File change detected. Starting incremental compilation... +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:16 AM] File change detected. Starting incremental compilation... -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. -======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -8188,29 +8633,35 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:15 AM] Found 2 errors. Watching for file changes. +[12:02:23 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts -/user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -8221,9 +8672,10 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts @@ -8254,8 +8706,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} -/user/username/projects/myproject/src/externalthingnotpresent.ts: - {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} FsWatches:: @@ -8266,7 +8718,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,4,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[3,1],[4,1],[15,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,17,18,16,20,23,22,21,25,24,14,26,6],"filesByName":[[15,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -8274,8 +8726,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -8286,10 +8738,10 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", - "./src/filenotfound.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -8298,32 +8750,80 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/fileNotFound.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", - "./src/externalThing.tsx" - ], - "fileNamesList": [ - [ - "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" - ], - [ - "./src/types.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - [ + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ "./src/globalfilepresent.ts", "./src/globalfilenotfound.ts", "./src/globalnewfile.ts" ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] ], @@ -8337,14 +8837,14 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, "./src/externalthing.d.ts": { "version": "5686005290-export function externalThing1(): number;", "signature": "5686005290-export function externalThing1(): number;" }, - "./src/externalthingnotpresent.ts": { - "version": "5318862050-export function externalThing2() { return 20; }", - "signature": "-16245999227-export declare function externalThing2(): number;\n" - }, "./src/anotherfilereusingresolution.ts": { "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" @@ -8390,6 +8890,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -8404,8 +8908,8 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -8421,29 +8925,30 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ { "file": "./src/anotherfilereusingresolution.ts", - "start": 70, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 } ] ], "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", + "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -8456,9 +8961,9 @@ exitCode:: ExitStatus.undefined [ { "file": "./src/main.ts", - "start": 159, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 } @@ -8469,15 +8974,15 @@ exitCode:: ExitStatus.undefined ], "affectedFilesPendingEmit": [ [ - "./src/anotherfilereusingresolution.ts", + "./node_modules/@types/sometype/index.d.ts", "Full" ], [ - "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", "Full" ], [ - "./src/externalthingnotpresent.ts", + "./src/externalthing.d.ts", "Full" ], [ @@ -8571,50 +9076,50 @@ exitCode:: ExitStatus.undefined ] }, { - "fileName": "./src/externalThing.d.ts", - "originalFileName": "./src/externalThing.d.ts", - "path": "./src/externalthing.d.ts", - "resolvedPath": "./src/externalthing.d.ts", - "version": "5686005290-export function externalThing1(): number;", + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", "flags": 0, "includeReasons": [ { "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", - "index": 2 + "index": 1 }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", "file": "./src/main.ts", - "index": 4 + "index": 3 } ] }, { - "fileName": "./src/externalThingNotPresent.ts", - "originalFileName": "./src/externalThingNotPresent.ts", - "path": "./src/externalthingnotpresent.ts", - "resolvedPath": "./src/externalthingnotpresent.ts", - "version": "5318862050-export function externalThing2() { return 20; }", + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", "flags": 0, "includeReasons": [ { "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", - "index": 3 + "index": 2 }, { "kind": "RootFile", - "index": 2 + "index": 1 }, { "kind": "Import", "file": "./src/main.ts", - "index": 5 + "index": 4 } ] }, @@ -8678,10 +9183,56 @@ exitCode:: ExitStatus.undefined [ "externalThingNotPresent", { - "resolvedModule": { - "resolvedFileName": "./src/externalThingNotPresent.ts", - "extension": ".ts" - } + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] ], @@ -8928,10 +9479,56 @@ exitCode:: ExitStatus.undefined [ "externalThingNotPresent", { - "resolvedModule": { - "resolvedFileName": "./src/externalThingNotPresent.ts", - "extension": ".ts" - } + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] ], @@ -8941,12 +9538,27 @@ exitCode:: ExitStatus.undefined "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -8958,13 +9570,979 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], - "filesByName": { - "./src/filenotfound.ts": 0 - }, - "resolutions": [ - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12967 +} + + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:26 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/anotherFileReusingResolution.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/filePresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/filePresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileWithRef.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileWithRef.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFilePresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFilePresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalMain.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalMain.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/main.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/main.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/types.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/types.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalNewFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalNewFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThingNotPresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/externalThingNotPresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:03:25 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/main.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", "extension": ".ts" } }, @@ -8995,14 +10573,168 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10211 + "size": 10512 } +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] +export {}; + + +//// [/user/username/projects/myproject/src/filePresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); + + +//// [/user/username/projects/myproject/src/filePresent.d.ts] +export declare function something(): number; + + +//// [/user/username/projects/myproject/src/fileWithRef.js] +/// + + +//// [/user/username/projects/myproject/src/fileWithRef.d.ts] +/// + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] +/// +/// +declare function globalAnotherFileWithSameReferenes(): void; + + +//// [/user/username/projects/myproject/src/globalFilePresent.js] +function globalSomething() { return 10; } + + +//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] +declare function globalSomething(): number; + + +//// [/user/username/projects/myproject/src/globalMain.js] +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +//// [/user/username/projects/myproject/src/globalMain.d.ts] +/// +/// +/// +declare function globalMain(): void; + + +//// [/user/username/projects/myproject/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/src/main.d.ts] +export {}; + + +//// [/user/username/projects/myproject/src/types.js] + + +//// [/user/username/projects/myproject/src/types.d.ts] +interface SomeType { +} + + +//// [/user/username/projects/myproject/src/globalNewFile.js] +function globalFoo() { return 20; } + + +//// [/user/username/projects/myproject/src/globalNewFile.d.ts] +declare function globalFoo(): number; + + +//// [/user/username/projects/myproject/src/globalFileNotFound.js] +function globalSomething2() { return 20; } + + +//// [/user/username/projects/myproject/src/globalFileNotFound.d.ts] +declare function globalSomething2(): number; + + +//// [/user/username/projects/myproject/src/newFile.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); + + +//// [/user/username/projects/myproject/src/newFile.d.ts] +export declare function foo(): number; + + +//// [/user/username/projects/myproject/src/fileNotFound.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); + + +//// [/user/username/projects/myproject/src/fileNotFound.d.ts] +export declare function something2(): number; + + +//// [/user/username/projects/myproject/src/externalThingNotPresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); + + +//// [/user/username/projects/myproject/src/externalThingNotPresent.d.ts] +export declare function externalThing2(): number; + + Change:: Write .ts file that takes preference over resolved .d.ts file @@ -9014,7 +10746,7 @@ export function externalThing1() { return 10; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:02:18 AM] File change detected. Starting incremental compilation... +[12:03:28 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json @@ -9028,18 +10760,25 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== error TS5055: Cannot write file '/user/username/projects/myproject/src/externalThing.d.ts' because it would overwrite input file. -[12:02:19 AM] Found 1 error. Watching for file changes. +[12:03:29 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts @@ -9053,6 +10792,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/externalThing.ts @@ -9082,6 +10822,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/externalthingnotpresent.ts: {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} /user/username/projects/myproject/src/externalthing.ts: @@ -9095,3 +10837,160 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined + +Change:: Delete .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:03:31 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:03:32 AM] Found 0 errors. Watching for file changes. + + + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Install another type and program is not created because its not listed file in tsconfig + +Input:: +//// [/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts] +export function someType2(): number; + + +Output:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Delete existing type and program is not created because its not listed file in tsconfig + +Input:: +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] deleted + +Output:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 6938cad1d6694..92fa9c9dacab6 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -39,6 +39,9 @@ function globalSomething() { return 10; } //// [/user/username/projects/myproject/src/externalThing.d.ts] export function externalThing1(): number; +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] +export function someType(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -56,12 +59,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:41 AM] Starting compilation in watch mode... +[12:00:49 AM] Starting compilation in watch mode... src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -93,7 +96,7 @@ Output:: 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:00:42 AM] Found 6 errors. Watching for file changes. +[12:00:50 AM] Found 6 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json @@ -123,6 +126,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -170,7 +174,7 @@ globalSomething(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:45 AM] File change detected. Starting incremental compilation... +[12:00:53 AM] File change detected. Starting incremental compilation... src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -202,7 +206,7 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:00:51 AM] Found 6 errors. Watching for file changes. +[12:00:59 AM] Found 6 errors. Watching for file changes. @@ -220,6 +224,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -254,7 +259,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -270,6 +275,7 @@ exitCode:: ExitStatus.undefined "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -278,6 +284,7 @@ exitCode:: ExitStatus.undefined "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -382,6 +389,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -830,6 +840,21 @@ exitCode:: ExitStatus.undefined "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -846,6 +871,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -949,12 +986,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 9669 + "size": 10227 } @@ -979,7 +1023,7 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:58 AM] File change detected. Starting incremental compilation... +[12:01:06 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -1013,7 +1057,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -1040,6 +1084,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1070,7 +1120,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:05 AM] Found 6 errors. Watching for file changes. +[12:01:13 AM] Found 6 errors. Watching for file changes. @@ -1089,6 +1139,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -1125,7 +1176,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1142,6 +1193,7 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -1151,6 +1203,7 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1264,6 +1317,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -1733,6 +1789,21 @@ exitCode:: ExitStatus.undefined "index": 8 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -1750,6 +1821,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1853,12 +1936,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10182 + "size": 10740 } @@ -1872,7 +1962,7 @@ function globalSomething2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:08 AM] File change detected. Starting incremental compilation... +[12:01:16 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -1906,7 +1996,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -1933,6 +2023,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1953,7 +2049,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:15 AM] Found 4 errors. Watching for file changes. +[12:01:23 AM] Found 4 errors. Watching for file changes. @@ -1973,6 +2069,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -2011,7 +2108,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2029,6 +2126,7 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -2038,6 +2136,7 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -2155,6 +2254,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -2648,6 +2750,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -2663,6 +2780,18 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -2740,12 +2869,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10184 + "size": 10742 } @@ -2763,7 +2899,7 @@ import { externalThing2 } from "externalThingNotPresent";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:18 AM] File change detected. Starting incremental compilation... +[12:01:26 AM] File change detected. Starting incremental compilation... Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -2797,7 +2933,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -2835,7 +2971,7 @@ File '/externalThingNotPresent.jsx' does not exist. 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:25 AM] Found 4 errors. Watching for file changes. +[12:01:33 AM] Found 4 errors. Watching for file changes. @@ -2855,6 +2991,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -2893,7 +3030,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2911,6 +3048,7 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -2920,6 +3058,7 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -3037,6 +3176,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -3530,6 +3672,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -3545,6 +3702,18 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -3622,12 +3791,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10208 + "size": 10766 } @@ -3650,7 +3826,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:30 AM] File change detected. Starting incremental compilation... +[12:01:38 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -3684,7 +3860,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -3715,6 +3891,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3735,7 +3917,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:37 AM] Found 4 errors. Watching for file changes. +[12:01:45 AM] Found 4 errors. Watching for file changes. @@ -3756,6 +3938,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -3796,7 +3979,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -3815,6 +3998,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -3825,6 +4009,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -3950,6 +4135,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -4476,6 +4664,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -4492,6 +4695,18 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -4575,12 +4790,19 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10718 + "size": 11276 } @@ -4594,7 +4816,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:40 AM] File change detected. Starting incremental compilation... +[12:01:48 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -4624,7 +4846,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -4652,6 +4874,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 4 import { externalThing2 } from "externalThingNotPresent"; @@ -4662,7 +4890,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:47 AM] Found 2 errors. Watching for file changes. +[12:01:55 AM] Found 2 errors. Watching for file changes. @@ -4684,6 +4912,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -4726,7 +4955,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4746,6 +4975,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/externalThing.d.ts", @@ -4757,6 +4987,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", "./src/externalThing.tsx", "./src/externalThingNotPresent.ts", @@ -4882,6 +5113,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -5428,6 +5662,21 @@ exitCode:: ExitStatus.undefined "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -5445,6 +5694,18 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -5525,12 +5786,19 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11002 + "size": 11560 } @@ -5544,7 +5812,7 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound. Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:49 AM] File change detected. Starting incremental compilation... +[12:01:57 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -5571,7 +5839,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -5597,6 +5865,12 @@ Reusing resolution of module 'externalThing' from '/user/username/projects/mypro ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -5617,7 +5891,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:56 AM] Found 4 errors. Watching for file changes. +[12:02:04 AM] Found 4 errors. Watching for file changes. @@ -5638,6 +5912,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -5678,7 +5953,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"filesByName":[[24,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[26,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -5697,6 +5972,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -5707,6 +5983,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/filenotfound.ts", "./src/fileNotFound.ts", "./src/externalThing.ts", @@ -5829,6 +6106,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -6349,6 +6629,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -6368,6 +6663,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/filenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -6448,35 +6755,77 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10683 + "size": 11241 } -Change:: Create external module file that could not be resolved +Change:: Write file that could not be resolved Input:: -//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] -export function externalThing2() { return 20; } +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:59 AM] File change detected. Starting incremental compilation... +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:07 AM] File change detected. Starting incremental compilation... -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. -======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -6484,29 +6833,35 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:06 AM] Found 2 errors. Watching for file changes. +[12:02:14 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts -/user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -6517,6 +6872,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -6547,8 +6903,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} -/user/username/projects/myproject/src/externalthingnotpresent.ts: - {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} FsWatches:: @@ -6559,7 +6915,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"filesByName":[[26,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -6567,8 +6923,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -6579,9 +6935,10 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -6590,16 +6947,63 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/filenotfound.ts", - "./src/fileNotFound.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", - "./src/externalThing.tsx" + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -6615,8 +7019,8 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] ], @@ -6628,12 +7032,12 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, "./src/externalthing.d.ts": { "version": "5686005290-export function externalThing1(): number;" }, - "./src/externalthingnotpresent.ts": { - "version": "5318862050-export function externalThing2() { return 20; }" - }, "./src/anotherfilereusingresolution.ts": { "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, @@ -6669,6 +7073,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -6684,8 +7091,8 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -6701,8 +7108,8 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] }, @@ -6753,17 +7160,987 @@ exitCode:: ExitStatus.undefined ] }, { - "fileName": "./src/externalThing.d.ts", - "originalFileName": "./src/externalThing.d.ts", - "path": "./src/externalthing.d.ts", - "resolvedPath": "./src/externalthing.d.ts", - "version": "5686005290-export function externalThing1(): number;", + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", "flags": 0, "includeReasons": [ { "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", - "index": 2 + "index": 1 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11560 +} + + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:17 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +[12:02:30 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1807, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 653, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 }, { "kind": "RootFile", @@ -6889,7 +8266,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 12 + "index": 13 } ] }, @@ -6906,7 +8283,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -6925,7 +8302,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 }, { "kind": "ReferenceFile", @@ -6949,7 +8326,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -6972,7 +8349,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -6991,7 +8368,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -7010,7 +8387,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -7029,7 +8406,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -7120,15 +8497,31 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 10 + "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -7140,9 +8533,18 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], - "filesByName": { - "./src/filenotfound.ts": 0 - }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -7177,13 +8579,182 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 8792 + "size": 10183 +} + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1807) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-653) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; } +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== Change:: Write .ts file that takes preference over resolved .d.ts file @@ -7196,7 +8767,7 @@ export function externalThing1() { return 10; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:02:09 AM] File change detected. Starting incremental compilation... +[12:02:33 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json @@ -7210,26 +8781,23 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -[12:02:16 AM] Found 2 errors. Watching for file changes. +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +[12:02:49 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts @@ -7243,6 +8811,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -7271,6 +8840,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/externalthingnotpresent.ts: {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} /user/username/projects/myproject/src/externalthing.ts: @@ -7285,14 +8856,52 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":3,"file":15,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,20,18,16,21,24,23,22,26,25,15,27,7],"filesByName":[[28,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[20,30]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2069,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":738,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 2069, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 738, + "kind": "text" + } + ] + } + }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", @@ -7306,7 +8915,9 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", @@ -7318,13 +8929,13 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/filenotfound.ts", - "./src/fileNotFound.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.tsx" ], "fileNamesList": [ [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], @@ -7342,6 +8953,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" @@ -7355,6 +8967,9 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, "./src/externalthing.d.ts": { "version": "5686005290-export function externalThing1(): number;" }, @@ -7399,6 +9014,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -7414,6 +9032,7 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], @@ -7431,6 +9050,7 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" @@ -7468,7 +9088,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 3 + "index": 4 }, { "kind": "Import", @@ -7482,6 +9102,30 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/externalThing.d.ts", "originalFileName": "./src/externalThing.d.ts", @@ -7629,7 +9273,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 12 + "index": 13 } ] }, @@ -7646,7 +9290,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -7665,7 +9309,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 }, { "kind": "ReferenceFile", @@ -7689,7 +9333,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -7712,7 +9356,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -7731,7 +9375,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -7750,7 +9394,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -7769,7 +9413,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -7860,15 +9504,31 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 10 + "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/externalThing.ts", "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -7880,9 +9540,18 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], - "filesByName": { - "./src/filenotfound.ts": 0 - }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -7917,11 +9586,357 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 9076 + "size": 10492 +} + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-2069) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-738) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Delete .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:51 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:02:52 AM] Found 0 errors. Watching for file changes. + + + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Install another type and program is not created because its not listed file in tsconfig + +Input:: +//// [/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts] +export function someType2(): number; + + +Output:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Delete existing type and program is not created because its not listed file in tsconfig + +Input:: +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] deleted + +Output:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index 36bd7a0964346..9635100873aa4 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -39,6 +39,9 @@ function globalSomething() { return 10; } //// [/user/username/projects/myproject/src/externalThing.d.ts] export function externalThing1(): number; +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] +export function someType(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -56,12 +59,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:41 AM] Starting compilation in watch mode... +[12:00:49 AM] Starting compilation in watch mode... src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -93,7 +96,7 @@ Output:: 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:00:42 AM] Found 6 errors. Watching for file changes. +[12:00:50 AM] Found 6 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json @@ -123,6 +126,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: @@ -170,7 +174,7 @@ globalSomething(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:45 AM] File change detected. Starting incremental compilation... +[12:00:53 AM] File change detected. Starting incremental compilation... src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -202,7 +206,7 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:00:51 AM] Found 6 errors. Watching for file changes. +[12:00:59 AM] Found 6 errors. Watching for file changes. @@ -220,6 +224,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts @@ -232,6 +237,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -264,7 +270,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -280,6 +286,7 @@ exitCode:: ExitStatus.undefined "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -288,6 +295,7 @@ exitCode:: ExitStatus.undefined "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -402,6 +410,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -437,6 +449,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -488,6 +501,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -939,6 +956,21 @@ exitCode:: ExitStatus.undefined "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -955,6 +987,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1058,12 +1102,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11178 + "size": 11716 } @@ -1088,7 +1139,7 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:58 AM] File change detected. Starting incremental compilation... +[12:01:06 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -1122,7 +1173,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -1149,6 +1200,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1179,7 +1236,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:05 AM] Found 6 errors. Watching for file changes. +[12:01:13 AM] Found 6 errors. Watching for file changes. @@ -1198,6 +1255,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts @@ -1211,6 +1269,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -1245,7 +1304,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[10,1],[9,1],[11,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[12,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[10,1],[9,1],[11,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1262,6 +1321,7 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -1271,6 +1331,7 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1395,6 +1456,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -1431,6 +1496,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -1483,6 +1549,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -1958,6 +2028,21 @@ exitCode:: ExitStatus.undefined "index": 8 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -1975,6 +2060,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2078,12 +2175,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11793 + "size": 12331 } @@ -2097,7 +2201,7 @@ function globalSomething2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:08 AM] File change detected. Starting incremental compilation... +[12:01:16 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -2131,7 +2235,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -2158,6 +2262,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2178,7 +2288,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:15 AM] Found 4 errors. Watching for file changes. +[12:01:23 AM] Found 4 errors. Watching for file changes. @@ -2198,6 +2308,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts @@ -2212,6 +2323,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -2248,7 +2360,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2266,6 +2378,7 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -2275,6 +2388,7 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -2404,6 +2518,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -2440,6 +2558,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -2493,6 +2612,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -2996,6 +3119,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -3011,6 +3149,18 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -3088,12 +3238,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11966 + "size": 12504 } @@ -3111,7 +3268,7 @@ import { externalThing2 } from "externalThingNotPresent";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:18 AM] File change detected. Starting incremental compilation... +[12:01:26 AM] File change detected. Starting incremental compilation... Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -3145,7 +3302,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -3183,7 +3340,7 @@ File '/externalThingNotPresent.jsx' does not exist. 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:25 AM] Found 4 errors. Watching for file changes. +[12:01:33 AM] Found 4 errors. Watching for file changes. @@ -3203,6 +3360,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/main.ts @@ -3242,7 +3400,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3260,6 +3418,7 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -3269,6 +3428,7 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -3398,6 +3558,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -3434,6 +3598,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -3487,6 +3652,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -3990,6 +4159,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -4005,6 +4189,18 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -4082,12 +4278,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11990 + "size": 12528 } @@ -4110,7 +4313,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:30 AM] File change detected. Starting incremental compilation... +[12:01:38 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -4144,7 +4347,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -4175,6 +4378,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -4195,7 +4404,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:37 AM] Found 4 errors. Watching for file changes. +[12:01:45 AM] Found 4 errors. Watching for file changes. @@ -4216,6 +4425,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/newFile.ts @@ -4258,7 +4468,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4277,6 +4487,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -4287,6 +4498,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -4425,6 +4637,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -4462,6 +4678,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -4516,6 +4733,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -5055,6 +5276,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -5071,6 +5307,18 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -5154,12 +5402,19 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 12559 + "size": 13097 } @@ -5173,7 +5428,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:40 AM] File change detected. Starting incremental compilation... +[12:01:48 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -5203,7 +5458,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -5231,6 +5486,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 4 import { externalThing2 } from "externalThingNotPresent"; @@ -5241,7 +5502,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:47 AM] Found 2 errors. Watching for file changes. +[12:01:55 AM] Found 2 errors. Watching for file changes. @@ -5263,6 +5524,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts @@ -5308,7 +5570,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -5328,6 +5590,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/externalThing.d.ts", @@ -5339,6 +5602,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", "./src/externalThing.tsx", "./src/externalThingNotPresent.ts", @@ -5478,6 +5742,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -5517,6 +5785,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -5556,6 +5825,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -6117,6 +6390,21 @@ exitCode:: ExitStatus.undefined "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -6134,6 +6422,18 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -6214,12 +6514,19 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 12429 + "size": 12967 } @@ -6233,7 +6540,7 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound. Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:49 AM] File change detected. Starting incremental compilation... +[12:01:57 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -6260,7 +6567,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -6286,6 +6593,12 @@ Reusing resolution of module 'externalThing' from '/user/username/projects/mypro ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -6306,7 +6619,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:56 AM] Found 4 errors. Watching for file changes. +[12:02:04 AM] Found 4 errors. Watching for file changes. @@ -6327,6 +6640,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts @@ -6369,7 +6683,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[4,1],[3,1],[14,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[14,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[15,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":19,"originalFileName":19,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[18,17,16,19,22,21,20,24,23,13,25,5],"filesByName":[[15,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":26,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -6388,6 +6702,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -6399,6 +6714,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/externalThing.ts", "./src/externalThing.tsx", @@ -6533,6 +6849,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -6570,6 +6890,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -6624,6 +6945,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -7161,6 +7486,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -7180,6 +7520,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/filenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -7260,35 +7612,77 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 12531 + "size": 13069 } -Change:: Create external module file that could not be resolved +Change:: Write file that could not be resolved Input:: -//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] -export function externalThing2() { return 20; } +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:59 AM] File change detected. Starting incremental compilation... +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:07 AM] File change detected. Starting incremental compilation... -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. -======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -7296,29 +7690,35 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:06 AM] Found 2 errors. Watching for file changes. +[12:02:14 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts -/user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -7329,9 +7729,10 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts @@ -7362,8 +7763,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} -/user/username/projects/myproject/src/externalthingnotpresent.ts: - {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} FsWatches:: @@ -7374,7 +7775,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,4,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[3,1],[4,1],[15,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,17,18,16,20,23,22,21,25,24,14,26,6],"filesByName":[[15,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -7382,8 +7783,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -7394,10 +7795,10 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", - "./src/filenotfound.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -7406,53 +7807,101 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/fileNotFound.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", - "./src/externalThing.tsx" - ], - "fileNamesList": [ - [ - "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" - ], - [ - "./src/types.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalnewfile.ts" - ], - [ - "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", - "./src/newfile.ts" - ] - ], - "fileInfos": { - "../../../../a/lib/lib.d.ts": { - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true - }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }", - "signature": "-13601649692-export declare function something(): number;\n" + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" }, "./src/externalthing.d.ts": { "version": "5686005290-export function externalThing1(): number;", "signature": "5686005290-export function externalThing1(): number;" }, - "./src/externalthingnotpresent.ts": { - "version": "5318862050-export function externalThing2() { return 20; }", - "signature": "-16245999227-export declare function externalThing2(): number;\n" - }, "./src/anotherfilereusingresolution.ts": { "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" @@ -7498,6 +7947,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -7512,8 +7965,8 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -7529,29 +7982,30 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ { "file": "./src/anotherfilereusingresolution.ts", - "start": 70, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 } ] ], "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", + "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -7564,9 +8018,9 @@ exitCode:: ExitStatus.undefined [ { "file": "./src/main.ts", - "start": 159, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 } @@ -7577,15 +8031,15 @@ exitCode:: ExitStatus.undefined ], "affectedFilesPendingEmit": [ [ - "./src/anotherfilereusingresolution.ts", + "./node_modules/@types/sometype/index.d.ts", "Full" ], [ - "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", "Full" ], [ - "./src/externalthingnotpresent.ts", + "./src/externalthing.d.ts", "Full" ], [ @@ -7679,50 +8133,50 @@ exitCode:: ExitStatus.undefined ] }, { - "fileName": "./src/externalThing.d.ts", - "originalFileName": "./src/externalThing.d.ts", - "path": "./src/externalthing.d.ts", - "resolvedPath": "./src/externalthing.d.ts", - "version": "5686005290-export function externalThing1(): number;", + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", "flags": 0, "includeReasons": [ { "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", - "index": 2 + "index": 1 }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", "file": "./src/main.ts", - "index": 4 + "index": 3 } ] }, { - "fileName": "./src/externalThingNotPresent.ts", - "originalFileName": "./src/externalThingNotPresent.ts", - "path": "./src/externalthingnotpresent.ts", - "resolvedPath": "./src/externalthingnotpresent.ts", - "version": "5318862050-export function externalThing2() { return 20; }", + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", "flags": 0, "includeReasons": [ { "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", - "index": 3 + "index": 2 }, { "kind": "RootFile", - "index": 2 + "index": 1 }, { "kind": "Import", "file": "./src/main.ts", - "index": 5 + "index": 4 } ] }, @@ -7786,10 +8240,56 @@ exitCode:: ExitStatus.undefined [ "externalThingNotPresent", { - "resolvedModule": { - "resolvedFileName": "./src/externalThingNotPresent.ts", - "extension": ".ts" - } + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] ], @@ -8036,58 +8536,1085 @@ exitCode:: ExitStatus.undefined [ "externalThingNotPresent", { - "resolvedModule": { - "resolvedFileName": "./src/externalThingNotPresent.ts", - "extension": ".ts" - } - } - ] - ], - "includeReasons": [ - { - "kind": "RootFile", - "index": 10 - } - ] - } - ], - "rootFileNames": [ - "./src/anotherFileReusingResolution.ts", - "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", - "./src/filePresent.ts", - "./src/fileWithRef.ts", - "./src/globalAnotherFileWithSameReferenes.ts", - "./src/globalFileNotFound.ts", - "./src/globalFilePresent.ts", - "./src/globalMain.ts", - "./src/globalNewFile.ts", - "./src/main.ts", - "./src/newFile.ts", - "./src/types.ts" - ], - "filesByName": { - "./src/filenotfound.ts": 0 - }, - "resolutions": [ - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", - "extension": ".ts" - } - }, - { - "resolvedModule": { - "resolvedFileName": "./src/fileNotFound.ts", - "extension": ".ts" - } - }, - { - "resolvedModule": { - "resolvedFileName": "./src/externalThing.d.ts", - "extension": ".d.ts" - }, - "failedLookupLocations": [ + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12967 +} + + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:17 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/anotherFileReusingResolution.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/filePresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/filePresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileWithRef.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileWithRef.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFilePresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFilePresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalMain.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalMain.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/main.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/main.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/types.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/types.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalNewFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalNewFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThingNotPresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/externalThingNotPresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:03:16 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/main.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ "./src/externalThing.ts", "./src/externalThing.tsx" ] @@ -8103,14 +9630,168 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10211 + "size": 10512 } +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] +export {}; + + +//// [/user/username/projects/myproject/src/filePresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); + + +//// [/user/username/projects/myproject/src/filePresent.d.ts] +export declare function something(): number; + + +//// [/user/username/projects/myproject/src/fileWithRef.js] +/// + + +//// [/user/username/projects/myproject/src/fileWithRef.d.ts] +/// + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] +/// +/// +declare function globalAnotherFileWithSameReferenes(): void; + + +//// [/user/username/projects/myproject/src/globalFilePresent.js] +function globalSomething() { return 10; } + + +//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] +declare function globalSomething(): number; + + +//// [/user/username/projects/myproject/src/globalMain.js] +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +//// [/user/username/projects/myproject/src/globalMain.d.ts] +/// +/// +/// +declare function globalMain(): void; + + +//// [/user/username/projects/myproject/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/src/main.d.ts] +export {}; + + +//// [/user/username/projects/myproject/src/types.js] + + +//// [/user/username/projects/myproject/src/types.d.ts] +interface SomeType { +} + + +//// [/user/username/projects/myproject/src/globalNewFile.js] +function globalFoo() { return 20; } + + +//// [/user/username/projects/myproject/src/globalNewFile.d.ts] +declare function globalFoo(): number; + + +//// [/user/username/projects/myproject/src/globalFileNotFound.js] +function globalSomething2() { return 20; } + + +//// [/user/username/projects/myproject/src/globalFileNotFound.d.ts] +declare function globalSomething2(): number; + + +//// [/user/username/projects/myproject/src/newFile.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); + + +//// [/user/username/projects/myproject/src/newFile.d.ts] +export declare function foo(): number; + + +//// [/user/username/projects/myproject/src/fileNotFound.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); + + +//// [/user/username/projects/myproject/src/fileNotFound.d.ts] +export declare function something2(): number; + + +//// [/user/username/projects/myproject/src/externalThingNotPresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); + + +//// [/user/username/projects/myproject/src/externalThingNotPresent.d.ts] +export declare function externalThing2(): number; + + Change:: Write .ts file that takes preference over resolved .d.ts file @@ -8122,7 +9803,7 @@ export function externalThing1() { return 10; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:02:09 AM] File change detected. Starting incremental compilation... +[12:03:19 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json @@ -8136,18 +9817,25 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== error TS5055: Cannot write file '/user/username/projects/myproject/src/externalThing.d.ts' because it would overwrite input file. -[12:02:10 AM] Found 1 error. Watching for file changes. +[12:03:20 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts @@ -8161,6 +9849,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/externalThing.ts @@ -8190,6 +9879,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/externalthingnotpresent.ts: {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} /user/username/projects/myproject/src/externalthing.ts: @@ -8203,3 +9894,160 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined + +Change:: Delete .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:03:22 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:03:23 AM] Found 0 errors. Watching for file changes. + + + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Install another type and program is not created because its not listed file in tsconfig + +Input:: +//// [/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts] +export function someType2(): number; + + +Output:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Delete existing type and program is not created because its not listed file in tsconfig + +Input:: +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] deleted + +Output:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 8a2ee1a74d43d..79f40093ffa15 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -39,6 +39,9 @@ function globalSomething() { return 10; } //// [/user/username/projects/myproject/src/externalThing.d.ts] export function externalThing1(): number; +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] +export function someType(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -58,7 +61,7 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:39 AM] Starting compilation in watch mode... +[12:00:47 AM] Starting compilation in watch mode... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -99,7 +102,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -129,6 +132,12 @@ Resolution for module 'externalThing' was found in cache from location '/user/us ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -159,7 +168,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:00:44 AM] Found 6 errors. Watching for file changes. +[12:00:52 AM] Found 6 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json @@ -189,6 +198,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -223,7 +233,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -239,6 +249,7 @@ exitCode:: ExitStatus.undefined "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -247,6 +258,7 @@ exitCode:: ExitStatus.undefined "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -351,6 +363,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -799,6 +814,21 @@ exitCode:: ExitStatus.undefined "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -815,6 +845,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -918,12 +960,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 9635 + "size": 10193 } @@ -940,7 +989,7 @@ globalSomething(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:47 AM] File change detected. Starting incremental compilation... +[12:00:55 AM] File change detected. Starting incremental compilation... src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -972,7 +1021,7 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:00:54 AM] Found 6 errors. Watching for file changes. +[12:01:02 AM] Found 6 errors. Watching for file changes. @@ -990,6 +1039,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -1024,7 +1074,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1040,6 +1090,7 @@ exitCode:: ExitStatus.undefined "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -1048,6 +1099,7 @@ exitCode:: ExitStatus.undefined "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1152,6 +1204,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -1600,6 +1655,21 @@ exitCode:: ExitStatus.undefined "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -1616,6 +1686,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1719,12 +1801,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 9669 + "size": 10227 } @@ -1749,7 +1838,7 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:01 AM] File change detected. Starting incremental compilation... +[12:01:09 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -1783,7 +1872,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -1810,6 +1899,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1840,7 +1935,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:08 AM] Found 6 errors. Watching for file changes. +[12:01:16 AM] Found 6 errors. Watching for file changes. @@ -1859,6 +1954,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -1895,7 +1991,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1912,6 +2008,7 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -1921,6 +2018,7 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -2034,6 +2132,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -2503,6 +2604,21 @@ exitCode:: ExitStatus.undefined "index": 8 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -2520,6 +2636,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2623,12 +2751,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10182 + "size": 10740 } @@ -2642,7 +2777,7 @@ function globalSomething2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:11 AM] File change detected. Starting incremental compilation... +[12:01:19 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -2676,7 +2811,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -2703,6 +2838,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2723,7 +2864,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:18 AM] Found 4 errors. Watching for file changes. +[12:01:26 AM] Found 4 errors. Watching for file changes. @@ -2743,6 +2884,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -2781,7 +2923,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2799,6 +2941,7 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -2808,6 +2951,7 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -2925,6 +3069,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -3418,6 +3565,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -3433,6 +3595,18 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -3510,12 +3684,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10184 + "size": 10742 } @@ -3533,7 +3714,7 @@ import { externalThing2 } from "externalThingNotPresent";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:21 AM] File change detected. Starting incremental compilation... +[12:01:29 AM] File change detected. Starting incremental compilation... Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -3567,7 +3748,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -3605,7 +3786,7 @@ File '/externalThingNotPresent.jsx' does not exist. 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:28 AM] Found 4 errors. Watching for file changes. +[12:01:36 AM] Found 4 errors. Watching for file changes. @@ -3625,6 +3806,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -3663,7 +3845,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -3681,6 +3863,7 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -3690,6 +3873,7 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -3807,6 +3991,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -4300,6 +4487,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -4315,6 +4517,18 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -4392,12 +4606,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10208 + "size": 10766 } @@ -4420,7 +4641,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:33 AM] File change detected. Starting incremental compilation... +[12:01:41 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -4454,7 +4675,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -4485,6 +4706,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -4505,7 +4732,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:40 AM] Found 4 errors. Watching for file changes. +[12:01:48 AM] Found 4 errors. Watching for file changes. @@ -4526,6 +4753,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -4566,7 +4794,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4585,6 +4813,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -4595,6 +4824,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -4720,6 +4950,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -5246,6 +5479,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -5262,6 +5510,18 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -5345,12 +5605,19 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10718 + "size": 11276 } @@ -5364,7 +5631,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:43 AM] File change detected. Starting incremental compilation... +[12:01:51 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -5394,7 +5661,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -5422,6 +5689,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 4 import { externalThing2 } from "externalThingNotPresent"; @@ -5432,7 +5705,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:50 AM] Found 2 errors. Watching for file changes. +[12:01:58 AM] Found 2 errors. Watching for file changes. @@ -5454,6 +5727,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -5496,7 +5770,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -5516,6 +5790,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/externalThing.d.ts", @@ -5527,6 +5802,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", "./src/externalThing.tsx", "./src/externalThingNotPresent.ts", @@ -5652,6 +5928,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -6198,6 +6477,21 @@ exitCode:: ExitStatus.undefined "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -6215,6 +6509,18 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -6295,12 +6601,19 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11002 + "size": 11560 } @@ -6314,7 +6627,7 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound. Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:52 AM] File change detected. Starting incremental compilation... +[12:02:00 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -6341,7 +6654,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -6367,6 +6680,12 @@ Reusing resolution of module 'externalThing' from '/user/username/projects/mypro ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -6387,7 +6706,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:59 AM] Found 4 errors. Watching for file changes. +[12:02:07 AM] Found 4 errors. Watching for file changes. @@ -6408,6 +6727,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -6448,7 +6768,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"filesByName":[[24,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[26,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -6467,6 +6787,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -6477,6 +6798,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/filenotfound.ts", "./src/fileNotFound.ts", "./src/externalThing.ts", @@ -6599,6 +6921,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -7119,6 +7444,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -7138,6 +7478,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/filenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -7218,35 +7570,77 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10683 + "size": 11241 } -Change:: Create external module file that could not be resolved +Change:: Write file that could not be resolved Input:: -//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] -export function externalThing2() { return 20; } +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:02:02 AM] File change detected. Starting incremental compilation... +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:10 AM] File change detected. Starting incremental compilation... -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. -======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -7254,29 +7648,35 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:09 AM] Found 2 errors. Watching for file changes. +[12:02:17 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts -/user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -7287,6 +7687,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -7317,8 +7718,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} -/user/username/projects/myproject/src/externalthingnotpresent.ts: - {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} FsWatches:: @@ -7329,7 +7730,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"filesByName":[[26,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -7337,8 +7738,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -7349,9 +7750,10 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -7360,16 +7762,63 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/filenotfound.ts", - "./src/fileNotFound.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", - "./src/externalThing.tsx" + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -7385,8 +7834,8 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] ], @@ -7398,12 +7847,12 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, "./src/externalthing.d.ts": { "version": "5686005290-export function externalThing1(): number;" }, - "./src/externalthingnotpresent.ts": { - "version": "5318862050-export function externalThing2() { return 20; }" - }, "./src/anotherfilereusingresolution.ts": { "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, @@ -7439,6 +7888,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -7454,9 +7906,954 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" - ], + "./src/filenotfound.ts", + "./src/externalthing.d.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11560 +} + + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:20 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +[12:02:33 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1807, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 653, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], "./src/filewithref.ts": [ "./src/types.ts" ], @@ -7471,6 +8868,7 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" @@ -7508,7 +8906,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 3 + "index": 4 }, { "kind": "Import", @@ -7522,6 +8920,30 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/externalThing.d.ts", "originalFileName": "./src/externalThing.d.ts", @@ -7659,7 +9081,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 12 + "index": 13 } ] }, @@ -7676,7 +9098,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -7695,7 +9117,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 }, { "kind": "ReferenceFile", @@ -7719,7 +9141,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -7742,7 +9164,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -7761,7 +9183,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -7780,7 +9202,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -7799,7 +9221,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -7890,15 +9312,31 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 10 + "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -7910,9 +9348,18 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], - "filesByName": { - "./src/filenotfound.ts": 0 - }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -7947,13 +9394,182 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 8792 + "size": 10183 +} + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1807) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-653) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; } +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== Change:: Write .ts file that takes preference over resolved .d.ts file @@ -7966,7 +9582,7 @@ export function externalThing1() { return 10; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:02:12 AM] File change detected. Starting incremental compilation... +[12:02:36 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json @@ -7980,26 +9596,23 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -[12:02:19 AM] Found 2 errors. Watching for file changes. +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +[12:02:52 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts @@ -8013,6 +9626,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -8041,6 +9655,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/externalthingnotpresent.ts: {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} /user/username/projects/myproject/src/externalthing.ts: @@ -8055,14 +9671,52 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":3,"file":15,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,20,18,16,21,24,23,22,26,25,15,27,7],"filesByName":[[28,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[20,30]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2069,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":738,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 2069, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 738, + "kind": "text" + } + ] + } + }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", @@ -8076,7 +9730,9 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", @@ -8088,13 +9744,13 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/filenotfound.ts", - "./src/fileNotFound.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.tsx" ], "fileNamesList": [ [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], @@ -8112,6 +9768,7 @@ exitCode:: ExitStatus.undefined ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" @@ -8125,6 +9782,9 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, "./src/externalthing.d.ts": { "version": "5686005290-export function externalThing1(): number;" }, @@ -8169,6 +9829,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -8184,6 +9847,7 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], @@ -8201,6 +9865,7 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" @@ -8238,7 +9903,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 3 + "index": 4 }, { "kind": "Import", @@ -8252,6 +9917,30 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/externalThing.d.ts", "originalFileName": "./src/externalThing.d.ts", @@ -8399,7 +10088,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 12 + "index": 13 } ] }, @@ -8416,7 +10105,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -8435,7 +10124,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 7 + "index": 8 }, { "kind": "ReferenceFile", @@ -8459,7 +10148,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -8482,7 +10171,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -8501,7 +10190,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -8520,7 +10209,7 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -8539,7 +10228,7 @@ exitCode:: ExitStatus.undefined }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -8630,15 +10319,31 @@ exitCode:: ExitStatus.undefined "includeReasons": [ { "kind": "RootFile", - "index": 10 + "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/externalThing.ts", "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -8650,9 +10355,18 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], - "filesByName": { - "./src/filenotfound.ts": 0 - }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -8687,11 +10401,357 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 9076 + "size": 10492 +} + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-2069) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-738) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Delete .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:54 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:02:55 AM] Found 0 errors. Watching for file changes. + + + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Install another type and program is not created because its not listed file in tsconfig + +Input:: +//// [/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts] +export function someType2(): number; + + +Output:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Delete existing type and program is not created because its not listed file in tsconfig + +Input:: +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] deleted + +Output:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index 83cfdeaa64b3d..06452097408ae 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -39,6 +39,9 @@ function globalSomething() { return 10; } //// [/user/username/projects/myproject/src/externalThing.d.ts] export function externalThing1(): number; +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] +export function someType(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -58,7 +61,7 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js --b . -w --extendedDiagnostics Output:: -[12:00:39 AM] Starting compilation in watch mode... +[12:00:47 AM] Starting compilation in watch mode... ======== Resolving module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -99,7 +102,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -129,6 +132,12 @@ Resolution for module 'externalThing' was found in cache from location '/user/us ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -159,7 +168,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:00:44 AM] Found 6 errors. Watching for file changes. +[12:00:52 AM] Found 6 errors. Watching for file changes. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json @@ -189,6 +198,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts @@ -201,6 +211,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -233,7 +244,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -249,6 +260,7 @@ exitCode:: ExitStatus.undefined "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -257,6 +269,7 @@ exitCode:: ExitStatus.undefined "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -371,6 +384,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -426,6 +443,7 @@ exitCode:: ExitStatus.undefined }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -477,6 +495,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -928,6 +950,21 @@ exitCode:: ExitStatus.undefined "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -944,6 +981,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1047,12 +1096,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10525 + "size": 11063 } @@ -1069,7 +1125,7 @@ globalSomething(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:00:47 AM] File change detected. Starting incremental compilation... +[12:00:55 AM] File change detected. Starting incremental compilation... src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -1101,7 +1157,7 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:00:54 AM] Found 6 errors. Watching for file changes. +[12:01:02 AM] Found 6 errors. Watching for file changes. @@ -1119,6 +1175,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts @@ -1131,6 +1188,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -1163,7 +1221,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1179,6 +1237,7 @@ exitCode:: ExitStatus.undefined "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -1187,6 +1246,7 @@ exitCode:: ExitStatus.undefined "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1301,6 +1361,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -1336,6 +1400,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -1387,6 +1452,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -1838,6 +1907,21 @@ exitCode:: ExitStatus.undefined "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -1854,6 +1938,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1957,12 +2053,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11178 + "size": 11716 } @@ -1987,7 +2090,7 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:01 AM] File change detected. Starting incremental compilation... +[12:01:09 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalNewFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -2021,7 +2124,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -2048,6 +2151,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2078,7 +2187,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:08 AM] Found 6 errors. Watching for file changes. +[12:01:16 AM] Found 6 errors. Watching for file changes. @@ -2097,6 +2206,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts @@ -2110,6 +2220,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -2144,7 +2255,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[10,1],[9,1],[11,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[12,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[10,1],[9,1],[11,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2161,6 +2272,7 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -2170,6 +2282,7 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -2294,6 +2407,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -2330,6 +2447,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -2382,6 +2500,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -2857,6 +2979,21 @@ exitCode:: ExitStatus.undefined "index": 8 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -2874,6 +3011,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2977,12 +3126,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11793 + "size": 12331 } @@ -2996,7 +3152,7 @@ function globalSomething2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:11 AM] File change detected. Starting incremental compilation... +[12:01:19 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -3030,7 +3186,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -3057,6 +3213,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3077,7 +3239,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:18 AM] Found 4 errors. Watching for file changes. +[12:01:26 AM] Found 4 errors. Watching for file changes. @@ -3097,6 +3259,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts @@ -3111,6 +3274,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -3147,7 +3311,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3165,6 +3329,7 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -3174,6 +3339,7 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -3303,6 +3469,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -3339,6 +3509,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -3392,6 +3563,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -3895,6 +4070,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -3910,6 +4100,18 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -3987,12 +4189,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11966 + "size": 12504 } @@ -4010,7 +4219,7 @@ import { externalThing2 } from "externalThingNotPresent";something(); Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:21 AM] File change detected. Starting incremental compilation... +[12:01:29 AM] File change detected. Starting incremental compilation... Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -4044,7 +4253,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -4082,7 +4291,7 @@ File '/externalThingNotPresent.jsx' does not exist. 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:28 AM] Found 4 errors. Watching for file changes. +[12:01:36 AM] Found 4 errors. Watching for file changes. @@ -4102,6 +4311,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/main.ts @@ -4141,7 +4351,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4159,6 +4369,7 @@ exitCode:: ExitStatus.undefined "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -4168,6 +4379,7 @@ exitCode:: ExitStatus.undefined "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -4297,6 +4509,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -4333,6 +4549,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -4386,6 +4603,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -4889,6 +5110,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -4904,6 +5140,18 @@ exitCode:: ExitStatus.undefined "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -4981,12 +5229,19 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 11990 + "size": 12528 } @@ -5009,7 +5264,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile. Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json -[12:01:33 AM] File change detected. Starting incremental compilation... +[12:01:41 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -5043,7 +5298,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -5074,6 +5329,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -5094,7 +5355,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:40 AM] Found 4 errors. Watching for file changes. +[12:01:48 AM] Found 4 errors. Watching for file changes. @@ -5115,6 +5376,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/newFile.ts @@ -5157,7 +5419,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -5176,6 +5438,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -5186,6 +5449,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -5324,6 +5588,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -5361,6 +5629,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -5415,6 +5684,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -5954,6 +6227,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -5970,6 +6258,18 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -6053,12 +6353,19 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 12559 + "size": 13097 } @@ -6072,7 +6379,7 @@ export function something2() { return 20; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:43 AM] File change detected. Starting incremental compilation... +[12:01:51 AM] File change detected. Starting incremental compilation... FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -6102,7 +6409,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -6130,6 +6437,12 @@ Resolution for module './fileNotFound' was found in cache from location '/user/u ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 4 import { externalThing2 } from "externalThingNotPresent"; @@ -6140,7 +6453,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:50 AM] Found 2 errors. Watching for file changes. +[12:01:58 AM] Found 2 errors. Watching for file changes. @@ -6162,6 +6475,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts @@ -6207,7 +6521,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -6227,6 +6541,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/externalThing.d.ts", @@ -6238,6 +6553,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", "./src/externalThing.tsx", "./src/externalThingNotPresent.ts", @@ -6377,6 +6693,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -6416,6 +6736,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -6455,6 +6776,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -7016,6 +7341,21 @@ exitCode:: ExitStatus.undefined "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -7033,6 +7373,18 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -7113,12 +7465,19 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 12429 + "size": 12967 } @@ -7132,7 +7491,7 @@ FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound. Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:01:52 AM] File change detected. Starting incremental compilation... +[12:02:00 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -7159,7 +7518,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -7185,6 +7544,12 @@ Reusing resolution of module 'externalThing' from '/user/username/projects/mypro ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -7205,7 +7570,7 @@ Resolution for module 'externalThingNotPresent' was found in cache from location 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:59 AM] Found 4 errors. Watching for file changes. +[12:02:07 AM] Found 4 errors. Watching for file changes. @@ -7226,6 +7591,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/anotherFileReusingResolution.ts @@ -7268,7 +7634,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[4,1],[3,1],[14,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[14,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[15,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":19,"originalFileName":19,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[18,17,16,19,22,21,20,24,23,13,25,5],"filesByName":[[15,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":26,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -7287,6 +7653,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -7298,6 +7665,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/externalThing.ts", "./src/externalThing.tsx", @@ -7432,6 +7800,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -7469,6 +7841,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -7523,6 +7896,10 @@ exitCode:: ExitStatus.undefined "./src/types.ts" ], "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], [ "./src/anotherfilereusingresolution.ts", "Full" @@ -8060,6 +8437,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -8079,6 +8471,18 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/filenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -8159,35 +8563,77 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 12531 + "size": 13069 } -Change:: Create external module file that could not be resolved +Change:: Write file that could not be resolved Input:: -//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] -export function externalThing2() { return 20; } +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:02:02 AM] File change detected. Starting incremental compilation... +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:10 AM] File change detected. Starting incremental compilation... -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. -======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.d.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.ts' does not exist. +File '/user/username/projects/externalThingNotPresent.tsx' does not exist. +File '/user/username/projects/externalThingNotPresent.d.ts' does not exist. +File '/user/username/externalThingNotPresent.ts' does not exist. +File '/user/username/externalThingNotPresent.tsx' does not exist. +File '/user/username/externalThingNotPresent.d.ts' does not exist. +File '/user/externalThingNotPresent.ts' does not exist. +File '/user/externalThingNotPresent.tsx' does not exist. +File '/user/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. +Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/user/username/node_modules' does not exist, skipping all lookups in it. +Directory '/user/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/src/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/src/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.js' does not exist. +File '/user/username/projects/myproject/externalThingNotPresent.jsx' does not exist. +File '/user/username/projects/externalThingNotPresent.js' does not exist. +File '/user/username/projects/externalThingNotPresent.jsx' does not exist. +File '/user/username/externalThingNotPresent.js' does not exist. +File '/user/username/externalThingNotPresent.jsx' does not exist. +File '/user/externalThingNotPresent.js' does not exist. +File '/user/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. @@ -8195,29 +8641,35 @@ Reusing resolution of module './fileNotFound' from '/user/username/projects/mypr Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. -======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:09 AM] Found 2 errors. Watching for file changes. +[12:02:17 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts -/user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -8228,9 +8680,10 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/main.ts @@ -8261,8 +8714,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} -/user/username/projects/myproject/src/externalthingnotpresent.ts: - {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} FsWatches:: @@ -8273,7 +8726,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,4,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[5,1],[3,1],[4,1],[15,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,17,18,16,20,23,22,21,25,24,14,26,6],"filesByName":[[15,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -8281,8 +8734,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -8293,10 +8746,10 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", - "./src/filenotfound.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -8305,32 +8758,80 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/fileNotFound.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", - "./src/externalThing.tsx" - ], - "fileNamesList": [ - [ - "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" - ], - [ - "./src/types.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - [ + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ "./src/globalfilepresent.ts", "./src/globalfilenotfound.ts", "./src/globalnewfile.ts" ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] ], @@ -8344,14 +8845,14 @@ exitCode:: ExitStatus.undefined "version": "11598859296-export function something() { return 10; }", "signature": "-13601649692-export declare function something(): number;\n" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, "./src/externalthing.d.ts": { "version": "5686005290-export function externalThing1(): number;", "signature": "5686005290-export function externalThing1(): number;" }, - "./src/externalthingnotpresent.ts": { - "version": "5318862050-export function externalThing2() { return 20; }", - "signature": "-16245999227-export declare function externalThing2(): number;\n" - }, "./src/anotherfilereusingresolution.ts": { "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" @@ -8397,6 +8898,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -8411,8 +8916,8 @@ exitCode:: ExitStatus.undefined "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -8428,29 +8933,30 @@ exitCode:: ExitStatus.undefined ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ { "file": "./src/anotherfilereusingresolution.ts", - "start": 70, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 } ] ], "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", + "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -8463,9 +8969,9 @@ exitCode:: ExitStatus.undefined [ { "file": "./src/main.ts", - "start": 159, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 } @@ -8476,15 +8982,15 @@ exitCode:: ExitStatus.undefined ], "affectedFilesPendingEmit": [ [ - "./src/anotherfilereusingresolution.ts", + "./node_modules/@types/sometype/index.d.ts", "Full" ], [ - "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", "Full" ], [ - "./src/externalthingnotpresent.ts", + "./src/externalthing.d.ts", "Full" ], [ @@ -8578,50 +9084,50 @@ exitCode:: ExitStatus.undefined ] }, { - "fileName": "./src/externalThing.d.ts", - "originalFileName": "./src/externalThing.d.ts", - "path": "./src/externalthing.d.ts", - "resolvedPath": "./src/externalthing.d.ts", - "version": "5686005290-export function externalThing1(): number;", + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", "flags": 0, "includeReasons": [ { "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", - "index": 2 + "index": 1 }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", "file": "./src/main.ts", - "index": 4 + "index": 3 } ] }, { - "fileName": "./src/externalThingNotPresent.ts", - "originalFileName": "./src/externalThingNotPresent.ts", - "path": "./src/externalthingnotpresent.ts", - "resolvedPath": "./src/externalthingnotpresent.ts", - "version": "5318862050-export function externalThing2() { return 20; }", + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", "flags": 0, "includeReasons": [ { "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", - "index": 3 + "index": 2 }, { "kind": "RootFile", - "index": 2 + "index": 1 }, { "kind": "Import", "file": "./src/main.ts", - "index": 5 + "index": 4 } ] }, @@ -8685,10 +9191,56 @@ exitCode:: ExitStatus.undefined [ "externalThingNotPresent", { - "resolvedModule": { - "resolvedFileName": "./src/externalThingNotPresent.ts", - "extension": ".ts" - } + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] ], @@ -8935,10 +9487,56 @@ exitCode:: ExitStatus.undefined [ "externalThingNotPresent", { - "resolvedModule": { - "resolvedFileName": "./src/externalThingNotPresent.ts", - "extension": ".ts" - } + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] } ] ], @@ -8948,12 +9546,27 @@ exitCode:: ExitStatus.undefined "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -8965,13 +9578,979 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], - "filesByName": { - "./src/filenotfound.ts": 0 - }, - "resolutions": [ - { - "resolvedModule": { - "resolvedFileName": "./src/filePresent.ts", + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12967 +} + + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:02:20 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/user/username/projects/myproject/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/filePresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/filePresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/filePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/anotherFileReusingResolution.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/anotherFileReusingResolution.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/types.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/types.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/types.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileWithRef.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileWithRef.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileWithRef.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFilePresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFilePresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFilePresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalMain.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalMain.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/main.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/main.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/main.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalNewFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalNewFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/globalFileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/newFile.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/fileNotFound.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThingNotPresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/externalThingNotPresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:03:19 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/main.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", "extension": ".ts" } }, @@ -9002,14 +10581,168 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } } ] } }, "version": "FakeTSVersion", - "size": 10211 + "size": 10512 } +//// [/user/username/projects/myproject/src/filePresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); + + +//// [/user/username/projects/myproject/src/filePresent.d.ts] +export declare function something(): number; + + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] +export {}; + + +//// [/user/username/projects/myproject/src/types.js] + + +//// [/user/username/projects/myproject/src/types.d.ts] +interface SomeType { +} + + +//// [/user/username/projects/myproject/src/fileWithRef.js] +/// + + +//// [/user/username/projects/myproject/src/fileWithRef.d.ts] +/// + + +//// [/user/username/projects/myproject/src/globalFilePresent.js] +function globalSomething() { return 10; } + + +//// [/user/username/projects/myproject/src/globalFilePresent.d.ts] +declare function globalSomething(): number; + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.js] +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +//// [/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.d.ts] +/// +/// +declare function globalAnotherFileWithSameReferenes(): void; + + +//// [/user/username/projects/myproject/src/globalMain.js] +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +//// [/user/username/projects/myproject/src/globalMain.d.ts] +/// +/// +/// +declare function globalMain(): void; + + +//// [/user/username/projects/myproject/src/main.js] +define(["require", "exports", "./filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/src/main.d.ts] +export {}; + + +//// [/user/username/projects/myproject/src/globalNewFile.js] +function globalFoo() { return 20; } + + +//// [/user/username/projects/myproject/src/globalNewFile.d.ts] +declare function globalFoo(): number; + + +//// [/user/username/projects/myproject/src/globalFileNotFound.js] +function globalSomething2() { return 20; } + + +//// [/user/username/projects/myproject/src/globalFileNotFound.d.ts] +declare function globalSomething2(): number; + + +//// [/user/username/projects/myproject/src/newFile.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); + + +//// [/user/username/projects/myproject/src/newFile.d.ts] +export declare function foo(): number; + + +//// [/user/username/projects/myproject/src/fileNotFound.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); + + +//// [/user/username/projects/myproject/src/fileNotFound.d.ts] +export declare function something2(): number; + + +//// [/user/username/projects/myproject/src/externalThingNotPresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); + + +//// [/user/username/projects/myproject/src/externalThingNotPresent.d.ts] +export declare function externalThing2(): number; + + Change:: Write .ts file that takes preference over resolved .d.ts file @@ -9021,7 +10754,7 @@ export function externalThing1() { return 10; } Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json -[12:02:12 AM] File change detected. Starting incremental compilation... +[12:03:22 AM] File change detected. Starting incremental compilation... FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json @@ -9035,18 +10768,25 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== error TS5055: Cannot write file '/user/username/projects/myproject/src/externalThing.d.ts' because it would overwrite input file. -[12:02:13 AM] Found 1 error. Watching for file changes. +[12:03:23 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts @@ -9060,6 +10800,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/externalThing.ts @@ -9089,6 +10830,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/externalthingnotpresent.ts: {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} /user/username/projects/myproject/src/externalthing.ts: @@ -9102,3 +10845,160 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined + +Change:: Delete .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory /user/username/projects/myproject/tsconfig.json +[12:03:25 AM] File change detected. Starting incremental compilation... + +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.d.ts 250 undefined Source file /user/username/projects/myproject/tsconfig.json +[12:03:26 AM] Found 0 errors. Watching for file changes. + + + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Install another type and program is not created because its not listed file in tsconfig + +Input:: +//// [/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts] +export function someType2(): number; + + +Output:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Delete existing type and program is not created because its not listed file in tsconfig + +Input:: +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] deleted + +Output:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index bf80c05cfec0c..8ea8f694c6c38 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -14,6 +14,9 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; +//// [/src/project/node_modules/@types/someType/index.d.ts] +export function someType(): number; + //// [/src/project/src/anotherFileReusingResolution.ts] import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; @@ -94,7 +97,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -118,6 +121,12 @@ Resolution for module 'externalThing' was found in cache from location '/src/pro ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -166,6 +175,7 @@ Program files:: /src/project/src/globalAnotherFileWithSameReferenes.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -210,7 +220,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":882,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":337,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":882,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":337,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[60]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -304,6 +314,7 @@ declare module "src/main" { } "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -312,6 +323,7 @@ declare module "src/main" { } "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -350,7 +362,8 @@ declare module "src/main" { } "../externalThingNotPresent.js", "../externalThingNotPresent.jsx", "../../externalThingNotPresent.js", - "../../externalThingNotPresent.jsx" + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -400,6 +413,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -815,6 +831,21 @@ declare module "src/main" { } "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -831,6 +862,21 @@ declare module "src/main" { } "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -918,12 +964,22 @@ declare module "src/main" { } "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 9253 + "size": 9886 } @@ -982,6 +1038,7 @@ Program files:: /src/project/src/globalAnotherFileWithSameReferenes.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -1053,6 +1110,7 @@ Program files:: /src/project/src/globalAnotherFileWithSameReferenes.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -1086,7 +1144,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":902,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":337,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":902,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":337,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[60]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1181,6 +1239,7 @@ declare module "src/main" { } "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -1189,6 +1248,7 @@ declare module "src/main" { } "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1227,7 +1287,8 @@ declare module "src/main" { } "../externalThingNotPresent.js", "../externalThingNotPresent.jsx", "../../externalThingNotPresent.js", - "../../externalThingNotPresent.jsx" + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -1277,6 +1338,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -1692,6 +1756,21 @@ declare module "src/main" { } "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -1708,6 +1787,21 @@ declare module "src/main" { } "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1795,12 +1889,22 @@ declare module "src/main" { } "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 9287 + "size": 9920 } @@ -1846,7 +1950,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -1867,6 +1971,12 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1916,6 +2026,7 @@ Program files:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -1965,7 +2076,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":997,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":376,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":997,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":376,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -2066,6 +2177,7 @@ declare module "src/main" { } "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -2075,6 +2187,7 @@ declare module "src/main" { } "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -2113,7 +2226,8 @@ declare module "src/main" { } "../externalThingNotPresent.js", "../externalThingNotPresent.jsx", "../../externalThingNotPresent.js", - "../../externalThingNotPresent.jsx" + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -2172,6 +2286,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -2608,6 +2725,21 @@ declare module "src/main" { } "index": 8 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -2625,6 +2757,21 @@ declare module "src/main" { } "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2712,12 +2859,22 @@ declare module "src/main" { } "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 9825 + "size": 10458 } @@ -2756,7 +2913,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -2777,6 +2934,12 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2817,6 +2980,7 @@ Program files:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -2868,7 +3032,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1041,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1041,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -2973,6 +3137,7 @@ declare module "src/main" { } "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -2982,6 +3147,7 @@ declare module "src/main" { } "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -3020,7 +3186,8 @@ declare module "src/main" { } "../externalThingNotPresent.js", "../externalThingNotPresent.jsx", "../../externalThingNotPresent.js", - "../../externalThingNotPresent.jsx" + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -3083,6 +3250,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -3543,6 +3713,21 @@ declare module "src/main" { } "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -3558,6 +3743,21 @@ declare module "src/main" { } "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -3619,12 +3819,22 @@ declare module "src/main" { } "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 9900 + "size": 10533 } @@ -3639,7 +3849,7 @@ exitCode:: ExitStatus.Success //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1041,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1041,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} @@ -3693,7 +3903,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -3717,6 +3927,12 @@ Resolution for module 'externalThing' was found in cache from location '/src/pro ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3757,6 +3973,7 @@ Program files:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -3764,13 +3981,13 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.d.ts] file written with same contents //// [/src/project/outFile.js] file written with same contents //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1041,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1041,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents -Change:: Modify global main file +Change:: Modify globalMain file Input:: //// [/src/project/src/globalMain.ts] /// @@ -3823,6 +4040,7 @@ Program files:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -3861,7 +4079,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1061,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1061,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -3967,6 +4185,7 @@ declare module "src/main" { } "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -3976,6 +4195,7 @@ declare module "src/main" { } "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -4014,7 +4234,8 @@ declare module "src/main" { } "../externalThingNotPresent.js", "../externalThingNotPresent.jsx", "../../externalThingNotPresent.js", - "../../externalThingNotPresent.jsx" + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -4077,6 +4298,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -4537,6 +4761,21 @@ declare module "src/main" { } "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -4552,6 +4791,21 @@ declare module "src/main" { } "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -4613,12 +4867,22 @@ declare module "src/main" { } "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 9936 + "size": 10569 } @@ -4662,7 +4926,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -4714,6 +4978,7 @@ Program files:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -4753,7 +5018,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -4860,6 +5125,7 @@ declare module "src/main" { } "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -4869,6 +5135,7 @@ declare module "src/main" { } "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -4907,7 +5174,8 @@ declare module "src/main" { } "../externalThingNotPresent.js", "../externalThingNotPresent.jsx", "../../externalThingNotPresent.js", - "../../externalThingNotPresent.jsx" + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -4970,6 +5238,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -5430,6 +5701,21 @@ declare module "src/main" { } "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -5445,6 +5731,21 @@ declare module "src/main" { } "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -5506,12 +5807,22 @@ declare module "src/main" { } "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 9960 + "size": 10593 } @@ -5557,7 +5868,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -5582,6 +5893,12 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -5623,6 +5940,7 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -5686,7 +6004,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1346,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":493,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1346,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":493,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[65]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -5805,6 +6123,7 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -5815,6 +6134,7 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -5853,7 +6173,8 @@ declare module "src/main" { } "../externalThingNotPresent.js", "../externalThingNotPresent.jsx", "../../externalThingNotPresent.js", - "../../externalThingNotPresent.jsx" + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -5924,6 +6245,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -6417,6 +6741,21 @@ declare module "src/main" { } "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -6433,6 +6772,21 @@ declare module "src/main" { } "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -6500,12 +6854,22 @@ declare module "src/main" { } "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10489 + "size": 11122 } @@ -6540,7 +6904,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -6562,6 +6926,12 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 4 import { externalThing2 } from "externalThingNotPresent"; @@ -6594,6 +6964,7 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -6667,7 +7038,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -6798,6 +7169,7 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/externalThing.d.ts", @@ -6809,6 +7181,7 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", "./src/externalThing.tsx", "./src/externalThingNotPresent.ts", @@ -6842,7 +7215,8 @@ declare module "src/main" { } "../externalThingNotPresent.js", "../externalThingNotPresent.jsx", "../../externalThingNotPresent.js", - "../../externalThingNotPresent.jsx" + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -6918,6 +7292,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -7431,6 +7808,21 @@ declare module "src/main" { } "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -7448,6 +7840,21 @@ declare module "src/main" { } "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -7512,12 +7919,22 @@ declare module "src/main" { } "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10797 + "size": 11430 } @@ -7532,7 +7949,7 @@ exitCode:: ExitStatus.Success //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[]},"version":"FakeTSVersion"} @@ -7582,7 +7999,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -7610,6 +8027,12 @@ Resolution for module 'externalThing' was found in cache from location '/src/pro ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 4 import { externalThing2 } from "externalThingNotPresent"; @@ -7642,6 +8065,7 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -7649,7 +8073,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.d.ts] file written with same contents //// [/src/project/outFile.js] file written with same contents //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents @@ -7688,7 +8112,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -7732,6 +8156,7 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -7786,7 +8211,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1630,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1630,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -7918,6 +8343,7 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/externalThing.d.ts", @@ -7929,6 +8355,7 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", "./src/externalThing.tsx", "./src/externalThingNotPresent.ts", @@ -7962,7 +8389,8 @@ declare module "src/main" { } "../externalThingNotPresent.js", "../externalThingNotPresent.jsx", "../../externalThingNotPresent.js", - "../../externalThingNotPresent.jsx" + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -8038,6 +8466,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -8551,6 +8982,21 @@ declare module "src/main" { } "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -8568,6 +9014,21 @@ declare module "src/main" { } "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -8632,12 +9093,22 @@ declare module "src/main" { } "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10821 + "size": 11454 } @@ -8667,7 +9138,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -8687,6 +9158,12 @@ Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -8728,6 +9205,7 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -8792,7 +9270,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1378,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":493,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"filesByName":[[24,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1378,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":493,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[26,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -8912,6 +9390,7 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -8922,6 +9401,7 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/filenotfound.ts", "./src/fileNotFound.ts", "./src/externalThing.ts", @@ -8957,7 +9437,8 @@ declare module "src/main" { } "../externalThingNotPresent.js", "../externalThingNotPresent.jsx", "../../externalThingNotPresent.js", - "../../externalThingNotPresent.jsx" + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -9028,6 +9509,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -9515,6 +9999,21 @@ declare module "src/main" { } "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -9534,6 +10033,21 @@ declare module "src/main" { } "filesByName": { "./src/filenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -9598,20 +10112,30 @@ declare module "src/main" { } "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10478 + "size": 11111 } -Change:: Create external module file that could not be resolved +Change:: Write file that could not be resolved Input:: -//// [/src/project/src/externalThingNotPresent.ts] -export function externalThing2() { return 20; } +//// [/src/project/src/fileNotFound.ts] +export function something2() { return 20; } @@ -9622,8 +10146,31 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFile Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/externalThingNotPresent.ts' exist - use it as a name resolution result. -======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. @@ -9631,29 +10178,35 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. -======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== -src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +5 import { externalThing2 } from "externalThingNotPresent";something();something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts /src/project/src/externalThing.d.ts -/src/project/src/externalThingNotPresent.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts @@ -9664,6 +10217,7 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -9672,8 +10226,8 @@ No cached semantic diagnostics in the builder:: declare module "src/filePresent" { export function something(): number; } -declare module "src/externalThingNotPresent" { - export function externalThing2(): number; +declare module "src/fileNotFound" { + export function something2(): number; } declare module "src/anotherFileReusingResolution" { } interface SomeType { @@ -9697,12 +10251,12 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); -define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { +define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - exports.externalThing2 = void 0; - function externalThing2() { return 20; } - exports.externalThing2 = externalThing2; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; }); define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { "use strict"; @@ -9738,13 +10292,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1657,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":591,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"filesByName":[[26,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1630,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-1657) +text: (0-1630) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -9752,12 +10306,12 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); -define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { +define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - exports.externalThing2 = void 0; - function externalThing2() { return 20; } - exports.externalThing2 = externalThing2; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; }); define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { "use strict"; @@ -9795,12 +10349,12 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-591) +text: (0-576) declare module "src/filePresent" { export function something(): number; } -declare module "src/externalThingNotPresent" { - export function externalThing2(): number; +declare module "src/fileNotFound" { + export function something2(): number; } declare module "src/anotherFileReusingResolution" { } interface SomeType { @@ -9823,7 +10377,7 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", - "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", @@ -9839,7 +10393,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1657, + "end": 1630, "kind": "text" } ] @@ -9848,7 +10402,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 591, + "end": 576, "kind": "text" } ] @@ -9858,8 +10412,8 @@ declare module "src/main" { } "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -9870,9 +10424,10 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -9881,19 +10436,51 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/filenotfound.ts", - "./src/fileNotFound.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", - "./src/externalThing.tsx" - ], - "fileNamesList": [ - [ - "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" - ], - [ - "./src/types.ts" + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts" + ], + [ + "./src/types.ts" ], [ "./src/globalfilepresent.ts", @@ -9906,8 +10493,8 @@ declare module "src/main" { } ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] ], @@ -9919,12 +10506,12 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, "./src/externalthing.d.ts": { "version": "5686005290-export function externalThing1(): number;" }, - "./src/externalthingnotpresent.ts": { - "version": "5318862050-export function externalThing2() { return 20; }" - }, "./src/anotherfilereusingresolution.ts": { "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, @@ -9960,6 +10547,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -9974,8 +10564,8 @@ declare module "src/main" { } "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -9991,8 +10581,8 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] }, @@ -10043,50 +10633,50 @@ declare module "src/main" { } ] }, { - "fileName": "./src/externalThing.d.ts", - "originalFileName": "./src/externalThing.d.ts", - "path": "./src/externalthing.d.ts", - "resolvedPath": "./src/externalthing.d.ts", - "version": "5686005290-export function externalThing1(): number;", + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", "flags": 0, "includeReasons": [ { "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", - "index": 2 + "index": 1 }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", "file": "./src/main.ts", - "index": 4 + "index": 3 } ] }, { - "fileName": "./src/externalThingNotPresent.ts", - "originalFileName": "./src/externalThingNotPresent.ts", - "path": "./src/externalthingnotpresent.ts", - "resolvedPath": "./src/externalthingnotpresent.ts", - "version": "5318862050-export function externalThing2() { return 20; }", + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", "flags": 0, "includeReasons": [ { "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", - "index": 3 + "index": 2 }, { "kind": "RootFile", - "index": 2 + "index": 1 }, { "kind": "Import", "file": "./src/main.ts", - "index": 5 + "index": 4 } ] }, @@ -10150,10 +10740,40 @@ declare module "src/main" { } [ "externalThingNotPresent", { - "resolvedModule": { - "resolvedFileName": "./src/externalThingNotPresent.ts", - "extension": ".ts" - } + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] ], @@ -10400,10 +11020,40 @@ declare module "src/main" { } [ "externalThingNotPresent", { - "resolvedModule": { - "resolvedFileName": "./src/externalThingNotPresent.ts", - "extension": ".ts" - } + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] ], @@ -10413,12 +11063,27 @@ declare module "src/main" { } "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -10430,9 +11095,21 @@ declare module "src/main" { } "./src/newFile.ts", "./src/types.ts" ], - "filesByName": { - "./src/filenotfound.ts": 0 - }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -10457,30 +11134,70 @@ declare module "src/main" { } ] }, { - "resolvedModule": { - "resolvedFileName": "./src/externalThingNotPresent.ts", - "extension": ".ts" - } + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] }, { "resolvedModule": { "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 9470 + "size": 11454 } -Change:: Write .ts file that takes preference over resolved .d.ts file +Change:: Create external module file that could not be resolved Input:: -//// [/src/project/src/externalThing.ts] -export function externalThing1() { return 10; } +//// [/src/project/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } @@ -10489,37 +11206,35 @@ Output:: Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. -Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. -Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. -src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts /src/project/src/externalThing.d.ts /src/project/src/externalThingNotPresent.ts /src/project/src/anotherFileReusingResolution.ts -/src/project/src/externalThing.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts /src/project/src/globalFilePresent.ts @@ -10529,6 +11244,7 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -10537,13 +11253,13 @@ No cached semantic diagnostics in the builder:: declare module "src/filePresent" { export function something(): number; } -declare module "src/externalThingNotPresent" { - export function externalThing2(): number; +declare module "src/fileNotFound" { + export function something2(): number; } -declare module "src/anotherFileReusingResolution" { } -declare module "src/externalThing" { - export function externalThing1(): number; +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; } +declare module "src/anotherFileReusingResolution" { } interface SomeType { } declare function globalSomething(): number; @@ -10565,6 +11281,13 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -10576,13 +11299,6 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); -define("src/externalThing", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing1 = void 0; - function externalThing1() { return 10; } - exports.externalThing1 = externalThing1; -}); /// function globalSomething() { return 10; } function globalSomething2() { return 20; } @@ -10613,13 +11329,13 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1926,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":679,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":3,"file":15,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,20,18,16,21,24,23,22,26,25,15,27,7],"filesByName":[[28,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[20,30]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1909,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":674,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== File:: /src/project/outFile.js ---------------------------------------------------------------------- -text: (0-1926) +text: (0-1909) define("src/filePresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -10627,6 +11343,13 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -10638,13 +11361,6 @@ define("src/anotherFileReusingResolution", ["require", "exports"], function (req "use strict"; exports.__esModule = true; }); -define("src/externalThing", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing1 = void 0; - function externalThing1() { return 10; } - exports.externalThing1 = externalThing1; -}); /// function globalSomething() { return 10; } function globalSomething2() { return 20; } @@ -10677,17 +11393,17 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, ====================================================================== File:: /src/project/outFile.d.ts ---------------------------------------------------------------------- -text: (0-679) +text: (0-674) declare module "src/filePresent" { export function something(): number; } +declare module "src/fileNotFound" { + export function something2(): number; +} declare module "src/externalThingNotPresent" { export function externalThing2(): number; } declare module "src/anotherFileReusingResolution" { } -declare module "src/externalThing" { - export function externalThing1(): number; -} interface SomeType { } declare function globalSomething(): number; @@ -10698,19 +11414,2824 @@ declare function globalMain(): void; declare module "src/newFile" { export function foo(): number; } -declare module "src/main" { } +declare module "src/main" { } + +====================================================================== + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1909, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 674, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10445 +} + + + +Change:: Write .ts file that takes preference over resolved .d.ts file +Input:: +//// [/src/project/src/externalThing.ts] +export function externalThing1() { return 10; } + + + +Output:: +/lib/tsc --p src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.d.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/externalThing.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + + +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2178,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":762,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[33]}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-2178) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-762) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 2178, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 762, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10754 +} + + + +Change:: Delete tsbuildinfo file and do clean build +Input:: +//// [/src/project/outFile.tsbuildinfo] unlink + + +Output:: +/lib/tsc --p src/project +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThing.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThing' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThing' was found in cache from location '/src/project/src'. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThing" { + export function externalThing1(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/src/project/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + + +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2178,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":762,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[30]}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-2178) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +globalSomething(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /src/project/outFile.d.ts +---------------------------------------------------------------------- +text: (0-762) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThing" { + export function externalThing1(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 2178, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 762, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10393 +} -====================================================================== + +Change:: Install another type and it is not picked by program +Input:: +//// [/src/project/node_modules/@types/someType2/index.d.ts] +export function someType2(): number; + + + +Output:: +/lib/tsc --p src/project +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Completely +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] file written with same contents +//// [/src/project/outFile.js] file written with same contents +//// [/src/project/outFile.tsbuildinfo] file written with same contents +//// [/src/project/outFile.tsbuildinfo.baseline.txt] file written with same contents +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents + + +Change:: Delete existing type and this will trigger new program so above new type becomes part of program +Input:: +//// [/src/project/node_modules/@types/someType] unlink + + +Output:: +/lib/tsc --p src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +======== Resolving type reference directive 'someType2', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType2/package.json' does not exist. +File '/src/project/node_modules/@types/someType2/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType2/index.d.ts', result '/src/project/node_modules/@types/someType2/index.d.ts'. +======== Type reference directive 'someType2' was successfully resolved to '/src/project/node_modules/@types/someType2/index.d.ts', primary: true. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts +/src/project/node_modules/@types/someType2/index.d.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] file written with same contents +//// [/src/project/outFile.js] file written with same contents +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2178,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":762,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType2",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[30]}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { "bundle": { "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/externalThing.ts", "./src/types.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -10725,7 +14246,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1926, + "end": 2178, "kind": "text" } ] @@ -10734,7 +14255,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 679, + "end": 762, "kind": "text" } ] @@ -10744,10 +14265,10 @@ declare module "src/main" { } "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", - "./src/externalthing.d.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/externalthing.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -10757,11 +14278,12 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype2/index.d.ts", "./src/filePresent.ts", - "./src/externalThing.d.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/externalThing.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -10769,14 +14291,14 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/filenotfound.ts", - "./src/fileNotFound.ts", - "./src/externalThing.tsx" + "./node_modules/@types/someType2/index.d.ts", + "./node_modules/@types/someType2/package.json" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/externalthing.d.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", "./src/externalthingnotpresent.ts" ], [ @@ -10793,7 +14315,8 @@ declare module "src/main" { } ], [ "./src/filepresent.ts", - "./src/externalthing.d.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] @@ -10806,8 +14329,11 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, - "./src/externalthing.d.ts": { - "version": "5686005290-export function externalThing1(): number;" + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }" }, "./src/externalthingnotpresent.ts": { "version": "5318862050-export function externalThing2() { return 20; }" @@ -10815,9 +14341,6 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": { "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, - "./src/externalthing.ts": { - "version": "5618215488-export function externalThing1() { return 10; }" - }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "affectsGlobalScope": true @@ -10850,6 +14373,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + }, + "./node_modules/@types/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): number;" } }, "options": { @@ -10864,7 +14390,8 @@ declare module "src/main" { } "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/externalthing.d.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", "./src/externalthingnotpresent.ts" ], "./src/filewithref.ts": [ @@ -10881,7 +14408,8 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", - "./src/externalthing.d.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] @@ -10918,7 +14446,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 3 + "index": 4 }, { "kind": "Import", @@ -10933,11 +14461,35 @@ declare module "src/main" { } ] }, { - "fileName": "./src/externalThing.d.ts", - "originalFileName": "./src/externalThing.d.ts", - "path": "./src/externalthing.d.ts", - "resolvedPath": "./src/externalthing.d.ts", - "version": "5686005290-export function externalThing1(): number;", + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", "flags": 0, "includeReasons": [ { @@ -10945,6 +14497,10 @@ declare module "src/main" { } "file": "./src/anotherfilereusingresolution.ts", "index": 2 }, + { + "kind": "RootFile", + "index": 1 + }, { "kind": "Import", "file": "./src/main.ts", @@ -11024,13 +14580,9 @@ declare module "src/main" { } "externalThing", { "resolvedModule": { - "resolvedFileName": "./src/externalThing.d.ts", - "extension": ".d.ts" - }, - "failedLookupLocations": [ - "./src/externalThing.ts", - "./src/externalThing.tsx" - ] + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } } ], [ @@ -11050,20 +14602,6 @@ declare module "src/main" { } } ] }, - { - "fileName": "./src/externalThing.ts", - "originalFileName": "./src/externalThing.ts", - "path": "./src/externalthing.ts", - "resolvedPath": "./src/externalthing.ts", - "version": "5618215488-export function externalThing1() { return 10; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -11079,7 +14617,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 12 + "index": 13 } ] }, @@ -11096,7 +14634,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -11115,7 +14653,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 }, { "kind": "ReferenceFile", @@ -11139,7 +14677,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -11162,7 +14700,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -11181,7 +14719,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -11200,7 +14738,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -11219,7 +14757,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -11288,13 +14826,9 @@ declare module "src/main" { } "externalThing", { "resolvedModule": { - "resolvedFileName": "./src/externalThing.d.ts", - "extension": ".d.ts" - }, - "failedLookupLocations": [ - "./src/externalThing.ts", - "./src/externalThing.tsx" - ] + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } } ], [ @@ -11310,15 +14844,31 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 10 + "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType2/index.d.ts", + "originalFileName": "./node_modules/@types/someType2/index.d.ts", + "path": "./node_modules/@types/sometype2/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype2/index.d.ts", + "version": "5420646020-export function someType2(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType2" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/externalThing.ts", "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -11330,9 +14880,21 @@ declare module "src/main" { } "./src/newFile.ts", "./src/types.ts" ], - "filesByName": { - "./src/filenotfound.ts": 0 - }, + "resolvedTypeReferenceDirectives": [ + [ + "someType2", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -11348,13 +14910,9 @@ declare module "src/main" { } }, { "resolvedModule": { - "resolvedFileName": "./src/externalThing.d.ts", - "extension": ".d.ts" - }, - "failedLookupLocations": [ - "./src/externalThing.ts", - "./src/externalThing.tsx" - ] + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -11367,11 +14925,21 @@ declare module "src/main" { } "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 9779 + "size": 10400 } diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 845b0f37eb4a1..00b5cacce9e89 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -14,6 +14,9 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; +//// [/src/project/node_modules/@types/someType/index.d.ts] +export function someType(): number; + //// [/src/project/src/anotherFileReusingResolution.ts] import { something } from "./filePresent"; import { something2 } from "./fileNotFound"; @@ -94,7 +97,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -118,6 +121,12 @@ Resolution for module 'externalThing' was found in cache from location '/src/pro ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -166,6 +175,7 @@ Program files:: /src/project/src/globalAnotherFileWithSameReferenes.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /lib/lib.d.ts @@ -178,6 +188,7 @@ Semantic diagnostics in builder refreshed for:: /src/project/src/globalAnotherFileWithSameReferenes.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts //// [/src/project/src/anotherFileReusingResolution.d.ts] @@ -263,7 +274,7 @@ interface SomeType { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[60]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -279,6 +290,7 @@ interface SomeType { "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -287,6 +299,7 @@ interface SomeType { "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -325,7 +338,8 @@ interface SomeType { "../externalThingNotPresent.js", "../externalThingNotPresent.jsx", "../../externalThingNotPresent.js", - "../../externalThingNotPresent.jsx" + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -385,6 +399,10 @@ interface SomeType { "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -439,6 +457,7 @@ interface SomeType { }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -871,6 +890,21 @@ interface SomeType { "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -887,6 +921,21 @@ interface SomeType { "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -974,12 +1023,22 @@ interface SomeType { "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 9678 + "size": 10284 } @@ -1038,6 +1097,7 @@ Program files:: /src/project/src/globalAnotherFileWithSameReferenes.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: @@ -1104,6 +1164,7 @@ Program files:: /src/project/src/globalAnotherFileWithSameReferenes.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /lib/lib.d.ts @@ -1116,6 +1177,7 @@ Semantic diagnostics in builder refreshed for:: /src/project/src/globalAnotherFileWithSameReferenes.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts //// [/src/project/src/anotherFileReusingResolution.d.ts] file written with same contents @@ -1141,7 +1203,7 @@ globalSomething(); //// [/src/project/src/types.d.ts] file written with same contents //// [/src/project/src/types.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-19927227517-/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-19927227517-/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[60]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1157,6 +1219,7 @@ globalSomething(); "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -1165,6 +1228,7 @@ globalSomething(); "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1203,7 +1267,8 @@ globalSomething(); "../externalThingNotPresent.js", "../externalThingNotPresent.jsx", "../../externalThingNotPresent.js", - "../../externalThingNotPresent.jsx" + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -1263,6 +1328,10 @@ globalSomething(); "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -1297,6 +1366,7 @@ globalSomething(); "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -1729,6 +1799,21 @@ globalSomething(); "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -1745,6 +1830,21 @@ globalSomething(); "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1832,12 +1932,22 @@ globalSomething(); "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10353 + "size": 10959 } @@ -1883,7 +1993,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -1904,6 +2014,12 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -1953,6 +2069,7 @@ Program files:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /lib/lib.d.ts @@ -1966,6 +2083,7 @@ Semantic diagnostics in builder refreshed for:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts //// [/src/project/src/anotherFileReusingResolution.d.ts] file written with same contents @@ -2006,7 +2124,7 @@ function globalFoo() { return 20; } //// [/src/project/src/types.d.ts] file written with same contents //// [/src/project/src/types.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"604791887-/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"604791887-/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2023,6 +2141,7 @@ function globalFoo() { return 20; } "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -2032,6 +2151,7 @@ function globalFoo() { return 20; } "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -2070,7 +2190,8 @@ function globalFoo() { return 20; } "../externalThingNotPresent.js", "../externalThingNotPresent.jsx", "../../externalThingNotPresent.js", - "../../externalThingNotPresent.jsx" + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -2140,6 +2261,10 @@ function globalFoo() { return 20; } "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -2175,6 +2300,7 @@ function globalFoo() { return 20; } "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -2628,6 +2754,21 @@ function globalFoo() { return 20; } "index": 8 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -2645,6 +2786,21 @@ function globalFoo() { return 20; } "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2732,12 +2888,22 @@ function globalFoo() { return 20; } "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10964 + "size": 11570 } @@ -2776,7 +2942,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -2797,6 +2963,12 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2837,6 +3009,7 @@ Program files:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /lib/lib.d.ts @@ -2851,6 +3024,7 @@ Semantic diagnostics in builder refreshed for:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts //// [/src/project/src/anotherFileReusingResolution.d.ts] file written with same contents @@ -2891,7 +3065,7 @@ declare function globalMain(): void; //// [/src/project/src/types.d.ts] file written with same contents //// [/src/project/src/types.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2909,6 +3083,7 @@ declare function globalMain(): void; "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -2918,6 +3093,7 @@ declare function globalMain(): void; "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -2956,7 +3132,8 @@ declare function globalMain(): void; "../externalThingNotPresent.js", "../externalThingNotPresent.jsx", "../../externalThingNotPresent.js", - "../../externalThingNotPresent.jsx" + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -3031,6 +3208,10 @@ declare function globalMain(): void; "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -3066,6 +3247,7 @@ declare function globalMain(): void; "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -3544,6 +3726,21 @@ declare function globalMain(): void; "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -3559,6 +3756,21 @@ declare function globalMain(): void; "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -3620,12 +3832,22 @@ declare function globalMain(): void; "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11177 + "size": 11783 } @@ -3640,7 +3862,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5]},"version":"FakeTSVersion"} @@ -3694,7 +3916,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -3718,6 +3940,12 @@ Resolution for module 'externalThing' was found in cache from location '/src/pro ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3758,17 +3986,18 @@ Program files:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents -Change:: Modify global main file +Change:: Modify globalMain file Input:: //// [/src/project/src/globalMain.ts] /// @@ -3821,6 +4050,7 @@ Program files:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /src/project/src/globalMain.ts @@ -3838,7 +4068,7 @@ globalSomething(); //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3856,6 +4086,7 @@ globalSomething(); "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -3865,6 +4096,7 @@ globalSomething(); "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -3903,7 +4135,8 @@ globalSomething(); "../externalThingNotPresent.js", "../externalThingNotPresent.jsx", "../../externalThingNotPresent.js", - "../../externalThingNotPresent.jsx" + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -3978,6 +4211,10 @@ globalSomething(); "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -4013,6 +4250,7 @@ globalSomething(); "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -4491,6 +4729,21 @@ globalSomething(); "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -4506,6 +4759,21 @@ globalSomething(); "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -4567,12 +4835,22 @@ globalSomething(); "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11213 + "size": 11819 } @@ -4616,7 +4894,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -4668,6 +4946,7 @@ Program files:: /src/project/src/globalNewFile.ts /src/project/src/globalMain.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /src/project/src/main.ts @@ -4683,7 +4962,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4701,6 +4980,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -4710,6 +4990,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -4748,7 +5029,8 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "../externalThingNotPresent.js", "../externalThingNotPresent.jsx", "../../externalThingNotPresent.js", - "../../externalThingNotPresent.jsx" + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -4823,6 +5105,10 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/main.ts": { "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -4858,6 +5144,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -5336,6 +5623,21 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -5351,6 +5653,21 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -5412,12 +5729,22 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "../../externalThingNotPresent.js", "../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11237 + "size": 11843 } @@ -5463,7 +5790,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -5488,6 +5815,12 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -5529,6 +5862,7 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /src/project/src/newFile.ts @@ -5552,7 +5886,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[65]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -5571,6 +5905,7 @@ define(["require", "exports"], function (require, exports) { "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -5581,6 +5916,7 @@ define(["require", "exports"], function (require, exports) { "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -5619,7 +5955,8 @@ define(["require", "exports"], function (require, exports) { "../externalThingNotPresent.js", "../externalThingNotPresent.jsx", "../../externalThingNotPresent.js", - "../../externalThingNotPresent.jsx" + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -5703,6 +6040,10 @@ define(["require", "exports"], function (require, exports) { "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -5739,6 +6080,7 @@ define(["require", "exports"], function (require, exports) { "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -6250,6 +6592,21 @@ define(["require", "exports"], function (require, exports) { "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -6266,6 +6623,21 @@ define(["require", "exports"], function (require, exports) { "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -6333,12 +6705,22 @@ define(["require", "exports"], function (require, exports) { "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11801 + "size": 12407 } @@ -6373,7 +6755,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -6395,6 +6777,12 @@ Resolution for module './fileNotFound' was found in cache from location '/src/pr ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 4 import { externalThing2 } from "externalThingNotPresent"; @@ -6427,6 +6815,7 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /src/project/src/fileNotFound.ts @@ -6453,7 +6842,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/src/main.d.ts] file written with same contents //// [/src/project/src/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -6473,6 +6862,7 @@ define(["require", "exports"], function (require, exports) { "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/externalThing.d.ts", @@ -6484,6 +6874,7 @@ define(["require", "exports"], function (require, exports) { "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", "./src/externalThing.tsx", "./src/externalThingNotPresent.ts", @@ -6517,7 +6908,8 @@ define(["require", "exports"], function (require, exports) { "../externalThingNotPresent.js", "../externalThingNotPresent.jsx", "../../externalThingNotPresent.js", - "../../externalThingNotPresent.jsx" + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -6607,6 +6999,10 @@ define(["require", "exports"], function (require, exports) { "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -6645,6 +7041,7 @@ define(["require", "exports"], function (require, exports) { "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -7159,6 +7556,21 @@ define(["require", "exports"], function (require, exports) { "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -7176,6 +7588,21 @@ define(["require", "exports"], function (require, exports) { "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -7240,12 +7667,22 @@ define(["require", "exports"], function (require, exports) { "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11666 + "size": 12272 } @@ -7260,7 +7697,7 @@ exitCode:: ExitStatus.Success //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6]},"version":"FakeTSVersion"} @@ -7310,7 +7747,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -7338,6 +7775,12 @@ Resolution for module 'externalThing' was found in cache from location '/src/pro ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 4 import { externalThing2 } from "externalThingNotPresent"; @@ -7370,12 +7813,13 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents @@ -7413,7 +7857,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -7457,6 +7901,7 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /src/project/src/main.ts @@ -7473,7 +7918,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -7493,6 +7938,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/externalThing.d.ts", @@ -7504,6 +7950,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", "./src/externalThing.tsx", "./src/externalThingNotPresent.ts", @@ -7537,7 +7984,8 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "../externalThingNotPresent.js", "../externalThingNotPresent.jsx", "../../externalThingNotPresent.js", - "../../externalThingNotPresent.jsx" + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -7627,6 +8075,10 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/main.ts": { "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -7665,6 +8117,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -8179,6 +8632,21 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -8196,6 +8664,21 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -8260,12 +8743,22 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11690 + "size": 12296 } @@ -8295,7 +8788,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/src/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. File '/src/project/src/externalThingNotPresent.js' does not exist. @@ -8315,6 +8808,12 @@ Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. ======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -8357,6 +8856,7 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /src/project/src/anotherFileReusingResolution.ts @@ -8369,7 +8869,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/src/main.d.ts] file written with same contents //// [/src/project/src/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"-13705775197-export declare function something2(): number;\r\n",{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[6],[8,9],[8,9,11],[2,3,13]],"referencedMap":[[4,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,5,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-13705775197-export declare function something2(): number;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[17,16,18,15,19,22,21,20,24,23,14,25,6],"filesByName":[[26,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"-13705775197-export declare function something2(): number;\r\n",{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[6],[8,9],[8,9,11],[2,3,13]],"referencedMap":[[4,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,5,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-13705775197-export declare function something2(): number;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[18,17,19,16,20,23,22,21,25,24,14,26,6],"filesByName":[[28,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"failedLookupLocations":[32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[64]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -8389,6 +8889,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -8400,6 +8901,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/filenotfound.ts", "./src/fileNotFound.ts", "./src/externalThing.ts", @@ -8435,7 +8937,8 @@ Semantic diagnostics in builder refreshed for:: "../externalThingNotPresent.js", "../externalThingNotPresent.jsx", "../../externalThingNotPresent.js", - "../../externalThingNotPresent.jsx" + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -8523,6 +9026,10 @@ Semantic diagnostics in builder refreshed for:: "./src/main.ts": { "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -8559,6 +9066,7 @@ Semantic diagnostics in builder refreshed for:: "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -9079,6 +9587,21 @@ Semantic diagnostics in builder refreshed for:: "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -9099,6 +9622,21 @@ Semantic diagnostics in builder refreshed for:: "filesByName": { "./src/filenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -9163,20 +9701,30 @@ Semantic diagnostics in builder refreshed for:: "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 12108 + "size": 12714 } -Change:: Create external module file that could not be resolved +Change:: Write file that could not be resolved Input:: -//// [/src/project/src/externalThingNotPresent.ts] -export function externalThing2() { return 20; } +//// [/src/project/src/fileNotFound.ts] +export function something2() { return 20; } @@ -9187,8 +9735,31 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFile Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. -File '/src/project/src/externalThingNotPresent.ts' exist - use it as a name resolution result. -======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +File '/src/project/src/externalThingNotPresent.ts' does not exist. +File '/src/project/src/externalThingNotPresent.tsx' does not exist. +File '/src/project/src/externalThingNotPresent.d.ts' does not exist. +File '/src/project/externalThingNotPresent.ts' does not exist. +File '/src/project/externalThingNotPresent.tsx' does not exist. +File '/src/project/externalThingNotPresent.d.ts' does not exist. +File '/src/externalThingNotPresent.ts' does not exist. +File '/src/externalThingNotPresent.tsx' does not exist. +File '/src/externalThingNotPresent.d.ts' does not exist. +File '/externalThingNotPresent.ts' does not exist. +File '/externalThingNotPresent.tsx' does not exist. +File '/externalThingNotPresent.d.ts' does not exist. +Directory '/src/project/src/node_modules' does not exist, skipping all lookups in it. +File '/src/project/node_modules/@types/externalThingNotPresent.d.ts' does not exist. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +File '/src/project/src/externalThingNotPresent.js' does not exist. +File '/src/project/src/externalThingNotPresent.jsx' does not exist. +File '/src/project/externalThingNotPresent.js' does not exist. +File '/src/project/externalThingNotPresent.jsx' does not exist. +File '/src/externalThingNotPresent.js' does not exist. +File '/src/externalThingNotPresent.jsx' does not exist. +File '/externalThingNotPresent.js' does not exist. +File '/externalThingNotPresent.jsx' does not exist. +======== Module name 'externalThingNotPresent' was not resolved. ======== Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. @@ -9196,31 +9767,36 @@ Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. -======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== -src/project/src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +======== Module name 'externalThingNotPresent' was not resolved. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== +src/project/src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -src/project/src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/project/src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +5 import { externalThing2 } from "externalThingNotPresent";something();something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ Found 2 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts /src/project/src/externalThing.d.ts -/src/project/src/externalThingNotPresent.ts /src/project/src/anotherFileReusingResolution.ts -/src/project/src/fileNotFound.d.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts /src/project/src/globalFilePresent.ts @@ -9230,33 +9806,22 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: -/src/project/src/externalThingNotPresent.ts +/src/project/src/fileNotFound.ts /src/project/src/anotherFileReusingResolution.ts /src/project/src/main.ts //// [/src/project/src/anotherFileReusingResolution.d.ts] file written with same contents //// [/src/project/src/anotherFileReusingResolution.js] file written with same contents -//// [/src/project/src/externalThingNotPresent.d.ts] -export declare function externalThing2(): number; - - -//// [/src/project/src/externalThingNotPresent.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing2 = void 0; - function externalThing2() { return 20; } - exports.externalThing2 = externalThing2; -}); - - +//// [/src/project/src/fileNotFound.d.ts] file written with same contents +//// [/src/project/src/fileNotFound.js] file written with same contents //// [/src/project/src/main.d.ts] file written with same contents //// [/src/project/src/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16426931566-export declare function externalThing2(): number;\r\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"-13705775197-export declare function something2(): number;\r\n",{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,4,6,2,8,11,10,9,13,12,[15,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"-13705775197-export declare function something2(): number;\r\n","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[19,17,18,20,16,21,24,23,22,26,25,15,27,7],"filesByName":[[28,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -9264,10 +9829,9 @@ define(["require", "exports"], function (require, exports) { "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/filenotfound.d.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -9277,11 +9841,11 @@ define(["require", "exports"], function (require, exports) { "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/fileNotFound.d.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -9289,16 +9853,48 @@ define(["require", "exports"], function (require, exports) { "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/filenotfound.ts", - "./src/fileNotFound.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", - "./src/externalThing.tsx" + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -9314,8 +9910,8 @@ define(["require", "exports"], function (require, exports) { ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] ], @@ -9329,22 +9925,18 @@ define(["require", "exports"], function (require, exports) { "version": "11598859296-export function something() { return 10; }", "signature": "-15062742831-export declare function something(): number;\r\n" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-13705775197-export declare function something2(): number;\r\n" + }, "./src/externalthing.d.ts": { "version": "5686005290-export function externalThing1(): number;", "signature": "5686005290-export function externalThing1(): number;" }, - "./src/externalthingnotpresent.ts": { - "version": "5318862050-export function externalThing2() { return 20; }", - "signature": "-16426931566-export declare function externalThing2(): number;\r\n" - }, "./src/anotherfilereusingresolution.ts": { "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-4882119183-export {};\r\n" }, - "./src/filenotfound.d.ts": { - "version": "-13705775197-export declare function something2(): number;\r\n", - "signature": "-13705775197-export declare function something2(): number;\r\n" - }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10608150606-interface SomeType {\r\n}\r\n", @@ -9386,6 +9978,10 @@ define(["require", "exports"], function (require, exports) { "./src/main.ts": { "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -9399,8 +9995,8 @@ define(["require", "exports"], function (require, exports) { "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" + "./src/filenotfound.ts", + "./src/externalthing.d.ts" ], "./src/filewithref.ts": [ "./src/types.ts" @@ -9416,30 +10012,30 @@ define(["require", "exports"], function (require, exports) { ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ { "file": "./src/anotherfilereusingresolution.ts", - "start": 70, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 } ] ], "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", - "./src/filenotfound.d.ts", + "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -9452,9 +10048,9 @@ define(["require", "exports"], function (require, exports) { [ { "file": "./src/main.ts", - "start": 159, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", "category": 1, "code": 2792 } @@ -9494,7 +10090,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 4 + "index": 3 }, { "kind": "Import", @@ -9509,50 +10105,50 @@ define(["require", "exports"], function (require, exports) { ] }, { - "fileName": "./src/externalThing.d.ts", - "originalFileName": "./src/externalThing.d.ts", - "path": "./src/externalthing.d.ts", - "resolvedPath": "./src/externalthing.d.ts", - "version": "5686005290-export function externalThing1(): number;", + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", "flags": 0, "includeReasons": [ { "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", - "index": 2 + "index": 1 }, { "kind": "RootFile", - "index": 1 + "index": 2 }, { "kind": "Import", "file": "./src/main.ts", - "index": 4 + "index": 3 } ] }, { - "fileName": "./src/externalThingNotPresent.ts", - "originalFileName": "./src/externalThingNotPresent.ts", - "path": "./src/externalthingnotpresent.ts", - "resolvedPath": "./src/externalthingnotpresent.ts", - "version": "5318862050-export function externalThing2() { return 20; }", + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", "flags": 0, "includeReasons": [ { "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", - "index": 3 + "index": 2 }, { "kind": "RootFile", - "index": 2 + "index": 1 }, { "kind": "Import", "file": "./src/main.ts", - "index": 5 + "index": 4 } ] }, @@ -9616,10 +10212,40 @@ define(["require", "exports"], function (require, exports) { [ "externalThingNotPresent", { - "resolvedModule": { - "resolvedFileName": "./src/externalThingNotPresent.ts", - "extension": ".ts" - } + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] ], @@ -9630,20 +10256,6 @@ define(["require", "exports"], function (require, exports) { } ] }, - { - "fileName": "./src/fileNotFound.d.ts", - "originalFileName": "./src/fileNotFound.d.ts", - "path": "./src/filenotfound.d.ts", - "resolvedPath": "./src/filenotfound.d.ts", - "version": "-13705775197-export declare function something2(): number;\r\n", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 3 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -9659,7 +10271,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 13 + "index": 12 } ] }, @@ -9676,7 +10288,7 @@ define(["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 4 } ] }, @@ -9695,7 +10307,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 8 + "index": 7 }, { "kind": "ReferenceFile", @@ -9719,7 +10331,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 7 + "index": 6 }, { "kind": "ReferenceFile", @@ -9742,7 +10354,7 @@ define(["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": "RootFile", - "index": 6 + "index": 5 } ] }, @@ -9761,7 +10373,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 10 + "index": 9 } ] }, @@ -9780,7 +10392,7 @@ define(["require", "exports"], function (require, exports) { "includeReasons": [ { "kind": "RootFile", - "index": 9 + "index": 8 } ] }, @@ -9799,7 +10411,7 @@ define(["require", "exports"], function (require, exports) { }, { "kind": "RootFile", - "index": 12 + "index": 11 } ] }, @@ -9880,26 +10492,70 @@ define(["require", "exports"], function (require, exports) { [ "externalThingNotPresent", { - "resolvedModule": { - "resolvedFileName": "./src/externalThingNotPresent.ts", - "extension": ".ts" - } + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] } ] ], "includeReasons": [ { "kind": "RootFile", - "index": 11 + "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", - "./src/fileNotFound.d.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -9911,9 +10567,21 @@ define(["require", "exports"], function (require, exports) { "./src/newFile.ts", "./src/types.ts" ], - "filesByName": { - "./src/filenotfound.ts": 0 - }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -9938,8 +10606,2533 @@ define(["require", "exports"], function (require, exports) { ] }, { - "resolvedModule": { - "resolvedFileName": "./src/externalThingNotPresent.ts", + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12296 +} + + + +Change:: Create external module file that could not be resolved +Input:: +//// [/src/project/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + + +Output:: +/lib/tsc --p src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.d.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.d.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/main.ts + + +//// [/src/project/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/src/project/src/anotherFileReusingResolution.js] file written with same contents +//// [/src/project/src/externalThingNotPresent.d.ts] +export declare function externalThing2(): number; + + +//// [/src/project/src/externalThingNotPresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); + + +//// [/src/project/src/main.d.ts] file written with same contents +//// [/src/project/src/main.js] file written with same contents +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16426931566-export declare function externalThing2(): number;\r\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-15062742831-export declare function something(): number;\r\n" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-13705775197-export declare function something2(): number;\r\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16426931566-export declare function externalThing2(): number;\r\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-4882119183-export {};\r\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-3405156953-export declare function foo(): number;\r\n" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/main.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10810 +} + + + +Change:: Write .ts file that takes preference over resolved .d.ts file +Input:: +//// [/src/project/src/externalThing.ts] +export function externalThing1() { return 10; } + + + +Output:: +/lib/tsc --p src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== +error TS5055: Cannot write file '/src/project/src/externalThing.d.ts' because it would overwrite input file. + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.d.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/externalThing.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/src/externalThing.ts + + +//// [/src/project/src/externalThing.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16426931566-export declare function externalThing2(): number;\r\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13126029071-export declare function externalThing1(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,6,4,5,3,2,9,12,11,10,14,13,16,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[33]}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-15062742831-export declare function something(): number;\r\n" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-13705775197-export declare function something2(): number;\r\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16426931566-export declare function externalThing2(): number;\r\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-4882119183-export {};\r\n" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }", + "signature": "-13126029071-export declare function externalThing1(): number;\r\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10608150606-interface SomeType {\r\n}\r\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-3515861877-/// \r\n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4157970454-declare function globalFoo(): number;\r\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-3405156953-export declare function foo(): number;\r\n" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "signature": "-4882119183-export {};\r\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/main.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11158 +} + + + +Change:: Delete tsbuildinfo file and do clean build +Input:: +//// [/src/project/tsconfig.tsbuildinfo] unlink + + +Output:: +/lib/tsc --p src/project +======== Resolving module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/filePresent.ts' exist - use it as a name resolution result. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThing.ts' exist - use it as a name resolution result. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +======== Resolving module './newFile' from '/src/project/src/main.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/src/project/src/newFile.ts' exist - use it as a name resolution result. +======== Module name './newFile' was successfully resolved to '/src/project/src/newFile.ts'. ======== +======== Resolving module './filePresent' from '/src/project/src/main.ts'. ======== +Resolution for module './filePresent' was found in cache from location '/src/project/src'. +======== Module name './filePresent' was successfully resolved to '/src/project/src/filePresent.ts'. ======== +======== Resolving module './fileNotFound' from '/src/project/src/main.ts'. ======== +Resolution for module './fileNotFound' was found in cache from location '/src/project/src'. +======== Module name './fileNotFound' was successfully resolved to '/src/project/src/fileNotFound.ts'. ======== +======== Resolving module 'externalThing' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThing' was found in cache from location '/src/project/src'. +======== Module name 'externalThing' was successfully resolved to '/src/project/src/externalThing.ts'. ======== +======== Resolving module 'externalThingNotPresent' from '/src/project/src/main.ts'. ======== +Resolution for module 'externalThingNotPresent' was found in cache from location '/src/project/src'. +======== Module name 'externalThingNotPresent' was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. ======== +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts + + +//// [/src/project/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/src/project/src/anotherFileReusingResolution.js] file written with same contents +//// [/src/project/src/externalThing.d.ts] +export declare function externalThing1(): number; + + +//// [/src/project/src/externalThing.js] file written with same contents +//// [/src/project/src/externalThingNotPresent.d.ts] file written with same contents +//// [/src/project/src/externalThingNotPresent.js] file written with same contents +//// [/src/project/src/fileNotFound.d.ts] file written with same contents +//// [/src/project/src/fileNotFound.js] file written with same contents +//// [/src/project/src/filePresent.d.ts] file written with same contents +//// [/src/project/src/filePresent.js] file written with same contents +//// [/src/project/src/fileWithRef.d.ts] file written with same contents +//// [/src/project/src/fileWithRef.js] file written with same contents +//// [/src/project/src/globalAnotherFileWithSameReferenes.d.ts] file written with same contents +//// [/src/project/src/globalAnotherFileWithSameReferenes.js] file written with same contents +//// [/src/project/src/globalFileNotFound.d.ts] file written with same contents +//// [/src/project/src/globalFileNotFound.js] file written with same contents +//// [/src/project/src/globalFilePresent.d.ts] file written with same contents +//// [/src/project/src/globalFilePresent.js] file written with same contents +//// [/src/project/src/globalMain.d.ts] file written with same contents +//// [/src/project/src/globalMain.js] file written with same contents +//// [/src/project/src/globalNewFile.d.ts] file written with same contents +//// [/src/project/src/globalNewFile.js] file written with same contents +//// [/src/project/src/main.d.ts] file written with same contents +//// [/src/project/src/main.js] file written with same contents +//// [/src/project/src/newFile.d.ts] file written with same contents +//// [/src/project/src/newFile.js] file written with same contents +//// [/src/project/src/types.d.ts] file written with same contents +//// [/src/project/src/types.js] file written with same contents +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-497034637-export function something2() { return 20; }","5618215488-export function externalThing1() { return 10; }","5318862050-export function externalThing2() { return 20; }","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","affectsGlobalScope":true},"4428918903-export function foo() { return 20; }","2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[30]}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }", + "signature": "5618215488-export function externalThing1() { return 10; }" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "signature": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/main.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", "extension": ".ts" } }, @@ -9948,52 +13141,96 @@ define(["require", "exports"], function (require, exports) { "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10630 + "size": 9534 } -Change:: Write .ts file that takes preference over resolved .d.ts file +Change:: Install another type and it is not picked by program Input:: -//// [/src/project/src/externalThing.ts] -export function externalThing1() { return 10; } +//// [/src/project/node_modules/@types/someType2/index.d.ts] +export function someType2(): number; + + + +Output:: +/lib/tsc --p src/project +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Completely +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts + +Semantic diagnostics in builder refreshed for:: + + + +Change:: Delete existing type and this will trigger new program so above new type becomes part of program +Input:: +//// [/src/project/node_modules/@types/someType] unlink Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. -Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.ts'. Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. -Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.d.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.ts'. Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. -error TS5055: Cannot write file '/src/project/src/externalThing.d.ts' because it would overwrite input file. - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.d.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +======== Resolving type reference directive 'someType2', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType2/package.json' does not exist. +File '/src/project/node_modules/@types/someType2/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType2/index.d.ts', result '/src/project/node_modules/@types/someType2/index.d.ts'. +======== Type reference directive 'someType2' was successfully resolved to '/src/project/node_modules/@types/someType2/index.d.ts', primary: true. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} Program structureReused: SafeModules Program files:: /lib/lib.d.ts /src/project/src/filePresent.ts -/src/project/src/externalThing.d.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.ts /src/project/src/externalThingNotPresent.ts /src/project/src/anotherFileReusingResolution.ts -/src/project/src/externalThing.ts -/src/project/src/fileNotFound.d.ts /src/project/src/types.ts /src/project/src/fileWithRef.ts /src/project/src/globalFilePresent.ts @@ -10003,23 +13240,14 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType2/index.d.ts Semantic diagnostics in builder refreshed for:: -/src/project/src/externalThing.ts +/src/project/node_modules/@types/someType2/index.d.ts -//// [/src/project/src/externalThing.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing1 = void 0; - function externalThing1() { return 10; } - exports.externalThing1 = externalThing1; -}); - - //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16426931566-export declare function externalThing2(): number;\r\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13126029071-export declare function externalThing1(): number;\r\n"},"-13705775197-export declare function something2(): number;\r\n",{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[8],[10,11],[10,11,13],[2,3,4,15]],"referencedMap":[[5,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,4,7,2,9,12,11,10,14,13,[16,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":22,"originalFileName":22,"path":7,"resolvedPath":7,"version":"-13705775197-export declare function something2(): number;\r\n","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[20,21,19,22,17,23,26,25,24,28,27,16,29,8],"filesByName":[[30,0]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":31,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[21,32]},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-497034637-export function something2() { return 20; }","5618215488-export function externalThing1() { return 10; }","5318862050-export function externalThing2() { return 20; }","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","affectsGlobalScope":true},"4428918903-export function foo() { return 20; }","2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType2",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[30]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -10027,11 +13255,10 @@ define(["require", "exports"], function (require, exports) { "fileNames": [ "../../lib/lib.d.ts", "./src/filepresent.ts", - "./src/externalthing.d.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/externalthing.ts", - "./src/filenotfound.d.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -10041,12 +13268,12 @@ define(["require", "exports"], function (require, exports) { "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype2/index.d.ts", "./src/filePresent.ts", - "./src/externalThing.d.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/externalThing.ts", - "./src/fileNotFound.d.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -10054,14 +13281,14 @@ define(["require", "exports"], function (require, exports) { "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/filenotfound.ts", - "./src/fileNotFound.ts", - "./src/externalThing.tsx" + "./node_modules/@types/someType2/index.d.ts", + "./node_modules/@types/someType2/package.json" ], "fileNamesList": [ [ "./src/filepresent.ts", - "./src/externalthing.d.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", "./src/externalthingnotpresent.ts" ], [ @@ -10078,7 +13305,8 @@ define(["require", "exports"], function (require, exports) { ], [ "./src/filepresent.ts", - "./src/externalthing.d.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] @@ -10091,69 +13319,69 @@ define(["require", "exports"], function (require, exports) { }, "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }", - "signature": "-15062742831-export declare function something(): number;\r\n" + "signature": "11598859296-export function something() { return 10; }" }, - "./src/externalthing.d.ts": { - "version": "5686005290-export function externalThing1(): number;", - "signature": "5686005290-export function externalThing1(): number;" + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }", + "signature": "5618215488-export function externalThing1() { return 10; }" }, "./src/externalthingnotpresent.ts": { "version": "5318862050-export function externalThing2() { return 20; }", - "signature": "-16426931566-export declare function externalThing2(): number;\r\n" + "signature": "5318862050-export function externalThing2() { return 20; }" }, "./src/anotherfilereusingresolution.ts": { "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", - "signature": "-4882119183-export {};\r\n" - }, - "./src/externalthing.ts": { - "version": "5618215488-export function externalThing1() { return 10; }", - "signature": "-13126029071-export declare function externalThing1(): number;\r\n" - }, - "./src/filenotfound.d.ts": { - "version": "-13705775197-export declare function something2(): number;\r\n", - "signature": "-13705775197-export declare function something2(): number;\r\n" + "signature": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", - "signature": "-10608150606-interface SomeType {\r\n}\r\n", + "signature": "-12575322908-interface SomeType {}", "affectsGlobalScope": true }, "./src/filewithref.ts": { "version": "-6085631553-/// ", - "signature": "-3515861877-/// \r\n" + "signature": "-6085631553-/// " }, "./src/globalfilepresent.ts": { "version": "-5627034801-function globalSomething() { return 10; }", - "signature": "-6032143744-declare function globalSomething(): number;\r\n", + "signature": "-5627034801-function globalSomething() { return 10; }", "affectsGlobalScope": true }, "./src/globalfilenotfound.ts": { "version": "-6310824062-function globalSomething2() { return 20; }", - "signature": "-7753781454-declare function globalSomething2(): number;\r\n", + "signature": "-6310824062-function globalSomething2() { return 20; }", "affectsGlobalScope": true }, "./src/globalanotherfilewithsamereferenes.ts": { "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", - "signature": "-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n", + "signature": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", "affectsGlobalScope": true }, "./src/globalnewfile.ts": { "version": "4916490342-function globalFoo() { return 20; }", - "signature": "4157970454-declare function globalFoo(): number;\r\n", + "signature": "4916490342-function globalFoo() { return 20; }", "affectsGlobalScope": true }, "./src/globalmain.ts": { "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", - "signature": "3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n", + "signature": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", "affectsGlobalScope": true }, "./src/newfile.ts": { "version": "4428918903-export function foo() { return 20; }", - "signature": "-3405156953-export declare function foo(): number;\r\n" + "signature": "4428918903-export function foo() { return 20; }" }, "./src/main.ts": { "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", - "signature": "-4882119183-export {};\r\n" + "signature": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + }, + "./node_modules/@types/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): number;", + "signature": "5420646020-export function someType2(): number;" } }, "options": { @@ -10167,7 +13395,8 @@ define(["require", "exports"], function (require, exports) { "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", - "./src/externalthing.d.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", "./src/externalthingnotpresent.ts" ], "./src/filewithref.ts": [ @@ -10184,30 +13413,46 @@ define(["require", "exports"], function (require, exports) { ], "./src/main.ts": [ "./src/filepresent.ts", - "./src/externalthing.d.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] }, - "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - [ - "./src/anotherfilereusingresolution.ts", - [ - { - "file": "./src/anotherfilereusingresolution.ts", - "start": 70, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], - "./src/externalthing.d.ts", + "./node_modules/@types/sometype2/index.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", "./src/externalthingnotpresent.ts", - "./src/filenotfound.d.ts", + "./src/filenotfound.ts", "./src/filepresent.ts", "./src/filewithref.ts", "./src/globalanotherfilewithsamereferenes.ts", @@ -10215,19 +13460,7 @@ define(["require", "exports"], function (require, exports) { "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - [ - "./src/main.ts", - [ - { - "file": "./src/main.ts", - "start": 159, - "length": 16, - "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", - "category": 1, - "code": 2792 - } - ] - ], + "./src/main.ts", "./src/newfile.ts", "./src/types.ts" ], @@ -10277,11 +13510,35 @@ define(["require", "exports"], function (require, exports) { ] }, { - "fileName": "./src/externalThing.d.ts", - "originalFileName": "./src/externalThing.d.ts", - "path": "./src/externalthing.d.ts", - "resolvedPath": "./src/externalthing.d.ts", - "version": "5686005290-export function externalThing1(): number;", + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", "flags": 0, "includeReasons": [ { @@ -10289,6 +13546,10 @@ define(["require", "exports"], function (require, exports) { "file": "./src/anotherfilereusingresolution.ts", "index": 2 }, + { + "kind": "RootFile", + "index": 1 + }, { "kind": "Import", "file": "./src/main.ts", @@ -10368,13 +13629,9 @@ define(["require", "exports"], function (require, exports) { "externalThing", { "resolvedModule": { - "resolvedFileName": "./src/externalThing.d.ts", - "extension": ".d.ts" - }, - "failedLookupLocations": [ - "./src/externalThing.ts", - "./src/externalThing.tsx" - ] + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } } ], [ @@ -10394,34 +13651,6 @@ define(["require", "exports"], function (require, exports) { } ] }, - { - "fileName": "./src/externalThing.ts", - "originalFileName": "./src/externalThing.ts", - "path": "./src/externalthing.ts", - "resolvedPath": "./src/externalthing.ts", - "version": "5618215488-export function externalThing1() { return 10; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, - { - "fileName": "./src/fileNotFound.d.ts", - "originalFileName": "./src/fileNotFound.d.ts", - "path": "./src/filenotfound.d.ts", - "resolvedPath": "./src/filenotfound.d.ts", - "version": "-13705775197-export declare function something2(): number;\r\n", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 3 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -10646,13 +13875,9 @@ define(["require", "exports"], function (require, exports) { "externalThing", { "resolvedModule": { - "resolvedFileName": "./src/externalThing.d.ts", - "extension": ".d.ts" - }, - "failedLookupLocations": [ - "./src/externalThing.ts", - "./src/externalThing.tsx" - ] + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } } ], [ @@ -10671,13 +13896,28 @@ define(["require", "exports"], function (require, exports) { "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType2/index.d.ts", + "originalFileName": "./node_modules/@types/someType2/index.d.ts", + "path": "./node_modules/@types/sometype2/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype2/index.d.ts", + "version": "5420646020-export function someType2(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType2" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/externalThing.ts", "./src/externalThingNotPresent.ts", - "./src/fileNotFound.d.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -10689,9 +13929,21 @@ define(["require", "exports"], function (require, exports) { "./src/newFile.ts", "./src/types.ts" ], - "filesByName": { - "./src/filenotfound.ts": 0 - }, + "resolvedTypeReferenceDirectives": [ + [ + "someType2", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -10707,13 +13959,9 @@ define(["require", "exports"], function (require, exports) { }, { "resolvedModule": { - "resolvedFileName": "./src/externalThing.d.ts", - "extension": ".d.ts" - }, - "failedLookupLocations": [ - "./src/externalThing.ts", - "./src/externalThing.tsx" - ] + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -10726,11 +13974,21 @@ define(["require", "exports"], function (require, exports) { "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10978 + "size": 9541 } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index f908c1d358863..6234e909ab916 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -39,6 +39,9 @@ function globalSomething() { return 10; } //// [/user/username/projects/myproject/src/externalThing.d.ts] export function externalThing1(): number; +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] +export function someType(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -95,12 +98,12 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:48 AM] Starting compilation in watch mode... +[12:00:56 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file @@ -150,7 +153,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -180,6 +183,13 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations @@ -218,7 +228,7 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:00:58 AM] Found 6 errors. Watching for file changes. +[12:01:06 AM] Found 6 errors. Watching for file changes. DirectoryWatcher:: Triggered with /user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations @@ -242,6 +252,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -266,6 +277,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -289,7 +302,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -336,6 +349,7 @@ exitCode:: ExitStatus.undefined "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -344,6 +358,7 @@ exitCode:: ExitStatus.undefined "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -398,7 +413,8 @@ exitCode:: ExitStatus.undefined "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -448,6 +464,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -897,6 +916,21 @@ exitCode:: ExitStatus.undefined "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -913,6 +947,21 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1016,12 +1065,22 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10031 + "size": 10664 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1086,7 +1145,7 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:01:05 AM] File change detected. Starting incremental compilation... +[12:01:13 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: @@ -1122,7 +1181,7 @@ CreatingProgramWith:: 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:15 AM] Found 6 errors. Watching for file changes. +[12:01:23 AM] Found 6 errors. Watching for file changes. @@ -1140,6 +1199,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -1164,6 +1224,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -1213,7 +1275,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1260,6 +1322,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -1268,6 +1331,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1322,7 +1386,8 @@ define("src/main", ["require", "exports"], function (require, exports) { "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -1372,6 +1437,9 @@ define("src/main", ["require", "exports"], function (require, exports) { }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -1821,6 +1889,21 @@ define("src/main", ["require", "exports"], function (require, exports) { "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -1837,6 +1920,21 @@ define("src/main", ["require", "exports"], function (require, exports) { "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1940,12 +2038,22 @@ define("src/main", ["require", "exports"], function (require, exports) { "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10065 + "size": 10698 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -2024,7 +2132,7 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:01:28 AM] File change detected. Starting incremental compilation... +[12:01:36 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -2041,6 +2149,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2071,7 +2180,7 @@ Reusing resolution of module 'externalThingNotPresent' from '/user/username/proj 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:38 AM] Found 6 errors. Watching for file changes. +[12:01:46 AM] Found 6 errors. Watching for file changes. @@ -2090,6 +2199,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -2114,6 +2224,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -2181,7 +2293,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2230,6 +2342,7 @@ declare module "src/main" { } "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -2239,6 +2352,7 @@ declare module "src/main" { } "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -2293,7 +2407,8 @@ declare module "src/main" { } "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -2352,6 +2467,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -2822,6 +2940,21 @@ declare module "src/main" { } "index": 8 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -2839,6 +2972,21 @@ declare module "src/main" { } "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2942,12 +3090,22 @@ declare module "src/main" { } "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10603 + "size": 11236 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -3021,7 +3179,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:47 AM] File change detected. Starting incremental compilation... +[12:01:55 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -3038,6 +3196,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3058,7 +3217,7 @@ Reusing resolution of module 'externalThingNotPresent' from '/user/username/proj 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:57 AM] Found 4 errors. Watching for file changes. +[12:02:05 AM] Found 4 errors. Watching for file changes. @@ -3078,6 +3237,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -3102,6 +3262,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -3171,7 +3333,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -3222,6 +3384,7 @@ declare module "src/main" { } "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -3231,6 +3394,7 @@ declare module "src/main" { } "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -3285,7 +3449,8 @@ declare module "src/main" { } "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -3348,6 +3513,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -3842,6 +4010,21 @@ declare module "src/main" { } "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -3857,6 +4040,21 @@ declare module "src/main" { } "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -3934,12 +4132,22 @@ declare module "src/main" { } "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10636 + "size": 11269 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -4012,7 +4220,7 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:02:06 AM] File change detected. Starting incremental compilation... +[12:02:14 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -4044,7 +4252,7 @@ Reusing resolution of module 'externalThingNotPresent' from '/user/username/proj 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:16 AM] Found 4 errors. Watching for file changes. +[12:02:24 AM] Found 4 errors. Watching for file changes. @@ -4064,6 +4272,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -4088,6 +4297,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -4144,7 +4355,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4195,6 +4406,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -4204,6 +4416,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -4258,7 +4471,8 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -4321,6 +4535,9 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, "./src/main.ts": { "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -4815,6 +5032,21 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -4830,6 +5062,21 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -4907,12 +5154,22 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10660 + "size": 11293 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -4995,7 +5252,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:02:27 AM] File change detected. Starting incremental compilation... +[12:02:35 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -5016,6 +5273,7 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -5036,7 +5294,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.t 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:37 AM] Found 4 errors. Watching for file changes. +[12:02:45 AM] Found 4 errors. Watching for file changes. @@ -5057,6 +5315,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -5081,6 +5340,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -5163,7 +5424,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -5216,6 +5477,7 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -5226,6 +5488,7 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -5280,7 +5543,8 @@ declare module "src/main" { } "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -5351,6 +5615,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -5878,6 +6145,21 @@ declare module "src/main" { } "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -5894,6 +6176,21 @@ declare module "src/main" { } "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -5977,12 +6274,22 @@ declare module "src/main" { } "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11189 + "size": 11822 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -6066,7 +6373,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotF Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update -[12:02:46 AM] File change detected. Starting incremental compilation... +[12:02:54 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -6086,6 +6393,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 4 import { externalThing2 } from "externalThingNotPresent"; @@ -6096,7 +6404,7 @@ Reusing resolution of module 'externalThingNotPresent' from '/user/username/proj 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:56 AM] Found 2 errors. Watching for file changes. +[12:03:04 AM] Found 2 errors. Watching for file changes. @@ -6118,6 +6426,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -6142,6 +6451,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -6236,7 +6547,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -6291,6 +6602,7 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/externalThing.d.ts", @@ -6302,6 +6614,7 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", "./src/externalThing.tsx", "./src/externalThingNotPresent.ts", @@ -6351,7 +6664,8 @@ declare module "src/main" { } "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -6427,6 +6741,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -6974,6 +7291,21 @@ declare module "src/main" { } "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -6991,6 +7323,21 @@ declare module "src/main" { } "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -7071,12 +7418,22 @@ declare module "src/main" { } "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11497 + "size": 12130 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -7170,7 +7527,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:03:04 AM] File change detected. Starting incremental compilation... +[12:03:12 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -7193,6 +7550,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -7214,7 +7572,7 @@ FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFo 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:03:14 AM] Found 4 errors. Watching for file changes. +[12:03:22 AM] Found 4 errors. Watching for file changes. @@ -7235,6 +7593,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -7259,6 +7618,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -7341,7 +7702,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -7394,6 +7755,7 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -7404,6 +7766,7 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -7458,7 +7821,8 @@ declare module "src/main" { } "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -7529,6 +7893,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -8056,6 +8423,21 @@ declare module "src/main" { } "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -8072,6 +8454,21 @@ declare module "src/main" { } "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -8155,12 +8552,22 @@ declare module "src/main" { } "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11189 + "size": 11822 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -8229,67 +8636,64 @@ declare module "src/main" { } ====================================================================== -Change:: Create external module file that could not be resolved +Change:: Write file that could not be resolved Input:: -//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] -export function externalThing2() { return 20; } +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update -[12:03:23 AM] File change detected. Starting incremental compilation... +[12:03:31 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. -Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. -======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. -======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. -Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:03:33 AM] Found 2 errors. Watching for file changes. +[12:03:41 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts -/user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -8300,6 +8704,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -8324,6 +8729,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -8332,15 +8739,19 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} -/user/username/projects/myproject/src/externalthingnotpresent.ts: - {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -8354,12 +8765,12 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); -define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { +define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - exports.externalThing2 = void 0; - function externalThing2() { return 20; } - exports.externalThing2 = externalThing2; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; }); define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { "use strict"; @@ -8396,8 +8807,8 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, declare module "src/filePresent" { export function something(): number; } -declare module "src/externalThingNotPresent" { - export function externalThing2(): number; +declare module "src/fileNotFound" { + export function something2(): number; } declare module "src/anotherFileReusingResolution" { } interface SomeType { @@ -8414,7 +8825,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1562,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":573,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -8422,7 +8833,7 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", - "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", @@ -8438,7 +8849,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1562, + "end": 1535, "kind": "text" } ] @@ -8447,7 +8858,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 573, + "end": 558, "kind": "text" } ] @@ -8457,8 +8868,8 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -8469,9 +8880,10 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -8480,57 +8892,4216 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", - "./src/externalThing.tsx" - ], - "fileNamesList": [ - [ - "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" - ], - [ - "./src/types.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalnewfile.ts" - ], - [ - "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", - "./src/newfile.ts" - ] - ], - "fileInfos": { - "../../../../a/lib/lib.d.ts": { - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true - }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }" - }, - "./src/externalthing.d.ts": { - "version": "5686005290-export function externalThing1(): number;" - }, - "./src/externalthingnotpresent.ts": { - "version": "5318862050-export function externalThing2() { return 20; }" - }, - "./src/anotherfilereusingresolution.ts": { - "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" - }, - "./src/types.ts": { + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12130 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1535) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-558) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +[12:03:50 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +[12:04:00 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1807, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 653, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10273 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1807) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-653) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Write .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] +export function externalThing1() { return 10; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:04:09 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +[12:04:19 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2069,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":738,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[33]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 2069, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 738, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10582 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-2069) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-738) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Delete .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:04:27 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +[12:04:37 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1807, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 653, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10273 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1807) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-653) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Install another type picked up by program + +Input:: +//// [/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts] +export function someType2(): number; + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update +Scheduling invalidateFailedLookup, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +[12:04:48 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Resolving type reference directive 'someType2', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType2/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts'. +======== Type reference directive 'someType2' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts', primary: true. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts 250 undefined Source file +[12:04:58 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts +/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype2/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] file written with same contents +//// [/user/username/projects/myproject/outFile.d.ts] file written with same contents +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType2/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":30,"originalFileName":30,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,19,18,23,26,25,24,28,27,15,29,7],"resolvedTypeReferenceDirectives":[["someType",6],["someType2",7]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":30,"isExternalLibraryImport":true},"failedLookupLocations":[34]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1807, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 653, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./node_modules/@types/sometype2/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./node_modules/@types/someType2/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json", + "./node_modules/@types/someType2/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "affectsGlobalScope": true }, @@ -8562,6 +13133,12 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + }, + "./node_modules/@types/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): number;" } }, "options": { @@ -8578,6 +13155,7 @@ declare module "src/main" { } "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], @@ -8595,6 +13173,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" @@ -8628,7 +13207,36 @@ declare module "src/main" { } { "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", - "index": 0 + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 }, { "kind": "RootFile", @@ -8637,12 +13245,7 @@ declare module "src/main" { } { "kind": "Import", "file": "./src/main.ts", - "index": 1 - }, - { - "kind": "Import", - "file": "./src/main.ts", - "index": 2 + "index": 3 } ] }, @@ -8732,13 +13335,10 @@ declare module "src/main" { } [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ], [ @@ -8786,7 +13386,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 12 + "index": 13 } ] }, @@ -8803,7 +13403,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -8822,7 +13422,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 }, { "kind": "ReferenceFile", @@ -8846,7 +13446,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -8869,7 +13469,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -8888,7 +13488,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -8907,7 +13507,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -8926,7 +13526,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -8985,13 +13585,10 @@ declare module "src/main" { } [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ], [ @@ -9020,15 +13617,46 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 10 + "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + }, + { + "fileName": "./node_modules/@types/someType2/index.d.ts", + "originalFileName": "./node_modules/@types/someType2/index.d.ts", + "path": "./node_modules/@types/sometype2/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype2/index.d.ts", + "version": "5420646020-export function someType2(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType2" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -9040,6 +13668,34 @@ declare module "src/main" { } "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ], + [ + "someType2", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -9048,13 +13704,10 @@ declare module "src/main" { } } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -9077,146 +13730,87 @@ declare module "src/main" { } "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 9333 -} - -//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/myproject/outFile.js ----------------------------------------------------------------------- -text: (0-1562) -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing2 = void 0; - function externalThing2() { return 20; } - exports.externalThing2 = externalThing2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - -====================================================================== -====================================================================== -File:: /user/username/projects/myproject/outFile.d.ts ----------------------------------------------------------------------- -text: (0-573) -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/externalThingNotPresent" { - export function externalThing2(): number; -} -declare module "src/anotherFileReusingResolution" { } -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; + "size": 10877 } -declare module "src/main" { } - -====================================================================== +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] file written with same contents -Change:: Write .ts file that takes preference over resolved .d.ts file +Change:: Delete existing type picked up by program Input:: -//// [/user/username/projects/myproject/src/externalThing.ts] -export function externalThing1() { return 10; } - +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] deleted Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file +Scheduling update +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Scheduling update -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:03:42 AM] File change detected. Starting incremental compilation... +Scheduling invalidateFailedLookup, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +[12:05:07 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -[12:03:52 AM] Found 2 errors. Watching for file changes. +Reusing resolution of type reference directive 'someType2' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts'. +[12:05:17 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/externalThing.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -9226,6 +13820,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts No cached semantic diagnostics in the builder:: @@ -9256,103 +13851,29 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} -/user/username/projects/myproject/src/newfile.ts: - {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} -/user/username/projects/myproject/src/externalthingnotpresent.ts: - {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} -/user/username/projects/myproject/src/externalthing.ts: - {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} - -FsWatches:: - -FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - -exitCode:: ExitStatus.undefined - -//// [/user/username/projects/myproject/outFile.js] -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing2 = void 0; - function externalThing2() { return 20; } - exports.externalThing2 = externalThing2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -define("src/externalThing", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing1 = void 0; - function externalThing1() { return 10; } - exports.externalThing1 = externalThing1; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype2/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts","pollingInterval":250} +FsWatches:: -//// [/user/username/projects/myproject/outFile.d.ts] -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/externalThingNotPresent" { - export function externalThing2(): number; -} -declare module "src/anotherFileReusingResolution" { } -declare module "src/externalThing" { - export function externalThing1(): number; -} -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/outFile.js] file written with same contents +//// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1824,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":658,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":3,"file":15,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,20,18,16,21,24,23,22,26,25,15,27,7],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"failedLookupLocations":[28,29,30,31,32]},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[20,33]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType2",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -9360,9 +13881,9 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/externalThing.ts", "./src/types.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -9377,7 +13898,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1824, + "end": 1807, "kind": "text" } ] @@ -9386,7 +13907,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 658, + "end": 653, "kind": "text" } ] @@ -9396,10 +13917,10 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/externalthing.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -9409,11 +13930,12 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype2/index.d.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/externalThing.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -9421,16 +13943,15 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx", - "./src/externalThing.tsx" + "./node_modules/@types/someType2/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType2/package.json" ], "fileNamesList": [ [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], @@ -9448,6 +13969,7 @@ declare module "src/main" { } ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" @@ -9461,6 +13983,9 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, "./src/externalthing.d.ts": { "version": "5686005290-export function externalThing1(): number;" }, @@ -9470,9 +13995,6 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": { "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, - "./src/externalthing.ts": { - "version": "5618215488-export function externalThing1() { return 10; }" - }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "affectsGlobalScope": true @@ -9505,6 +14027,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): number;" } }, "options": { @@ -9521,6 +14046,7 @@ declare module "src/main" { } "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], @@ -9538,6 +14064,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" @@ -9575,7 +14102,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 3 + "index": 4 }, { "kind": "Import", @@ -9589,6 +14116,30 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/externalThing.d.ts", "originalFileName": "./src/externalThing.d.ts", @@ -9602,6 +14153,10 @@ declare module "src/main" { } "file": "./src/anotherfilereusingresolution.ts", "index": 2 }, + { + "kind": "RootFile", + "index": 1 + }, { "kind": "Import", "file": "./src/main.ts", @@ -9671,13 +14226,10 @@ declare module "src/main" { } [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ], [ @@ -9710,20 +14262,6 @@ declare module "src/main" { } } ] }, - { - "fileName": "./src/externalThing.ts", - "originalFileName": "./src/externalThing.ts", - "path": "./src/externalthing.ts", - "resolvedPath": "./src/externalthing.ts", - "version": "5618215488-export function externalThing1() { return 10; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -9739,7 +14277,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 12 + "index": 13 } ] }, @@ -9756,7 +14294,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -9775,7 +14313,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 }, { "kind": "ReferenceFile", @@ -9799,7 +14337,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -9822,7 +14360,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -9841,7 +14379,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -9860,7 +14398,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -9879,7 +14417,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -9938,13 +14476,10 @@ declare module "src/main" { } [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ], [ @@ -9973,15 +14508,31 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 10 + "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType2/index.d.ts", + "originalFileName": "./node_modules/@types/someType2/index.d.ts", + "path": "./node_modules/@types/sometype2/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype2/index.d.ts", + "version": "5420646020-export function someType2(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType2" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", - "./src/externalThing.ts", + "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -9993,6 +14544,21 @@ declare module "src/main" { } "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType2", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -10001,13 +14567,10 @@ declare module "src/main" { } } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -10030,96 +14593,22 @@ declare module "src/main" { } "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 9642 -} - -//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/myproject/outFile.js ----------------------------------------------------------------------- -text: (0-1824) -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing2 = void 0; - function externalThing2() { return 20; } - exports.externalThing2 = externalThing2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -define("src/externalThing", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing1 = void 0; - function externalThing1() { return 10; } - exports.externalThing1 = externalThing1; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - -====================================================================== -====================================================================== -File:: /user/username/projects/myproject/outFile.d.ts ----------------------------------------------------------------------- -text: (0-658) -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/externalThingNotPresent" { - export function externalThing2(): number; -} -declare module "src/anotherFileReusingResolution" { } -declare module "src/externalThing" { - export function externalThing1(): number; -} -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; + "size": 10280 } -declare module "src/main" { } - -====================================================================== +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js index 891e22f6b826b..bb3f4c1fab6a5 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -39,6 +39,9 @@ function globalSomething() { return 10; } //// [/user/username/projects/myproject/src/externalThing.d.ts] export function externalThing1(): number; +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] +export function someType(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -138,12 +141,12 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5]},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:01:16 AM] Starting compilation in watch mode... +[12:01:24 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file @@ -193,7 +196,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -223,6 +226,13 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations @@ -261,7 +271,7 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:20 AM] Found 6 errors. Watching for file changes. +[12:01:28 AM] Found 6 errors. Watching for file changes. DirectoryWatcher:: Triggered with /user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations @@ -283,6 +293,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: @@ -307,6 +318,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -328,7 +341,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -344,6 +357,7 @@ exitCode:: ExitStatus.undefined "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -352,6 +366,7 @@ exitCode:: ExitStatus.undefined "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -406,7 +421,8 @@ exitCode:: ExitStatus.undefined "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -466,6 +482,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -522,6 +542,7 @@ exitCode:: ExitStatus.undefined }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -986,6 +1007,21 @@ exitCode:: ExitStatus.undefined "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -1002,6 +1038,21 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1105,12 +1156,22 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10456 + "size": 11062 } @@ -1128,7 +1189,7 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:01:25 AM] File change detected. Starting incremental compilation... +[12:01:33 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: @@ -1164,7 +1225,7 @@ CreatingProgramWith:: 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:17 AM] Found 6 errors. Watching for file changes. +[12:02:25 AM] Found 6 errors. Watching for file changes. @@ -1182,6 +1243,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts @@ -1194,6 +1256,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -1216,6 +1279,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -1259,7 +1324,7 @@ globalSomething(); //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1275,6 +1340,7 @@ globalSomething(); "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -1283,6 +1349,7 @@ globalSomething(); "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1337,7 +1404,8 @@ globalSomething(); "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -1397,6 +1465,10 @@ globalSomething(); "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -1433,6 +1505,7 @@ globalSomething(); "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -1897,6 +1970,21 @@ globalSomething(); "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -1913,6 +2001,21 @@ globalSomething(); "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2016,12 +2119,22 @@ globalSomething(); "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11109 + "size": 11715 } @@ -2052,7 +2165,7 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:02:27 AM] File change detected. Starting incremental compilation... +[12:02:35 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -2069,6 +2182,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -2109,7 +2223,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:03:23 AM] Found 6 errors. Watching for file changes. +[12:03:31 AM] Found 6 errors. Watching for file changes. @@ -2128,6 +2242,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts @@ -2141,6 +2256,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -2163,6 +2279,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -2215,7 +2333,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2232,6 +2350,7 @@ declare function globalMain(): void; "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -2241,6 +2360,7 @@ declare function globalMain(): void; "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -2295,7 +2415,8 @@ declare function globalMain(): void; "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -2365,6 +2486,10 @@ declare function globalMain(): void; "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -2402,6 +2527,7 @@ declare function globalMain(): void; "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -2887,6 +3013,21 @@ declare function globalMain(): void; "index": 8 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -2904,6 +3045,21 @@ declare function globalMain(): void; "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -3007,12 +3163,22 @@ declare function globalMain(): void; "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11717 + "size": 12323 } //// [/user/username/projects/myproject/src/globalNewFile.js] @@ -3042,7 +3208,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:03:29 AM] File change detected. Starting incremental compilation... +[12:03:37 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -3059,6 +3225,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -3089,7 +3256,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:04:31 AM] Found 4 errors. Watching for file changes. +[12:04:39 AM] Found 4 errors. Watching for file changes. @@ -3109,6 +3276,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts @@ -3123,6 +3291,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -3145,6 +3314,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -3195,7 +3366,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3213,6 +3384,7 @@ declare function globalMain(): void; "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -3222,6 +3394,7 @@ declare function globalMain(): void; "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -3276,7 +3449,8 @@ declare function globalMain(): void; "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -3351,6 +3525,10 @@ declare function globalMain(): void; "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -3388,6 +3566,7 @@ declare function globalMain(): void; "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -3898,6 +4077,21 @@ declare function globalMain(): void; "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -3913,6 +4107,21 @@ declare function globalMain(): void; "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -3990,12 +4199,22 @@ declare function globalMain(): void; "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11883 + "size": 12489 } //// [/user/username/projects/myproject/src/globalNewFile.js] file written with same contents @@ -4024,7 +4243,7 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:04:37 AM] File change detected. Starting incremental compilation... +[12:04:45 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -4056,7 +4275,7 @@ Reusing resolution of module 'externalThingNotPresent' from '/user/username/proj 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:04:47 AM] Found 4 errors. Watching for file changes. +[12:04:55 AM] Found 4 errors. Watching for file changes. @@ -4076,6 +4295,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/main.ts @@ -4101,6 +4321,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -4133,7 +4355,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4151,6 +4373,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -4160,6 +4383,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -4214,7 +4438,8 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -4289,6 +4514,10 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/main.ts": { "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -4326,6 +4555,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -4836,6 +5066,21 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -4851,6 +5096,21 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -4928,12 +5188,22 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11907 + "size": 12513 } @@ -4961,7 +5231,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:04:55 AM] File change detected. Starting incremental compilation... +[12:05:03 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -4982,6 +5252,7 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -5012,7 +5283,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:05:09 AM] Found 4 errors. Watching for file changes. +[12:05:17 AM] Found 4 errors. Watching for file changes. @@ -5033,6 +5304,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/newFile.ts @@ -5059,6 +5331,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -5086,7 +5360,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -5105,6 +5379,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -5115,6 +5390,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -5169,7 +5445,8 @@ exitCode:: ExitStatus.undefined "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -5253,6 +5530,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -5291,6 +5572,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -5834,6 +6116,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -5850,6 +6147,21 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -5933,12 +6245,22 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 12469 + "size": 13075 } //// [/user/username/projects/myproject/src/newFile.js] @@ -5971,7 +6293,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotF Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update -[12:05:15 AM] File change detected. Starting incremental compilation... +[12:05:23 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -5991,6 +6313,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -6011,7 +6334,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:05:35 AM] Found 2 errors. Watching for file changes. +[12:05:43 AM] Found 2 errors. Watching for file changes. @@ -6033,6 +6356,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts @@ -6060,6 +6384,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -6091,7 +6417,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -6111,6 +6437,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/externalThing.d.ts", @@ -6122,6 +6449,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", "./src/externalThing.tsx", "./src/externalThingNotPresent.ts", @@ -6171,7 +6499,8 @@ exitCode:: ExitStatus.undefined "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -6261,6 +6590,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -6301,6 +6634,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -6847,6 +7181,21 @@ exitCode:: ExitStatus.undefined "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -6864,6 +7213,21 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -6944,12 +7308,22 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 12332 + "size": 12938 } //// [/user/username/projects/myproject/src/fileNotFound.js] @@ -6982,7 +7356,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:05:40 AM] File change detected. Starting incremental compilation... +[12:05:48 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -7004,6 +7378,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -7015,7 +7390,7 @@ FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFo 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:05:56 AM] Found 2 errors. Watching for file changes. +[12:06:04 AM] Found 2 errors. Watching for file changes. @@ -7037,6 +7412,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.d.ts @@ -7064,6 +7440,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -7095,7 +7473,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"failedLookupLocations":[32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[80]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -7115,6 +7493,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.d.ts", "./src/externalThing.d.ts", @@ -7126,6 +7505,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/externalThing.ts", @@ -7177,7 +7557,8 @@ exitCode:: ExitStatus.undefined "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -7267,6 +7648,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -7307,6 +7692,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -7861,6 +8247,21 @@ exitCode:: ExitStatus.undefined "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -7878,6 +8279,21 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -7962,67 +8378,65 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 12344 + "size": 12950 } -Change:: Create external module file that could not be resolved +Change:: Write file that could not be resolved Input:: -//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] -export function externalThing2() { return 20; } +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Scheduling update -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update -[12:06:02 AM] File change detected. Starting incremental compilation... +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:06:10 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. -======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. -======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. -Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThingNotPresent.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/externalThingNotPresent.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:06:22 AM] Found 0 errors. Watching for file changes. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +error TS5055: Cannot write file '/user/username/projects/myproject/src/fileNotFound.d.ts' because it would overwrite input file. + +[12:06:17 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -8030,8 +8444,8 @@ Program files:: /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.d.ts /user/username/projects/myproject/src/externalThing.d.ts -/user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -8041,11 +8455,10 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/src/externalThingNotPresent.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/src/fileNotFound.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -8068,6 +8481,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -8078,25 +8493,26 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.d.ts: {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} -/user/username/projects/myproject/src/externalthingnotpresent.ts: - {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents -//// [/user/username/projects/myproject/src/main.js] file written with same contents -//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[20,18,19,17,16,21,24,23,22,26,25,15,27,7],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,8,11,10,9,13,12,[15,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":2}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[20,19,21,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[21,30]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -8106,8 +8522,8 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/filenotfound.d.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -8117,11 +8533,12 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.d.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -8129,41 +8546,3811 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/fileNotFound.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.tsx", "./src/externalThing.ts", - "./src/externalThing.tsx" - ], - "fileNamesList": [ - [ - "./src/filepresent.ts", - "./src/filenotfound.d.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" - ], - [ - "./src/types.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalnewfile.ts" - ], - [ - "./src/filepresent.ts", - "./src/filenotfound.d.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", - "./src/newfile.ts" - ] - ], - "fileInfos": { - "../../../../a/lib/lib.d.ts": { - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 13283 +} + +//// [/user/username/projects/myproject/src/fileNotFound.js] file written with same contents + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +[12:06:23 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThingNotPresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/externalThingNotPresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +error TS5055: Cannot write file '/user/username/projects/myproject/src/fileNotFound.d.ts' because it would overwrite input file. + +[12:06:43 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,23,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[33,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.d.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/fileNotFound.tsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/externalthing.d.ts", + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10940 +} + +//// [/user/username/projects/myproject/src/externalThingNotPresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); + + +//// [/user/username/projects/myproject/src/externalThingNotPresent.d.ts] +export declare function externalThing2(): number; + + + +Change:: Write .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] +export function externalThing1() { return 10; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:06:49 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThing.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +error TS5055: Cannot write file '/user/username/projects/myproject/src/externalThing.d.ts' because it would overwrite input file. + +error TS5055: Cannot write file '/user/username/projects/myproject/src/fileNotFound.d.ts' because it would overwrite input file. + +[12:06:55 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[9],[11,12],[11,12,14],[2,3,4,5,16]],"referencedMap":[[6,1],[10,2],[13,3],[15,4],[17,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,18,4,3,2,10,13,12,11,15,14,16,9],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":19,"originalFileName":19,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":17,"index":1},{"kind":3,"file":17,"index":2}]},{"fileName":20,"originalFileName":20,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":17,"index":3}]},{"fileName":21,"originalFileName":21,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":17,"index":4}]},{"fileName":22,"originalFileName":22,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":17,"index":5}]},{"fileName":23,"originalFileName":23,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":24,"originalFileName":24,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":25,"originalFileName":25,"path":8,"resolvedPath":8,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":13}]},{"fileName":26,"originalFileName":26,"path":10,"resolvedPath":10,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":27,"originalFileName":27,"path":11,"resolvedPath":11,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":8},{"kind":4,"file":15,"index":1}]},{"fileName":28,"originalFileName":28,"path":12,"resolvedPath":12,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":1},{"kind":0,"index":7},{"kind":4,"file":15,"index":2}]},{"fileName":29,"originalFileName":29,"path":13,"resolvedPath":13,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":30,"originalFileName":30,"path":14,"resolvedPath":14,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":15,"index":0},{"kind":0,"index":10}]},{"fileName":31,"originalFileName":31,"path":15,"resolvedPath":15,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":32,"originalFileName":32,"path":16,"resolvedPath":16,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":17,"index":0},{"kind":0,"index":12}]},{"fileName":17,"originalFileName":17,"path":17,"resolvedPath":17,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":33,"originalFileName":33,"path":18,"resolvedPath":18,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[23,24,22,25,19,26,29,28,27,31,30,17,32,9],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[25,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".d.ts"},"failedLookupLocations":[24,35]},{"resolvedModule":{"resolvedFileName":22,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":32,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":33,"isExternalLibraryImport":true},"failedLookupLocations":[36]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", + "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.d.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/fileNotFound.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/fileNotFound.tsx", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }", + "signature": "-13282660348-export declare function externalThing1(): number;\n" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/externalthing.d.ts", + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11286 +} + +//// [/user/username/projects/myproject/src/externalThing.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); + + + +Change:: Delete .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:07:00 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +error TS5055: Cannot write file '/user/username/projects/myproject/src/fileNotFound.d.ts' because it would overwrite input file. + +[12:07:04 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,23,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[33,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.d.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/fileNotFound.tsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/externalthing.d.ts", + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10940 +} + + +Change:: Install another type picked up by program + +Input:: +//// [/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts] +export function someType2(): number; + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update +Scheduling invalidateFailedLookup, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +[12:07:12 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Resolving type reference directive 'someType2', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType2/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts'. +======== Type reference directive 'someType2' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts', primary: true. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts 250 undefined Source file +error TS5055: Cannot write file '/user/username/projects/myproject/src/fileNotFound.d.ts' because it would overwrite input file. + +[12:07:16 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts +/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype2/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType2/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;","5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":19,"originalFileName":19,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":20,"originalFileName":20,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":21,"originalFileName":21,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":22,"originalFileName":22,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":23,"originalFileName":23,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":24,"originalFileName":24,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":25,"originalFileName":25,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":26,"originalFileName":26,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":27,"originalFileName":27,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":28,"originalFileName":28,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":29,"originalFileName":29,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":30,"originalFileName":30,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":31,"originalFileName":31,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":32,"originalFileName":32,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true},{"fileName":33,"originalFileName":33,"path":18,"resolvedPath":18,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[23,21,22,24,19,25,28,27,26,30,29,16,31,8],"resolvedTypeReferenceDirectives":[["someType",6],["someType2",7]],"resolutions":[{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[24,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".d.ts"},"failedLookupLocations":[35,36]},{"resolvedModule":{"resolvedFileName":22,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":31,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":32,"isExternalLibraryImport":true},"failedLookupLocations":[37]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":33,"isExternalLibraryImport":true},"failedLookupLocations":[38]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./node_modules/@types/sometype2/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.d.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./node_modules/@types/someType2/index.d.ts", + "./src/fileNotFound.tsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json", + "./node_modules/@types/someType2/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true }, @@ -8187,6 +12374,10 @@ exitCode:: ExitStatus.undefined "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10760962856-interface SomeType {\n}\n", @@ -8228,6 +12419,14 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + }, + "./node_modules/@types/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): number;", + "signature": "5420646020-export function someType2(): number;" } }, "options": { @@ -8270,9 +12469,8 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/filenotfound.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -8281,7 +12479,6 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - "./src/main.ts", "./src/newfile.ts", "./src/types.ts" ], @@ -8343,10 +12540,6 @@ exitCode:: ExitStatus.undefined "file": "./src/anotherfilereusingresolution.ts", "index": 1 }, - { - "kind": "RootFile", - "index": 3 - }, { "kind": "Import", "file": "./src/main.ts", @@ -8480,6 +12673,20 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -8733,13 +12940,43 @@ exitCode:: ExitStatus.undefined "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + }, + { + "fileName": "./node_modules/@types/someType2/index.d.ts", + "originalFileName": "./node_modules/@types/someType2/index.d.ts", + "path": "./node_modules/@types/sometype2/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype2/index.d.ts", + "version": "5420646020-export function someType2(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType2" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", - "./src/fileNotFound.d.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -8751,6 +12988,34 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ], + [ + "someType2", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -8789,68 +13054,79 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10008 + "size": 11514 } -//// [/user/username/projects/myproject/src/externalThingNotPresent.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing2 = void 0; - function externalThing2() { return 20; } - exports.externalThing2 = externalThing2; -}); - - -//// [/user/username/projects/myproject/src/externalThingNotPresent.d.ts] -export declare function externalThing2(): number; - - -Change:: Write .ts file that takes preference over resolved .d.ts file +Change:: Delete existing type picked up by program Input:: -//// [/user/username/projects/myproject/src/externalThing.ts] -export function externalThing1() { return 10; } - +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] deleted Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file Scheduling update -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:06:28 AM] File change detected. Starting incremental compilation... +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update +Scheduling invalidateFailedLookup, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +[12:07:22 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThing.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -error TS5055: Cannot write file '/user/username/projects/myproject/src/externalThing.d.ts' because it would overwrite input file. +Reusing resolution of type reference directive 'someType2' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts'. +error TS5055: Cannot write file '/user/username/projects/myproject/src/fileNotFound.d.ts' because it would overwrite input file. -[12:06:34 AM] Found 1 error. Watching for file changes. +[12:07:26 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -8860,7 +13136,7 @@ Program files:: /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -8870,9 +13146,14 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -8905,10 +13186,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.d.ts: {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/externalthingnotpresent.ts: {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} -/user/username/projects/myproject/src/externalthing.ts: - {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype2/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts","pollingInterval":250} FsWatches:: @@ -8921,7 +13204,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,6,4,5,3,2,9,12,11,10,14,13,16,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":22,"originalFileName":22,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[21,22,20,18,17,23,26,25,24,28,27,16,29,8],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[22,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,23,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType2",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[33,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -8933,7 +13216,7 @@ exitCode:: ExitStatus.undefined "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/externalthing.ts", + "./src/filenotfound.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -8943,12 +13226,13 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype2/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.d.ts", "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/externalThing.ts", + "./src/fileNotFound.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -8956,9 +13240,11 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/fileNotFound.ts", + "./node_modules/@types/someType2/index.d.ts", "./src/fileNotFound.tsx", - "./src/externalThing.tsx" + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType2/package.json" ], "fileNamesList": [ [ @@ -9013,9 +13299,9 @@ exitCode:: ExitStatus.undefined "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, - "./src/externalthing.ts": { - "version": "5618215488-export function externalThing1() { return 10; }", - "signature": "-13282660348-export declare function externalThing1(): number;\n" + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -9058,6 +13344,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): number;", + "signature": "5420646020-export function someType2(): number;" } }, "options": { @@ -9100,9 +13390,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/filenotfound.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -9111,7 +13399,6 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - "./src/main.ts", "./src/newfile.ts", "./src/types.ts" ], @@ -9173,10 +13460,6 @@ exitCode:: ExitStatus.undefined "file": "./src/anotherfilereusingresolution.ts", "index": 1 }, - { - "kind": "RootFile", - "index": 3 - }, { "kind": "Import", "file": "./src/main.ts", @@ -9197,6 +13480,10 @@ exitCode:: ExitStatus.undefined "file": "./src/anotherfilereusingresolution.ts", "index": 2 }, + { + "kind": "RootFile", + "index": 1 + }, { "kind": "Import", "file": "./src/main.ts", @@ -9307,16 +13594,16 @@ exitCode:: ExitStatus.undefined ] }, { - "fileName": "./src/externalThing.ts", - "originalFileName": "./src/externalThing.ts", - "path": "./src/externalthing.ts", - "resolvedPath": "./src/externalthing.ts", - "version": "5618215488-export function externalThing1() { return 10; }", + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", "flags": 0, "includeReasons": [ { "kind": "RootFile", - "index": 1 + "index": 3 } ] }, @@ -9573,13 +13860,28 @@ exitCode:: ExitStatus.undefined "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType2/index.d.ts", + "originalFileName": "./node_modules/@types/someType2/index.d.ts", + "path": "./node_modules/@types/sometype2/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype2/index.d.ts", + "version": "5420646020-export function someType2(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType2" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", - "./src/externalThing.ts", + "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", - "./src/fileNotFound.d.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -9591,6 +13893,21 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType2", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -9629,21 +13946,21 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10354 + "size": 10944 } -//// [/user/username/projects/myproject/src/externalThing.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing1 = void 0; - function externalThing1() { return 10; } - exports.externalThing1 = externalThing1; -}); - - diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 599f0099c44a9..de87023a3d1f7 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -39,6 +39,9 @@ function globalSomething() { return 10; } //// [/user/username/projects/myproject/src/externalThing.d.ts] export function externalThing1(): number; +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] +export function someType(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -95,12 +98,12 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:45 AM] Starting compilation in watch mode... +[12:00:53 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file @@ -118,6 +121,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFil FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots @@ -151,7 +155,7 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:00:55 AM] Found 6 errors. Watching for file changes. +[12:01:03 AM] Found 6 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -171,6 +175,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -197,6 +202,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} @@ -213,7 +220,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -260,6 +267,7 @@ exitCode:: ExitStatus.undefined "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -268,6 +276,7 @@ exitCode:: ExitStatus.undefined "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -322,7 +331,8 @@ exitCode:: ExitStatus.undefined "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -372,6 +382,9 @@ exitCode:: ExitStatus.undefined }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -821,6 +834,21 @@ exitCode:: ExitStatus.undefined "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -837,6 +865,21 @@ exitCode:: ExitStatus.undefined "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -940,12 +983,22 @@ exitCode:: ExitStatus.undefined "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10031 + "size": 10664 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1010,7 +1063,7 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:01:02 AM] File change detected. Starting incremental compilation... +[12:01:10 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: @@ -1046,7 +1099,7 @@ CreatingProgramWith:: 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:12 AM] Found 6 errors. Watching for file changes. +[12:01:20 AM] Found 6 errors. Watching for file changes. @@ -1064,6 +1117,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -1090,6 +1144,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} @@ -1132,7 +1188,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1179,6 +1235,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -1187,6 +1244,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1241,7 +1299,8 @@ define("src/main", ["require", "exports"], function (require, exports) { "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -1291,6 +1350,9 @@ define("src/main", ["require", "exports"], function (require, exports) { }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -1740,6 +1802,21 @@ define("src/main", ["require", "exports"], function (require, exports) { "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -1756,6 +1833,21 @@ define("src/main", ["require", "exports"], function (require, exports) { "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1859,12 +1951,22 @@ define("src/main", ["require", "exports"], function (require, exports) { "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10065 + "size": 10698 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1940,7 +2042,7 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:01:25 AM] File change detected. Starting incremental compilation... +[12:01:33 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -1980,7 +2082,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -2004,6 +2106,12 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations @@ -2038,7 +2146,7 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:35 AM] Found 6 errors. Watching for file changes. +[12:01:43 AM] Found 6 errors. Watching for file changes. @@ -2057,6 +2165,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -2083,6 +2192,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -2148,7 +2259,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2197,6 +2308,7 @@ declare module "src/main" { } "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -2206,6 +2318,7 @@ declare module "src/main" { } "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -2260,7 +2373,8 @@ declare module "src/main" { } "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -2319,6 +2433,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -2789,6 +2906,21 @@ declare module "src/main" { } "index": 8 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -2806,6 +2938,21 @@ declare module "src/main" { } "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2909,12 +3056,22 @@ declare module "src/main" { } "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10603 + "size": 11236 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -2988,7 +3145,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:01:44 AM] File change detected. Starting incremental compilation... +[12:01:52 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -3005,6 +3162,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3025,7 +3183,7 @@ Reusing resolution of module 'externalThingNotPresent' from '/user/username/proj 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:54 AM] Found 4 errors. Watching for file changes. +[12:02:02 AM] Found 4 errors. Watching for file changes. @@ -3045,6 +3203,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -3071,6 +3230,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -3138,7 +3299,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -3189,6 +3350,7 @@ declare module "src/main" { } "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -3198,6 +3360,7 @@ declare module "src/main" { } "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -3252,7 +3415,8 @@ declare module "src/main" { } "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -3315,6 +3479,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -3809,6 +3976,21 @@ declare module "src/main" { } "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -3824,6 +4006,21 @@ declare module "src/main" { } "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -3901,12 +4098,22 @@ declare module "src/main" { } "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10636 + "size": 11269 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -3979,7 +4186,7 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:02:03 AM] File change detected. Starting incremental compilation... +[12:02:11 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -4011,7 +4218,7 @@ Reusing resolution of module 'externalThingNotPresent' from '/user/username/proj 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:13 AM] Found 4 errors. Watching for file changes. +[12:02:21 AM] Found 4 errors. Watching for file changes. @@ -4031,6 +4238,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -4057,6 +4265,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -4111,7 +4321,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4162,6 +4372,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -4171,6 +4382,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -4225,7 +4437,8 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -4288,6 +4501,9 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, "./src/main.ts": { "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -4782,6 +4998,21 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -4797,6 +5028,21 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -4874,12 +5120,22 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10660 + "size": 11293 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -4962,7 +5218,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:02:24 AM] File change detected. Starting incremental compilation... +[12:02:32 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -4983,6 +5239,7 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -5003,7 +5260,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.t 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:34 AM] Found 4 errors. Watching for file changes. +[12:02:42 AM] Found 4 errors. Watching for file changes. @@ -5024,6 +5281,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -5050,6 +5308,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -5130,7 +5390,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -5183,6 +5443,7 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -5193,6 +5454,7 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -5247,7 +5509,8 @@ declare module "src/main" { } "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -5318,6 +5581,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -5845,6 +6111,21 @@ declare module "src/main" { } "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -5861,6 +6142,21 @@ declare module "src/main" { } "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -5944,12 +6240,22 @@ declare module "src/main" { } "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11189 + "size": 11822 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -6032,7 +6338,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:02:43 AM] File change detected. Starting incremental compilation... +[12:02:51 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -6060,6 +6366,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 4 import { externalThing2 } from "externalThingNotPresent"; @@ -6070,7 +6377,7 @@ Reusing resolution of module 'externalThingNotPresent' from '/user/username/proj 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:53 AM] Found 2 errors. Watching for file changes. +[12:03:01 AM] Found 2 errors. Watching for file changes. @@ -6092,6 +6399,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -6118,6 +6426,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -6210,7 +6520,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -6265,6 +6575,7 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/externalThing.d.ts", @@ -6276,6 +6587,7 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", "./src/externalThing.tsx", "./src/externalThingNotPresent.ts", @@ -6325,7 +6637,8 @@ declare module "src/main" { } "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -6401,6 +6714,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -6948,6 +7264,21 @@ declare module "src/main" { } "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -6965,6 +7296,21 @@ declare module "src/main" { } "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -7045,12 +7391,22 @@ declare module "src/main" { } "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11497 + "size": 12130 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -7144,7 +7500,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:03:01 AM] File change detected. Starting incremental compilation... +[12:03:09 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -7167,6 +7523,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -7188,7 +7545,7 @@ FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFo 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:03:11 AM] Found 4 errors. Watching for file changes. +[12:03:19 AM] Found 4 errors. Watching for file changes. @@ -7209,6 +7566,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -7235,6 +7593,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -7315,7 +7675,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -7368,6 +7728,7 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -7378,6 +7739,7 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -7432,7 +7794,8 @@ declare module "src/main" { } "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -7503,6 +7866,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -8030,6 +8396,21 @@ declare module "src/main" { } "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -8046,6 +8427,21 @@ declare module "src/main" { } "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -8129,12 +8525,22 @@ declare module "src/main" { } "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11189 + "size": 11822 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -8203,66 +8609,63 @@ declare module "src/main" { } ====================================================================== -Change:: Create external module file that could not be resolved +Change:: Write file that could not be resolved Input:: -//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] -export function externalThing2() { return 20; } +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:03:20 AM] File change detected. Starting incremental compilation... +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +[12:03:28 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. -Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. -======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. -======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. -Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:03:30 AM] Found 2 errors. Watching for file changes. +[12:03:38 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts -/user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -8273,6 +8676,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -8299,16 +8703,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} -/user/username/projects/myproject/src/externalthingnotpresent.ts: - {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/node_modules/@types: @@ -8316,6 +8724,8 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined @@ -8327,12 +8737,12 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); -define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { +define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - exports.externalThing2 = void 0; - function externalThing2() { return 20; } - exports.externalThing2 = externalThing2; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; }); define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { "use strict"; @@ -8369,8 +8779,8 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, declare module "src/filePresent" { export function something(): number; } -declare module "src/externalThingNotPresent" { - export function externalThing2(): number; +declare module "src/fileNotFound" { + export function something2(): number; } declare module "src/anotherFileReusingResolution" { } interface SomeType { @@ -8387,7 +8797,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1562,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":573,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -8395,7 +8805,7 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", - "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", @@ -8411,7 +8821,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1562, + "end": 1535, "kind": "text" } ] @@ -8420,7 +8830,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 573, + "end": 558, "kind": "text" } ] @@ -8430,8 +8840,8 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -8442,9 +8852,10 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -8453,57 +8864,4215 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", - "./src/externalThing.tsx" - ], - "fileNamesList": [ - [ - "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" - ], - [ - "./src/types.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalnewfile.ts" - ], - [ - "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", - "./src/newfile.ts" - ] - ], - "fileInfos": { - "../../../../a/lib/lib.d.ts": { - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true - }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }" - }, - "./src/externalthing.d.ts": { - "version": "5686005290-export function externalThing1(): number;" - }, - "./src/externalthingnotpresent.ts": { - "version": "5318862050-export function externalThing2() { return 20; }" - }, - "./src/anotherfilereusingresolution.ts": { - "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" - }, - "./src/types.ts": { + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12130 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1535) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-558) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +[12:03:47 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +[12:03:57 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1807, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 653, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10273 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1807) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-653) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Write .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] +export function externalThing1() { return 10; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:04:06 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +[12:04:16 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2069,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":738,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[33]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 2069, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 738, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10582 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-2069) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-738) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Delete .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:04:24 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +[12:04:34 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1807, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 653, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10273 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1807) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-653) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Install another type picked up by program + +Input:: +//// [/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts] +export function someType2(): number; + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update +Scheduling invalidateFailedLookup, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +[12:04:45 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Resolving type reference directive 'someType2', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType2/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts'. +======== Type reference directive 'someType2' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts', primary: true. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts 250 undefined Source file +[12:04:55 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts +/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype2/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] file written with same contents +//// [/user/username/projects/myproject/outFile.d.ts] file written with same contents +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType2/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":30,"originalFileName":30,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,19,18,23,26,25,24,28,27,15,29,7],"resolvedTypeReferenceDirectives":[["someType",6],["someType2",7]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":30,"isExternalLibraryImport":true},"failedLookupLocations":[34]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1807, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 653, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./node_modules/@types/sometype2/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./node_modules/@types/someType2/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json", + "./node_modules/@types/someType2/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "affectsGlobalScope": true }, @@ -8535,6 +13104,12 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + }, + "./node_modules/@types/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): number;" } }, "options": { @@ -8551,6 +13126,7 @@ declare module "src/main" { } "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], @@ -8568,6 +13144,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" @@ -8601,7 +13178,36 @@ declare module "src/main" { } { "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", - "index": 0 + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 }, { "kind": "RootFile", @@ -8610,12 +13216,7 @@ declare module "src/main" { } { "kind": "Import", "file": "./src/main.ts", - "index": 1 - }, - { - "kind": "Import", - "file": "./src/main.ts", - "index": 2 + "index": 3 } ] }, @@ -8705,13 +13306,10 @@ declare module "src/main" { } [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ], [ @@ -8759,7 +13357,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 12 + "index": 13 } ] }, @@ -8776,7 +13374,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -8795,7 +13393,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 }, { "kind": "ReferenceFile", @@ -8819,7 +13417,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -8842,7 +13440,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -8861,7 +13459,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -8880,7 +13478,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -8899,7 +13497,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -8958,13 +13556,10 @@ declare module "src/main" { } [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ], [ @@ -8993,15 +13588,46 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 10 + "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + }, + { + "fileName": "./node_modules/@types/someType2/index.d.ts", + "originalFileName": "./node_modules/@types/someType2/index.d.ts", + "path": "./node_modules/@types/sometype2/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype2/index.d.ts", + "version": "5420646020-export function someType2(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType2" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -9013,6 +13639,34 @@ declare module "src/main" { } "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ], + [ + "someType2", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -9021,13 +13675,10 @@ declare module "src/main" { } } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -9050,146 +13701,87 @@ declare module "src/main" { } "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 9333 -} - -//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/myproject/outFile.js ----------------------------------------------------------------------- -text: (0-1562) -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing2 = void 0; - function externalThing2() { return 20; } - exports.externalThing2 = externalThing2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - -====================================================================== -====================================================================== -File:: /user/username/projects/myproject/outFile.d.ts ----------------------------------------------------------------------- -text: (0-573) -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/externalThingNotPresent" { - export function externalThing2(): number; -} -declare module "src/anotherFileReusingResolution" { } -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; + "size": 10877 } -declare module "src/main" { } - -====================================================================== +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] file written with same contents -Change:: Write .ts file that takes preference over resolved .d.ts file +Change:: Delete existing type picked up by program Input:: -//// [/user/username/projects/myproject/src/externalThing.ts] -export function externalThing1() { return 10; } - +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] deleted Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file +Scheduling update +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Scheduling update -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:03:39 AM] File change detected. Starting incremental compilation... +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update +Scheduling invalidateFailedLookup, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +[12:05:04 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -[12:03:49 AM] Found 2 errors. Watching for file changes. +Reusing resolution of type reference directive 'someType2' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts'. +[12:05:14 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/externalThing.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -9199,6 +13791,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts No cached semantic diagnostics in the builder:: @@ -9229,103 +13822,29 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} -/user/username/projects/myproject/src/newfile.ts: - {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} -/user/username/projects/myproject/src/externalthingnotpresent.ts: - {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} -/user/username/projects/myproject/src/externalthing.ts: - {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} - -FsWatches:: - -FsWatchesRecursive:: -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - -exitCode:: ExitStatus.undefined - -//// [/user/username/projects/myproject/outFile.js] -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing2 = void 0; - function externalThing2() { return 20; } - exports.externalThing2 = externalThing2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -define("src/externalThing", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing1 = void 0; - function externalThing1() { return 10; } - exports.externalThing1 = externalThing1; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype2/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts","pollingInterval":250} +FsWatches:: -//// [/user/username/projects/myproject/outFile.d.ts] -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/externalThingNotPresent" { - export function externalThing2(): number; -} -declare module "src/anotherFileReusingResolution" { } -declare module "src/externalThing" { - export function externalThing1(): number; -} -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/outFile.js] file written with same contents +//// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1824,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":658,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":3,"file":15,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,20,18,16,21,24,23,22,26,25,15,27,7],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"failedLookupLocations":[28,29,30,31,32]},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[20,33]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType2",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -9333,9 +13852,9 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/externalThing.ts", "./src/types.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -9350,7 +13869,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1824, + "end": 1807, "kind": "text" } ] @@ -9359,7 +13878,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 658, + "end": 653, "kind": "text" } ] @@ -9369,10 +13888,10 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/externalthing.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -9382,11 +13901,12 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype2/index.d.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/externalThing.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -9394,16 +13914,15 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx", - "./src/externalThing.tsx" + "./node_modules/@types/someType2/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType2/package.json" ], "fileNamesList": [ [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], @@ -9421,6 +13940,7 @@ declare module "src/main" { } ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" @@ -9434,6 +13954,9 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, "./src/externalthing.d.ts": { "version": "5686005290-export function externalThing1(): number;" }, @@ -9443,9 +13966,6 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": { "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, - "./src/externalthing.ts": { - "version": "5618215488-export function externalThing1() { return 10; }" - }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "affectsGlobalScope": true @@ -9478,6 +13998,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): number;" } }, "options": { @@ -9494,6 +14017,7 @@ declare module "src/main" { } "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], @@ -9511,6 +14035,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" @@ -9548,7 +14073,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 3 + "index": 4 }, { "kind": "Import", @@ -9562,6 +14087,30 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/externalThing.d.ts", "originalFileName": "./src/externalThing.d.ts", @@ -9575,6 +14124,10 @@ declare module "src/main" { } "file": "./src/anotherfilereusingresolution.ts", "index": 2 }, + { + "kind": "RootFile", + "index": 1 + }, { "kind": "Import", "file": "./src/main.ts", @@ -9644,13 +14197,10 @@ declare module "src/main" { } [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ], [ @@ -9683,20 +14233,6 @@ declare module "src/main" { } } ] }, - { - "fileName": "./src/externalThing.ts", - "originalFileName": "./src/externalThing.ts", - "path": "./src/externalthing.ts", - "resolvedPath": "./src/externalthing.ts", - "version": "5618215488-export function externalThing1() { return 10; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -9712,7 +14248,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 12 + "index": 13 } ] }, @@ -9729,7 +14265,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -9748,7 +14284,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 }, { "kind": "ReferenceFile", @@ -9772,7 +14308,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -9795,7 +14331,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -9814,7 +14350,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -9833,7 +14369,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -9852,7 +14388,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -9911,13 +14447,10 @@ declare module "src/main" { } [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ], [ @@ -9946,15 +14479,31 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 10 + "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType2/index.d.ts", + "originalFileName": "./node_modules/@types/someType2/index.d.ts", + "path": "./node_modules/@types/sometype2/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype2/index.d.ts", + "version": "5420646020-export function someType2(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType2" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", - "./src/externalThing.ts", + "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -9966,6 +14515,21 @@ declare module "src/main" { } "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType2", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -9974,13 +14538,10 @@ declare module "src/main" { } } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -10003,96 +14564,22 @@ declare module "src/main" { } "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 9642 -} - -//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/myproject/outFile.js ----------------------------------------------------------------------- -text: (0-1824) -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing2 = void 0; - function externalThing2() { return 20; } - exports.externalThing2 = externalThing2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -define("src/externalThing", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing1 = void 0; - function externalThing1() { return 10; } - exports.externalThing1 = externalThing1; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - -====================================================================== -====================================================================== -File:: /user/username/projects/myproject/outFile.d.ts ----------------------------------------------------------------------- -text: (0-658) -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/externalThingNotPresent" { - export function externalThing2(): number; -} -declare module "src/anotherFileReusingResolution" { } -declare module "src/externalThing" { - export function externalThing1(): number; -} -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; + "size": 10280 } -declare module "src/main" { } - -====================================================================== +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index da0546ab992cb..d580dd87441d2 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -39,6 +39,9 @@ function globalSomething() { return 10; } //// [/user/username/projects/myproject/src/externalThing.d.ts] export function externalThing1(): number; +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] +export function someType(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -138,12 +141,12 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:01:13 AM] Starting compilation in watch mode... +[12:01:21 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file @@ -161,6 +164,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFil FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalfilenotfound.ts 500 undefined Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots @@ -194,7 +198,7 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/mypr 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:14 AM] Found 6 errors. Watching for file changes. +[12:01:22 AM] Found 6 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -214,6 +218,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: @@ -240,6 +245,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} @@ -268,7 +275,7 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:01:17 AM] File change detected. Starting incremental compilation... +[12:01:25 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: @@ -304,7 +311,7 @@ CreatingProgramWith:: 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:09 AM] Found 6 errors. Watching for file changes. +[12:02:17 AM] Found 6 errors. Watching for file changes. @@ -322,6 +329,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts @@ -334,6 +342,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -358,6 +367,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} @@ -394,7 +405,7 @@ globalSomething(); //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -410,6 +421,7 @@ globalSomething(); "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -418,6 +430,7 @@ globalSomething(); "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -472,7 +485,8 @@ globalSomething(); "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -532,6 +546,10 @@ globalSomething(); "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -568,6 +586,7 @@ globalSomething(); "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -1032,6 +1051,21 @@ globalSomething(); "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -1048,6 +1082,21 @@ globalSomething(); "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1151,12 +1200,22 @@ globalSomething(); "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11109 + "size": 11715 } @@ -1184,7 +1243,7 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:02:18 AM] File change detected. Starting incremental compilation... +[12:02:26 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -1224,7 +1283,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -1248,6 +1307,12 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations @@ -1292,7 +1357,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:03:14 AM] Found 6 errors. Watching for file changes. +[12:03:22 AM] Found 6 errors. Watching for file changes. @@ -1311,6 +1376,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts @@ -1324,6 +1390,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -1348,6 +1415,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: {"fileName":"/user/username/projects/myproject/src/globalfilenotfound.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -1398,7 +1467,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1415,6 +1484,7 @@ declare function globalMain(): void; "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -1424,6 +1494,7 @@ declare function globalMain(): void; "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1478,7 +1549,8 @@ declare function globalMain(): void; "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -1548,6 +1620,10 @@ declare function globalMain(): void; "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -1585,6 +1661,7 @@ declare function globalMain(): void; "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -2070,6 +2147,21 @@ declare function globalMain(): void; "index": 8 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -2087,6 +2179,21 @@ declare function globalMain(): void; "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2190,12 +2297,22 @@ declare function globalMain(): void; "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11717 + "size": 12323 } //// [/user/username/projects/myproject/src/globalNewFile.js] @@ -2225,7 +2342,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:03:20 AM] File change detected. Starting incremental compilation... +[12:03:28 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -2242,6 +2359,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/globalFileNotFound.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -2272,7 +2390,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:04:22 AM] Found 4 errors. Watching for file changes. +[12:04:30 AM] Found 4 errors. Watching for file changes. @@ -2292,6 +2410,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts @@ -2306,6 +2425,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -2330,6 +2450,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -2378,7 +2500,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2396,6 +2518,7 @@ declare function globalMain(): void; "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -2405,6 +2528,7 @@ declare function globalMain(): void; "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -2459,7 +2583,8 @@ declare function globalMain(): void; "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -2534,6 +2659,10 @@ declare function globalMain(): void; "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -2571,6 +2700,7 @@ declare function globalMain(): void; "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -3081,6 +3211,21 @@ declare function globalMain(): void; "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -3096,6 +3241,21 @@ declare function globalMain(): void; "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -3173,12 +3333,22 @@ declare function globalMain(): void; "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11883 + "size": 12489 } //// [/user/username/projects/myproject/src/globalNewFile.js] file written with same contents @@ -3207,7 +3377,7 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:04:28 AM] File change detected. Starting incremental compilation... +[12:04:36 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -3239,7 +3409,7 @@ Reusing resolution of module 'externalThingNotPresent' from '/user/username/proj 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:04:38 AM] Found 4 errors. Watching for file changes. +[12:04:46 AM] Found 4 errors. Watching for file changes. @@ -3259,6 +3429,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/main.ts @@ -3286,6 +3457,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -3316,7 +3489,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3334,6 +3507,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -3343,6 +3517,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -3397,7 +3572,8 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -3472,6 +3648,10 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/main.ts": { "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -3509,6 +3689,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -4019,6 +4200,21 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -4034,6 +4230,21 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -4111,12 +4322,22 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11907 + "size": 12513 } @@ -4144,7 +4365,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:04:46 AM] File change detected. Starting incremental compilation... +[12:04:54 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -4165,6 +4386,7 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/newFile.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -4195,7 +4417,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:05:00 AM] Found 4 errors. Watching for file changes. +[12:05:08 AM] Found 4 errors. Watching for file changes. @@ -4216,6 +4438,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/newFile.ts @@ -4244,6 +4467,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -4269,7 +4494,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4288,6 +4513,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -4298,6 +4524,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -4352,7 +4579,8 @@ exitCode:: ExitStatus.undefined "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -4436,6 +4664,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -4474,6 +4706,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -5017,6 +5250,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -5033,6 +5281,21 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -5116,12 +5379,22 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 12469 + "size": 13075 } //// [/user/username/projects/myproject/src/newFile.js] @@ -5153,7 +5426,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:05:06 AM] File change detected. Starting incremental compilation... +[12:05:14 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -5181,6 +5454,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/fileNotFound.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -5201,7 +5475,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:05:26 AM] Found 2 errors. Watching for file changes. +[12:05:34 AM] Found 2 errors. Watching for file changes. @@ -5223,6 +5497,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts @@ -5252,6 +5527,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -5281,7 +5558,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -5301,6 +5578,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/externalThing.d.ts", @@ -5312,6 +5590,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", "./src/externalThing.tsx", "./src/externalThingNotPresent.ts", @@ -5361,7 +5640,8 @@ exitCode:: ExitStatus.undefined "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -5451,6 +5731,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -5491,6 +5775,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -6037,6 +6322,21 @@ exitCode:: ExitStatus.undefined "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -6054,6 +6354,21 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -6134,12 +6449,22 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 12332 + "size": 12938 } //// [/user/username/projects/myproject/src/fileNotFound.js] @@ -6172,7 +6497,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:05:31 AM] File change detected. Starting incremental compilation... +[12:05:39 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -6194,6 +6519,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -6205,7 +6531,7 @@ FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFo 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:05:47 AM] Found 2 errors. Watching for file changes. +[12:05:55 AM] Found 2 errors. Watching for file changes. @@ -6227,6 +6553,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.d.ts @@ -6256,6 +6583,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -6285,7 +6614,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"failedLookupLocations":[32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[80]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -6305,6 +6634,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.d.ts", "./src/externalThing.d.ts", @@ -6316,6 +6646,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/externalThing.ts", @@ -6367,7 +6698,8 @@ exitCode:: ExitStatus.undefined "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -6457,6 +6789,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -6497,6 +6833,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -7051,6 +7388,21 @@ exitCode:: ExitStatus.undefined "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -7068,6 +7420,21 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -7152,66 +7519,65 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 12344 + "size": 12950 } -Change:: Create external module file that could not be resolved +Change:: Write file that could not be resolved Input:: -//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] -export function externalThing2() { return 20; } +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -[12:05:53 AM] File change detected. Starting incremental compilation... +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +[12:06:01 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. -======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== -Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. -======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. -Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThingNotPresent.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/externalThingNotPresent.d.ts -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:06:13 AM] Found 0 errors. Watching for file changes. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +error TS5055: Cannot write file '/user/username/projects/myproject/src/fileNotFound.d.ts' because it would overwrite input file. + +[12:06:08 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -7219,8 +7585,8 @@ Program files:: /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.d.ts /user/username/projects/myproject/src/externalThing.d.ts -/user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -7230,11 +7596,10 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/src/externalThingNotPresent.ts -/user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/src/fileNotFound.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -7259,6 +7624,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -7267,25 +7634,26 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.d.ts: {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} -/user/username/projects/myproject/src/externalthingnotpresent.ts: - {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents -//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents -//// [/user/username/projects/myproject/src/main.js] file written with same contents -//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[20,18,19,17,16,21,24,23,22,26,25,15,27,7],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,8,11,10,9,13,12,[15,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":2}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[20,19,21,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[21,30]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -7295,8 +7663,8 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/filenotfound.d.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -7306,11 +7674,12 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.d.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -7318,17 +7687,65 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/fileNotFound.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.tsx", "./src/externalThing.ts", - "./src/externalThing.tsx" + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ "./src/filepresent.ts", "./src/filenotfound.d.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" + "./src/externalthing.d.ts" ], [ "./src/types.ts" @@ -7346,7 +7763,3728 @@ exitCode:: ExitStatus.undefined "./src/filepresent.ts", "./src/filenotfound.d.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", + [ + "./src/anotherfilereusingresolution.ts", + [ + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/externalthing.d.ts", + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + [ + "./src/main.ts", + [ + { + "file": "./src/main.ts", + "start": 256, + "length": 25, + "messageText": "Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + } + ] + ], + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 2 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 13283 +} + +//// [/user/username/projects/myproject/src/fileNotFound.js] file written with same contents + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +[12:06:14 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThingNotPresent.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/externalThingNotPresent.d.ts +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +error TS5055: Cannot write file '/user/username/projects/myproject/src/fileNotFound.d.ts' because it would overwrite input file. + +[12:06:34 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] file written with same contents +//// [/user/username/projects/myproject/src/anotherFileReusingResolution.d.ts] file written with same contents +//// [/user/username/projects/myproject/src/main.js] file written with same contents +//// [/user/username/projects/myproject/src/main.d.ts] file written with same contents +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,23,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[33,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.d.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/fileNotFound.tsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/externalthing.d.ts", + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10940 +} + +//// [/user/username/projects/myproject/src/externalThingNotPresent.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); + + +//// [/user/username/projects/myproject/src/externalThingNotPresent.d.ts] +export declare function externalThing2(): number; + + + +Change:: Write .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] +export function externalThing1() { return 10; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:06:40 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThing.js +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +error TS5055: Cannot write file '/user/username/projects/myproject/src/externalThing.d.ts' because it would overwrite input file. + +error TS5055: Cannot write file '/user/username/projects/myproject/src/fileNotFound.d.ts' because it would overwrite input file. + +[12:06:46 AM] Found 2 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[9],[11,12],[11,12,14],[2,3,4,5,16]],"referencedMap":[[6,1],[10,2],[13,3],[15,4],[17,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,18,4,3,2,10,13,12,11,15,14,16,9],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":19,"originalFileName":19,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":17,"index":1},{"kind":3,"file":17,"index":2}]},{"fileName":20,"originalFileName":20,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":17,"index":3}]},{"fileName":21,"originalFileName":21,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":17,"index":4}]},{"fileName":22,"originalFileName":22,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":17,"index":5}]},{"fileName":23,"originalFileName":23,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":24,"originalFileName":24,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":25,"originalFileName":25,"path":8,"resolvedPath":8,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":13}]},{"fileName":26,"originalFileName":26,"path":10,"resolvedPath":10,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":27,"originalFileName":27,"path":11,"resolvedPath":11,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":8},{"kind":4,"file":15,"index":1}]},{"fileName":28,"originalFileName":28,"path":12,"resolvedPath":12,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":1},{"kind":0,"index":7},{"kind":4,"file":15,"index":2}]},{"fileName":29,"originalFileName":29,"path":13,"resolvedPath":13,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":30,"originalFileName":30,"path":14,"resolvedPath":14,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":15,"index":0},{"kind":0,"index":10}]},{"fileName":31,"originalFileName":31,"path":15,"resolvedPath":15,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":32,"originalFileName":32,"path":16,"resolvedPath":16,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":17,"index":0},{"kind":0,"index":12}]},{"fileName":17,"originalFileName":17,"path":17,"resolvedPath":17,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":33,"originalFileName":33,"path":18,"resolvedPath":18,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[23,24,22,25,19,26,29,28,27,31,30,17,32,9],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[25,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".d.ts"},"failedLookupLocations":[24,35]},{"resolvedModule":{"resolvedFileName":22,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":32,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":33,"isExternalLibraryImport":true},"failedLookupLocations":[36]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", + "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.d.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/fileNotFound.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/fileNotFound.tsx", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }", + "signature": "-13282660348-export declare function externalThing1(): number;\n" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/externalthing.d.ts", + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11286 +} + +//// [/user/username/projects/myproject/src/externalThing.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); + + + +Change:: Delete .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:06:51 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +error TS5055: Cannot write file '/user/username/projects/myproject/src/fileNotFound.d.ts' because it would overwrite input file. + +[12:06:55 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/main.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,23,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[33,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.d.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/fileNotFound.tsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/externalthing.d.ts", + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10940 +} + + +Change:: Install another type picked up by program + +Input:: +//// [/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts] +export function someType2(): number; + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update +Scheduling invalidateFailedLookup, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +[12:07:03 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Resolving type reference directive 'someType2', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType2/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts'. +======== Type reference directive 'someType2' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts', primary: true. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts 250 undefined Source file +error TS5055: Cannot write file '/user/username/projects/myproject/src/fileNotFound.d.ts' because it would overwrite input file. + +[12:07:07 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts +/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype2/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType2/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;","5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":19,"originalFileName":19,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":20,"originalFileName":20,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":21,"originalFileName":21,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":22,"originalFileName":22,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":23,"originalFileName":23,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":24,"originalFileName":24,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":25,"originalFileName":25,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":26,"originalFileName":26,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":27,"originalFileName":27,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":28,"originalFileName":28,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":29,"originalFileName":29,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":30,"originalFileName":30,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":31,"originalFileName":31,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":32,"originalFileName":32,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true},{"fileName":33,"originalFileName":33,"path":18,"resolvedPath":18,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[23,21,22,24,19,25,28,27,26,30,29,16,31,8],"resolvedTypeReferenceDirectives":[["someType",6],["someType2",7]],"resolutions":[{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[24,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".d.ts"},"failedLookupLocations":[35,36]},{"resolvedModule":{"resolvedFileName":22,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":31,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":32,"isExternalLibraryImport":true},"failedLookupLocations":[37]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":33,"isExternalLibraryImport":true},"failedLookupLocations":[38]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/filenotfound.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./node_modules/@types/sometype2/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.d.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileNotFound.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./node_modules/@types/someType2/index.d.ts", + "./src/fileNotFound.tsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json", + "./node_modules/@types/someType2/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", "./src/newfile.ts" ] ], @@ -7376,6 +11514,10 @@ exitCode:: ExitStatus.undefined "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" + }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "signature": "-10760962856-interface SomeType {\n}\n", @@ -7417,6 +11559,14 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + }, + "./node_modules/@types/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): number;", + "signature": "5420646020-export function someType2(): number;" } }, "options": { @@ -7459,9 +11609,8 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/filenotfound.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -7470,7 +11619,6 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - "./src/main.ts", "./src/newfile.ts", "./src/types.ts" ], @@ -7532,10 +11680,6 @@ exitCode:: ExitStatus.undefined "file": "./src/anotherfilereusingresolution.ts", "index": 1 }, - { - "kind": "RootFile", - "index": 3 - }, { "kind": "Import", "file": "./src/main.ts", @@ -7669,6 +11813,20 @@ exitCode:: ExitStatus.undefined } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 3 + } + ] + }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -7922,13 +12080,43 @@ exitCode:: ExitStatus.undefined "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + }, + { + "fileName": "./node_modules/@types/someType2/index.d.ts", + "originalFileName": "./node_modules/@types/someType2/index.d.ts", + "path": "./node_modules/@types/sometype2/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype2/index.d.ts", + "version": "5420646020-export function someType2(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType2" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", - "./src/fileNotFound.d.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -7940,6 +12128,34 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ], + [ + "someType2", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -7978,68 +12194,79 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10008 + "size": 11514 } -//// [/user/username/projects/myproject/src/externalThingNotPresent.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing2 = void 0; - function externalThing2() { return 20; } - exports.externalThing2 = externalThing2; -}); - - -//// [/user/username/projects/myproject/src/externalThingNotPresent.d.ts] -export declare function externalThing2(): number; - - -Change:: Write .ts file that takes preference over resolved .d.ts file +Change:: Delete existing type picked up by program Input:: -//// [/user/username/projects/myproject/src/externalThing.ts] -export function externalThing1() { return 10; } - +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] deleted Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file Scheduling update -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:06:19 AM] File change detected. Starting incremental compilation... +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update +Scheduling invalidateFailedLookup, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +[12:07:13 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThing.js -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -error TS5055: Cannot write file '/user/username/projects/myproject/src/externalThing.d.ts' because it would overwrite input file. +Reusing resolution of type reference directive 'someType2' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts'. +error TS5055: Cannot write file '/user/username/projects/myproject/src/fileNotFound.d.ts' because it would overwrite input file. -[12:06:25 AM] Found 1 error. Watching for file changes. +[12:07:17 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: @@ -8049,7 +12276,7 @@ Program files:: /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -8059,9 +12286,14 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -8094,10 +12326,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} /user/username/projects/myproject/src/filenotfound.d.ts: {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/externalthingnotpresent.ts: {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} -/user/username/projects/myproject/src/externalthing.ts: - {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype2/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts","pollingInterval":250} FsWatches:: @@ -8110,7 +12344,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,6,4,5,3,2,9,12,11,10,14,13,16,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":22,"originalFileName":22,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[21,22,20,18,17,23,26,25,24,28,27,16,29,8],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[22,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,23,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType2",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[33,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -8122,7 +12356,7 @@ exitCode:: ExitStatus.undefined "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/externalthing.ts", + "./src/filenotfound.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -8132,12 +12366,13 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype2/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.d.ts", "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/externalThing.ts", + "./src/fileNotFound.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -8145,9 +12380,11 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/fileNotFound.ts", + "./node_modules/@types/someType2/index.d.ts", "./src/fileNotFound.tsx", - "./src/externalThing.tsx" + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType2/package.json" ], "fileNamesList": [ [ @@ -8202,9 +12439,9 @@ exitCode:: ExitStatus.undefined "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" }, - "./src/externalthing.ts": { - "version": "5618215488-export function externalThing1() { return 10; }", - "signature": "-13282660348-export declare function externalThing1(): number;\n" + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-14992185226-export declare function something2(): number;\n" }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", @@ -8247,6 +12484,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): number;", + "signature": "5420646020-export function someType2(): number;" } }, "options": { @@ -8289,9 +12530,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", - "./src/anotherfilereusingresolution.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/filenotfound.d.ts", "./src/filepresent.ts", "./src/filewithref.ts", @@ -8300,7 +12539,6 @@ exitCode:: ExitStatus.undefined "./src/globalfilepresent.ts", "./src/globalmain.ts", "./src/globalnewfile.ts", - "./src/main.ts", "./src/newfile.ts", "./src/types.ts" ], @@ -8362,10 +12600,6 @@ exitCode:: ExitStatus.undefined "file": "./src/anotherfilereusingresolution.ts", "index": 1 }, - { - "kind": "RootFile", - "index": 3 - }, { "kind": "Import", "file": "./src/main.ts", @@ -8386,6 +12620,10 @@ exitCode:: ExitStatus.undefined "file": "./src/anotherfilereusingresolution.ts", "index": 2 }, + { + "kind": "RootFile", + "index": 1 + }, { "kind": "Import", "file": "./src/main.ts", @@ -8496,16 +12734,16 @@ exitCode:: ExitStatus.undefined ] }, { - "fileName": "./src/externalThing.ts", - "originalFileName": "./src/externalThing.ts", - "path": "./src/externalthing.ts", - "resolvedPath": "./src/externalthing.ts", - "version": "5618215488-export function externalThing1() { return 10; }", + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", "flags": 0, "includeReasons": [ { "kind": "RootFile", - "index": 1 + "index": 3 } ] }, @@ -8762,13 +13000,28 @@ exitCode:: ExitStatus.undefined "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType2/index.d.ts", + "originalFileName": "./node_modules/@types/someType2/index.d.ts", + "path": "./node_modules/@types/sometype2/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype2/index.d.ts", + "version": "5420646020-export function someType2(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType2" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", - "./src/externalThing.ts", + "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", - "./src/fileNotFound.d.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -8780,6 +13033,21 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType2", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -8818,21 +13086,21 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10354 + "size": 10944 } -//// [/user/username/projects/myproject/src/externalThing.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing1 = void 0; - function externalThing1() { return 10; } - exports.externalThing1 = externalThing1; -}); - - diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 889c7945a470d..28c8bac577dcc 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -39,6 +39,9 @@ function globalSomething() { return 10; } //// [/user/username/projects/myproject/src/externalThing.d.ts] export function externalThing1(): number; +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] +export function someType(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"outFile.js"},"include":["src/**/*.ts"]} @@ -58,7 +61,7 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:39 AM] Starting compilation in watch mode... +[12:00:47 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file @@ -108,7 +111,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -138,6 +141,13 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations @@ -182,7 +192,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:00:46 AM] Found 6 errors. Watching for file changes. +[12:00:54 AM] Found 6 errors. Watching for file changes. DirectoryWatcher:: Triggered with /user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations @@ -206,6 +216,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -230,6 +241,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -290,7 +303,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -337,6 +350,7 @@ declare module "src/main" { } "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -345,6 +359,7 @@ declare module "src/main" { } "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -399,7 +414,8 @@ declare module "src/main" { } "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -449,6 +465,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -898,6 +917,21 @@ declare module "src/main" { } "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -914,6 +948,21 @@ declare module "src/main" { } "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1017,12 +1066,22 @@ declare module "src/main" { } "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10031 + "size": 10664 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1087,7 +1146,7 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:00:53 AM] File change detected. Starting incremental compilation... +[12:01:01 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: @@ -1123,7 +1182,7 @@ CreatingProgramWith:: 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:03 AM] Found 6 errors. Watching for file changes. +[12:01:11 AM] Found 6 errors. Watching for file changes. @@ -1141,6 +1200,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -1165,6 +1225,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -1214,7 +1276,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1261,6 +1323,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -1269,6 +1332,7 @@ define("src/main", ["require", "exports"], function (require, exports) { "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1323,7 +1387,8 @@ define("src/main", ["require", "exports"], function (require, exports) { "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -1373,6 +1438,9 @@ define("src/main", ["require", "exports"], function (require, exports) { }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -1822,6 +1890,21 @@ define("src/main", ["require", "exports"], function (require, exports) { "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -1838,6 +1921,21 @@ define("src/main", ["require", "exports"], function (require, exports) { "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1941,12 +2039,22 @@ define("src/main", ["require", "exports"], function (require, exports) { "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10065 + "size": 10698 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -2025,7 +2133,7 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:01:16 AM] File change detected. Starting incremental compilation... +[12:01:24 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -2042,6 +2150,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -2072,7 +2181,7 @@ Reusing resolution of module 'externalThingNotPresent' from '/user/username/proj 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:26 AM] Found 6 errors. Watching for file changes. +[12:01:34 AM] Found 6 errors. Watching for file changes. @@ -2091,6 +2200,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -2115,6 +2225,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -2182,7 +2294,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2231,6 +2343,7 @@ declare module "src/main" { } "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -2240,6 +2353,7 @@ declare module "src/main" { } "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -2294,7 +2408,8 @@ declare module "src/main" { } "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -2353,6 +2468,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -2823,6 +2941,21 @@ declare module "src/main" { } "index": 8 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -2840,6 +2973,21 @@ declare module "src/main" { } "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2943,12 +3091,22 @@ declare module "src/main" { } "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10603 + "size": 11236 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -3022,7 +3180,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:01:35 AM] File change detected. Starting incremental compilation... +[12:01:43 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -3039,6 +3197,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -3059,7 +3218,7 @@ Reusing resolution of module 'externalThingNotPresent' from '/user/username/proj 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:45 AM] Found 4 errors. Watching for file changes. +[12:01:53 AM] Found 4 errors. Watching for file changes. @@ -3079,6 +3238,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -3103,6 +3263,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -3172,7 +3334,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -3223,6 +3385,7 @@ declare module "src/main" { } "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -3232,6 +3395,7 @@ declare module "src/main" { } "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -3286,7 +3450,8 @@ declare module "src/main" { } "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -3349,6 +3514,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -3843,6 +4011,21 @@ declare module "src/main" { } "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -3858,6 +4041,21 @@ declare module "src/main" { } "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -3935,12 +4133,22 @@ declare module "src/main" { } "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10636 + "size": 11269 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -4013,7 +4221,7 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:01:54 AM] File change detected. Starting incremental compilation... +[12:02:02 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -4045,7 +4253,7 @@ Reusing resolution of module 'externalThingNotPresent' from '/user/username/proj 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:04 AM] Found 4 errors. Watching for file changes. +[12:02:12 AM] Found 4 errors. Watching for file changes. @@ -4065,6 +4273,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -4089,6 +4298,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -4145,7 +4356,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4196,6 +4407,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -4205,6 +4417,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -4259,7 +4472,8 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -4322,6 +4536,9 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, }, "./src/main.ts": { "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -4816,6 +5033,21 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -4831,6 +5063,21 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -4908,12 +5155,22 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10660 + "size": 11293 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -4996,7 +5253,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:02:15 AM] File change detected. Starting incremental compilation... +[12:02:23 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -5017,6 +5274,7 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 2 import { something2 } from "./fileNotFound"; @@ -5037,7 +5295,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.t 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:25 AM] Found 4 errors. Watching for file changes. +[12:02:33 AM] Found 4 errors. Watching for file changes. @@ -5058,6 +5316,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -5082,6 +5341,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -5164,7 +5425,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -5217,6 +5478,7 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -5227,6 +5489,7 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -5281,7 +5544,8 @@ declare module "src/main" { } "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -5352,6 +5616,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -5879,6 +6146,21 @@ declare module "src/main" { } "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -5895,6 +6177,21 @@ declare module "src/main" { } "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -5978,12 +6275,22 @@ declare module "src/main" { } "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11189 + "size": 11822 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -6067,7 +6374,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotF Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update -[12:02:34 AM] File change detected. Starting incremental compilation... +[12:02:42 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -6087,6 +6394,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? 4 import { externalThing2 } from "externalThingNotPresent"; @@ -6097,7 +6405,7 @@ Reusing resolution of module 'externalThingNotPresent' from '/user/username/proj 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:44 AM] Found 2 errors. Watching for file changes. +[12:02:52 AM] Found 2 errors. Watching for file changes. @@ -6119,6 +6427,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -6143,6 +6452,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -6237,7 +6548,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -6292,6 +6603,7 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/externalThing.d.ts", @@ -6303,6 +6615,7 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", "./src/externalThing.tsx", "./src/externalThingNotPresent.ts", @@ -6352,7 +6665,8 @@ declare module "src/main" { } "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -6428,6 +6742,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -6975,6 +7292,21 @@ declare module "src/main" { } "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -6992,6 +7324,21 @@ declare module "src/main" { } "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -7072,12 +7419,22 @@ declare module "src/main" { } "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11497 + "size": 12130 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -7171,7 +7528,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:02:52 AM] File change detected. Starting incremental compilation... +[12:03:00 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -7194,6 +7551,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -7215,7 +7573,7 @@ FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFo 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:03:02 AM] Found 4 errors. Watching for file changes. +[12:03:10 AM] Found 4 errors. Watching for file changes. @@ -7236,6 +7594,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -7260,6 +7619,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -7342,7 +7703,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -7395,6 +7756,7 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -7405,6 +7767,7 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -7459,7 +7822,8 @@ declare module "src/main" { } "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -7530,6 +7894,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" } }, "options": { @@ -8057,6 +8424,21 @@ declare module "src/main" { } "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -8073,6 +8455,21 @@ declare module "src/main" { } "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -8156,12 +8553,22 @@ declare module "src/main" { } "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11189 + "size": 11822 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -8230,67 +8637,64 @@ declare module "src/main" { } ====================================================================== -Change:: Create external module file that could not be resolved +Change:: Write file that could not be resolved Input:: -//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] -export function externalThing2() { return 20; } +//// [/user/username/projects/myproject/src/fileNotFound.ts] +export function something2() { return 20; } Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update -[12:03:11 AM] File change detected. Starting incremental compilation... +[12:03:19 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. -Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. -======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. -File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. -======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. -Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations -DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +4 import { externalThing2 } from "externalThingNotPresent"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? +src/main.ts:5:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ +5 import { externalThing2 } from "externalThingNotPresent";something(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:03:21 AM] Found 2 errors. Watching for file changes. +[12:03:29 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts -/user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts @@ -8301,6 +8705,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts No cached semantic diagnostics in the builder:: @@ -8325,6 +8730,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -8333,15 +8740,19 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} /user/username/projects/myproject/src/newfile.ts: {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} -/user/username/projects/myproject/src/externalthingnotpresent.ts: - {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} FsWatches:: +/user/username/projects/myproject: + {"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} FsWatchesRecursive:: /user/username/projects/myproject/src: {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules: + {"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} /user/username/projects/myproject/node_modules/@types: {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} @@ -8355,12 +8766,12 @@ define("src/filePresent", ["require", "exports"], function (require, exports) { function something() { return 10; } exports.something = something; }); -define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { +define("src/fileNotFound", ["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; - exports.externalThing2 = void 0; - function externalThing2() { return 20; } - exports.externalThing2 = externalThing2; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; }); define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { "use strict"; @@ -8397,8 +8808,8 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, declare module "src/filePresent" { export function something(): number; } -declare module "src/externalThingNotPresent" { - export function externalThing2(): number; +declare module "src/fileNotFound" { + export function something2(): number; } declare module "src/anotherFileReusingResolution" { } interface SomeType { @@ -8415,7 +8826,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1562,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":573,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":14,"index":5}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,16,17,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -8423,7 +8834,7 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", - "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/anotherFileReusingResolution.ts", "./src/types.ts", "./src/fileWithRef.ts", @@ -8439,7 +8850,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1562, + "end": 1535, "kind": "text" } ] @@ -8448,7 +8859,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 573, + "end": 558, "kind": "text" } ] @@ -8458,8 +8869,8 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", "./src/types.ts", "./src/filewithref.ts", @@ -8470,9 +8881,10 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThing.d.ts", - "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -8481,57 +8893,4216 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", - "./src/externalThing.tsx" - ], - "fileNamesList": [ - [ - "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts" - ], - [ - "./src/types.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts" - ], - [ - "./src/globalfilepresent.ts", - "./src/globalfilenotfound.ts", - "./src/globalnewfile.ts" - ], - [ - "./src/filepresent.ts", - "./src/externalthing.d.ts", - "./src/externalthingnotpresent.ts", - "./src/newfile.ts" - ] - ], - "fileInfos": { - "../../../../a/lib/lib.d.ts": { - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "affectsGlobalScope": true - }, - "./src/filepresent.ts": { - "version": "11598859296-export function something() { return 10; }" - }, - "./src/externalthing.d.ts": { - "version": "5686005290-export function externalThing1(): number;" - }, - "./src/externalthingnotpresent.ts": { - "version": "5318862050-export function externalThing2() { return 20; }" - }, - "./src/anotherfilereusingresolution.ts": { - "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" - }, - "./src/types.ts": { + "./src/externalThing.tsx", + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 4 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 6 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 8 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12130 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1535) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-558) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Create external module file that could not be resolved + +Input:: +//// [/user/username/projects/myproject/src/externalThingNotPresent.ts] +export function externalThing2() { return 20; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +[12:03:38 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - use it as a name resolution result. +======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations +[12:03:48 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1807, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 653, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10273 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1807) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-653) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Write .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] +export function externalThing1() { return 10; } + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:03:57 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +[12:04:07 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/externalThing.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2069,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":738,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[33]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 2069, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 738, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "index": 1 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10582 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-2069) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +define("src/externalThing", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing1 = void 0; + function externalThing1() { return 10; } + exports.externalThing1 = externalThing1; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-738) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +declare module "src/externalThing" { + export function externalThing1(): number; +} +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Delete .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:04:15 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +[12:04:25 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + + +//// [/user/username/projects/myproject/outFile.d.ts] +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + + +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1807, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 653, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10273 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1807) +define("src/filePresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something = void 0; + function something() { return 10; } + exports.something = something; +}); +define("src/fileNotFound", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.something2 = void 0; + function something2() { return 20; } + exports.something2 = something2; +}); +define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.externalThing2 = void 0; + function externalThing2() { return 20; } + exports.externalThing2 = externalThing2; +}); +define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +function globalSomething2() { return 20; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +function globalFoo() { return 20; } +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); +define("src/newFile", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.foo = void 0; + function foo() { return 20; } + exports.foo = foo; +}); +define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +File:: /user/username/projects/myproject/outFile.d.ts +---------------------------------------------------------------------- +text: (0-653) +declare module "src/filePresent" { + export function something(): number; +} +declare module "src/fileNotFound" { + export function something2(): number; +} +declare module "src/externalThingNotPresent" { + export function externalThing2(): number; +} +declare module "src/anotherFileReusingResolution" { } +interface SomeType { +} +declare function globalSomething(): number; +declare function globalSomething2(): number; +declare function globalAnotherFileWithSameReferenes(): void; +declare function globalFoo(): number; +declare function globalMain(): void; +declare module "src/newFile" { + export function foo(): number; +} +declare module "src/main" { } + +====================================================================== + + +Change:: Install another type picked up by program + +Input:: +//// [/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts] +export function someType2(): number; + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update +Scheduling invalidateFailedLookup, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +[12:04:36 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Resolving type reference directive 'someType2', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType2/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts'. +======== Type reference directive 'someType2' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts', primary: true. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts 250 undefined Source file +[12:04:46 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts +/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts + +No cached semantic diagnostics in the builder:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype2/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/outFile.js] file written with same contents +//// [/user/username/projects/myproject/outFile.d.ts] file written with same contents +//// [/user/username/projects/myproject/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType2/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":30,"originalFileName":30,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,19,18,23,26,25,24,28,27,15,29,7],"resolvedTypeReferenceDirectives":[["someType",6],["someType2",7]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":30,"isExternalLibraryImport":true},"failedLookupLocations":[34]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1807, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 653, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./node_modules/@types/sometype2/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./node_modules/@types/someType2/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json", + "./node_modules/@types/someType2/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "affectsGlobalScope": true }, @@ -8563,6 +13134,12 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + }, + "./node_modules/@types/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): number;" } }, "options": { @@ -8579,6 +13156,7 @@ declare module "src/main" { } "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], @@ -8596,6 +13174,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" @@ -8629,7 +13208,36 @@ declare module "src/main" { } { "kind": "Import", "file": "./src/anotherfilereusingresolution.ts", - "index": 0 + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 }, { "kind": "RootFile", @@ -8638,12 +13246,7 @@ declare module "src/main" { } { "kind": "Import", "file": "./src/main.ts", - "index": 1 - }, - { - "kind": "Import", - "file": "./src/main.ts", - "index": 2 + "index": 3 } ] }, @@ -8733,13 +13336,10 @@ declare module "src/main" { } [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ], [ @@ -8787,7 +13387,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 12 + "index": 13 } ] }, @@ -8804,7 +13404,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -8823,7 +13423,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 }, { "kind": "ReferenceFile", @@ -8847,7 +13447,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -8870,7 +13470,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -8889,7 +13489,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -8908,7 +13508,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -8927,7 +13527,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -8986,13 +13586,10 @@ declare module "src/main" { } [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ], [ @@ -9021,15 +13618,46 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 10 + "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + }, + { + "fileName": "./node_modules/@types/someType2/index.d.ts", + "originalFileName": "./node_modules/@types/someType2/index.d.ts", + "path": "./node_modules/@types/sometype2/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype2/index.d.ts", + "version": "5420646020-export function someType2(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType2" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -9041,6 +13669,34 @@ declare module "src/main" { } "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ], + [ + "someType2", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -9049,13 +13705,10 @@ declare module "src/main" { } } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -9078,146 +13731,87 @@ declare module "src/main" { } "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 9333 -} - -//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/myproject/outFile.js ----------------------------------------------------------------------- -text: (0-1562) -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing2 = void 0; - function externalThing2() { return 20; } - exports.externalThing2 = externalThing2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - -====================================================================== -====================================================================== -File:: /user/username/projects/myproject/outFile.d.ts ----------------------------------------------------------------------- -text: (0-573) -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/externalThingNotPresent" { - export function externalThing2(): number; -} -declare module "src/anotherFileReusingResolution" { } -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; + "size": 10877 } -declare module "src/main" { } - -====================================================================== +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] file written with same contents -Change:: Write .ts file that takes preference over resolved .d.ts file +Change:: Delete existing type picked up by program Input:: -//// [/user/username/projects/myproject/src/externalThing.ts] -export function externalThing1() { return 10; } - +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] deleted Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations +FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file +Scheduling update +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Scheduling update -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:03:30 AM] File change detected. Starting incremental compilation... +Scheduling invalidateFailedLookup, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +[12:04:55 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program CreatingProgramWith:: - roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -2 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -src/main.ts:3:28 - error TS2792: Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? - -3 import { something2 } from "./fileNotFound"; -   ~~~~~~~~~~~~~~~~ - -[12:03:40 AM] Found 2 errors. Watching for file changes. +Reusing resolution of type reference directive 'someType2' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts'. +[12:05:05 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/user/username/projects/myproject/outFile.js","project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts -/user/username/projects/myproject/src/externalThing.ts /user/username/projects/myproject/src/types.ts /user/username/projects/myproject/src/fileWithRef.ts /user/username/projects/myproject/src/globalFilePresent.ts @@ -9227,6 +13821,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts No cached semantic diagnostics in the builder:: @@ -9256,104 +13851,30 @@ WatchedFiles:: /user/username/projects/myproject/src/globalnewfile.ts: {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: - {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} -/user/username/projects/myproject/src/newfile.ts: - {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} -/user/username/projects/myproject/src/externalthingnotpresent.ts: - {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} -/user/username/projects/myproject/src/externalthing.ts: - {"fileName":"/user/username/projects/myproject/src/externalThing.ts","pollingInterval":250} - -FsWatches:: - -FsWatchesRecursive:: -/user/username/projects/myproject/src: - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} -/user/username/projects/myproject/node_modules/@types: - {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} - -exitCode:: ExitStatus.undefined - -//// [/user/username/projects/myproject/outFile.js] -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing2 = void 0; - function externalThing2() { return 20; } - exports.externalThing2 = externalThing2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -define("src/externalThing", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing1 = void 0; - function externalThing1() { return 10; } - exports.externalThing1 = externalThing1; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype2/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts","pollingInterval":250} +FsWatches:: -//// [/user/username/projects/myproject/outFile.d.ts] -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/externalThingNotPresent" { - export function externalThing2(): number; -} -declare module "src/anotherFileReusingResolution" { } -declare module "src/externalThing" { - export function externalThing1(): number; -} -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; -} -declare module "src/main" { } +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/outFile.js] file written with same contents +//// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1824,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":658,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":3,"file":15,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[19,20,18,16,21,24,23,22,26,25,15,27,7],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"failedLookupLocations":[28,29,30,31,32]},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[20,33]},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType2",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -9361,9 +13882,9 @@ declare module "src/main" { } "commonSourceDirectory": "./", "sourceFiles": [ "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/externalThing.ts", "./src/types.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", @@ -9378,7 +13899,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 1824, + "end": 1807, "kind": "text" } ] @@ -9387,7 +13908,7 @@ declare module "src/main" { } "sections": [ { "pos": 0, - "end": 658, + "end": 653, "kind": "text" } ] @@ -9397,10 +13918,10 @@ declare module "src/main" { } "fileNames": [ "../../../../a/lib/lib.d.ts", "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/anotherfilereusingresolution.ts", - "./src/externalthing.ts", "./src/types.ts", "./src/filewithref.ts", "./src/globalfilepresent.ts", @@ -9410,11 +13931,12 @@ declare module "src/main" { } "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype2/index.d.ts", "./src/filePresent.ts", + "./src/fileNotFound.ts", "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", "./src/anotherFileReusingResolution.ts", - "./src/externalThing.ts", "./src/fileWithRef.ts", "./src/globalFilePresent.ts", "./src/globalFileNotFound.ts", @@ -9422,16 +13944,15 @@ declare module "src/main" { } "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx", - "./src/externalThing.tsx" + "./node_modules/@types/someType2/index.d.ts", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType2/package.json" ], "fileNamesList": [ [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], @@ -9449,6 +13970,7 @@ declare module "src/main" { } ], [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" @@ -9462,6 +13984,9 @@ declare module "src/main" { } "./src/filepresent.ts": { "version": "11598859296-export function something() { return 10; }" }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, "./src/externalthing.d.ts": { "version": "5686005290-export function externalThing1(): number;" }, @@ -9471,9 +13996,6 @@ declare module "src/main" { } "./src/anotherfilereusingresolution.ts": { "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" }, - "./src/externalthing.ts": { - "version": "5618215488-export function externalThing1() { return 10; }" - }, "./src/types.ts": { "version": "-12575322908-interface SomeType {}", "affectsGlobalScope": true @@ -9506,6 +14028,9 @@ declare module "src/main" { } }, "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();" + }, + "./node_modules/@types/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): number;" } }, "options": { @@ -9522,6 +14047,7 @@ declare module "src/main" { } "referencedMap": { "./src/anotherfilereusingresolution.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts" ], @@ -9539,6 +14065,7 @@ declare module "src/main" { } ], "./src/main.ts": [ "./src/filepresent.ts", + "./src/filenotfound.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", "./src/newfile.ts" @@ -9576,7 +14103,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 3 + "index": 4 }, { "kind": "Import", @@ -9590,6 +14117,30 @@ declare module "src/main" { } } ] }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, { "fileName": "./src/externalThing.d.ts", "originalFileName": "./src/externalThing.d.ts", @@ -9603,6 +14154,10 @@ declare module "src/main" { } "file": "./src/anotherfilereusingresolution.ts", "index": 2 }, + { + "kind": "RootFile", + "index": 1 + }, { "kind": "Import", "file": "./src/main.ts", @@ -9672,13 +14227,10 @@ declare module "src/main" { } [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ], [ @@ -9711,20 +14263,6 @@ declare module "src/main" { } } ] }, - { - "fileName": "./src/externalThing.ts", - "originalFileName": "./src/externalThing.ts", - "path": "./src/externalthing.ts", - "resolvedPath": "./src/externalthing.ts", - "version": "5618215488-export function externalThing1() { return 10; }", - "flags": 0, - "includeReasons": [ - { - "kind": "RootFile", - "index": 1 - } - ] - }, { "fileName": "./src/types.ts", "originalFileName": "./src/types.ts", @@ -9740,7 +14278,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 12 + "index": 13 } ] }, @@ -9757,7 +14295,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 4 + "index": 5 } ] }, @@ -9776,7 +14314,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 7 + "index": 8 }, { "kind": "ReferenceFile", @@ -9800,7 +14338,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 6 + "index": 7 }, { "kind": "ReferenceFile", @@ -9823,7 +14361,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 5 + "index": 6 } ] }, @@ -9842,7 +14380,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 9 + "index": 10 } ] }, @@ -9861,7 +14399,7 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 8 + "index": 9 } ] }, @@ -9880,7 +14418,7 @@ declare module "src/main" { } }, { "kind": "RootFile", - "index": 11 + "index": 12 } ] }, @@ -9939,13 +14477,10 @@ declare module "src/main" { } [ "./fileNotFound", { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } } ], [ @@ -9974,15 +14509,31 @@ declare module "src/main" { } "includeReasons": [ { "kind": "RootFile", - "index": 10 + "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType2/index.d.ts", + "originalFileName": "./node_modules/@types/someType2/index.d.ts", + "path": "./node_modules/@types/sometype2/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype2/index.d.ts", + "version": "5420646020-export function someType2(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType2" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ "./src/anotherFileReusingResolution.ts", - "./src/externalThing.ts", + "./src/externalThing.d.ts", "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", "./src/filePresent.ts", "./src/fileWithRef.ts", "./src/globalAnotherFileWithSameReferenes.ts", @@ -9994,6 +14545,21 @@ declare module "src/main" { } "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType2", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -10002,13 +14568,10 @@ declare module "src/main" { } } }, { - "failedLookupLocations": [ - "./src/fileNotFound.ts", - "./src/fileNotFound.tsx", - "./src/fileNotFound.d.ts", - "./src/fileNotFound.js", - "./src/fileNotFound.jsx" - ] + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } }, { "resolvedModule": { @@ -10031,96 +14594,22 @@ declare module "src/main" { } "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 9642 -} - -//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/myproject/outFile.js ----------------------------------------------------------------------- -text: (0-1824) -define("src/filePresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.something = void 0; - function something() { return 10; } - exports.something = something; -}); -define("src/externalThingNotPresent", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing2 = void 0; - function externalThing2() { return 20; } - exports.externalThing2 = externalThing2; -}); -define("src/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; -}); -define("src/externalThing", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.externalThing1 = void 0; - function externalThing1() { return 10; } - exports.externalThing1 = externalThing1; -}); -/// -function globalSomething() { return 10; } -function globalSomething2() { return 20; } -/// -/// -function globalAnotherFileWithSameReferenes() { } -function globalFoo() { return 20; } -/// -/// -/// -function globalMain() { } -globalSomething(); -globalFoo(); -define("src/newFile", ["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.foo = void 0; - function foo() { return 20; } - exports.foo = foo; -}); -define("src/main", ["require", "exports", "src/filePresent"], function (require, exports, filePresent_1) { - "use strict"; - exports.__esModule = true; - filePresent_1.something(); -}); - -====================================================================== -====================================================================== -File:: /user/username/projects/myproject/outFile.d.ts ----------------------------------------------------------------------- -text: (0-658) -declare module "src/filePresent" { - export function something(): number; -} -declare module "src/externalThingNotPresent" { - export function externalThing2(): number; -} -declare module "src/anotherFileReusingResolution" { } -declare module "src/externalThing" { - export function externalThing1(): number; -} -interface SomeType { -} -declare function globalSomething(): number; -declare function globalSomething2(): number; -declare function globalAnotherFileWithSameReferenes(): void; -declare function globalFoo(): number; -declare function globalMain(): void; -declare module "src/newFile" { - export function foo(): number; + "size": 10280 } -declare module "src/main" { } - -====================================================================== +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index 32a8a36bc017c..fd6b498c53af3 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -39,6 +39,9 @@ function globalSomething() { return 10; } //// [/user/username/projects/myproject/src/externalThing.d.ts] export function externalThing1(): number; +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] +export function someType(): number; + //// [/user/username/projects/myproject/tsconfig.json] {"compilerOptions":{"module":"amd","composite":true,"persistResolutions":true,"traceResolution":true},"include":["src/**/*.ts"]} @@ -58,7 +61,7 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js --p . -w --extendedDiagnostics Output:: -[12:00:39 AM] Starting compilation in watch mode... +[12:00:47 AM] Starting compilation in watch mode... Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file @@ -108,7 +111,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -138,6 +141,13 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations @@ -210,7 +220,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:01:14 AM] Found 6 errors. Watching for file changes. +[12:01:22 AM] Found 6 errors. Watching for file changes. DirectoryWatcher:: Triggered with /user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /user/username/projects/myproject 0 undefined Failed Lookup Locations @@ -232,6 +242,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts @@ -244,6 +255,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -266,6 +278,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -369,7 +383,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -385,6 +399,7 @@ export {}; "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -393,6 +408,7 @@ export {}; "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -447,7 +463,8 @@ export {}; "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -507,6 +524,10 @@ export {}; "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -563,6 +584,7 @@ export {}; }, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -1027,6 +1049,21 @@ export {}; "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -1043,6 +1080,21 @@ export {}; "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1146,12 +1198,22 @@ export {}; "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10456 + "size": 11062 } @@ -1169,7 +1231,7 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:01:19 AM] File change detected. Starting incremental compilation... +[12:01:27 AM] File change detected. Starting incremental compilation... Synchronizing program CreatingProgramWith:: @@ -1205,7 +1267,7 @@ CreatingProgramWith:: 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:02:11 AM] Found 6 errors. Watching for file changes. +[12:02:19 AM] Found 6 errors. Watching for file changes. @@ -1223,6 +1285,7 @@ Program files:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts @@ -1235,6 +1298,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -1257,6 +1321,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -1300,7 +1366,7 @@ globalSomething(); //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,11]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":12,"originalFileName":12,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":13,"originalFileName":13,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":14,"originalFileName":14,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":15,"originalFileName":15,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":16,"originalFileName":16,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":17,"originalFileName":17,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":18,"originalFileName":18,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]}],"rootFileNames":[14,13,12,15,17,16,18,10,5],"filesByName":[[11,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":12,"extension":".ts"}},{"failedLookupLocations":[19,20,21,22,23]},{"resolvedModule":{"resolvedFileName":13,"extension":".d.ts"},"failedLookupLocations":[24,25]},{"failedLookupLocations":[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1316,6 +1382,7 @@ globalSomething(); "./src/globalanotherfilewithsamereferenes.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -1324,6 +1391,7 @@ globalSomething(); "./src/globalFilePresent.ts", "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -1378,7 +1446,8 @@ globalSomething(); "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -1438,6 +1507,10 @@ globalSomething(); "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -1474,6 +1547,7 @@ globalSomething(); "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -1938,6 +2012,21 @@ globalSomething(); "index": 7 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -1954,6 +2043,21 @@ globalSomething(); "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2057,12 +2161,22 @@ globalSomething(); "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11109 + "size": 11715 } @@ -2093,7 +2207,7 @@ Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/globalMain.ts 1:: WatchInfo: /user/username/projects/myproject/src/globalMain.ts 250 undefined Source file -[12:02:21 AM] File change detected. Starting incremental compilation... +[12:02:29 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -2110,6 +2224,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -2150,7 +2265,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:03:17 AM] Found 6 errors. Watching for file changes. +[12:03:25 AM] Found 6 errors. Watching for file changes. @@ -2169,6 +2284,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts @@ -2182,6 +2298,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -2204,6 +2321,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalfilenotfound.ts: @@ -2256,7 +2375,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12],[7,9,12]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]}],"rootFileNames":[15,14,13,16,18,17,20,19,11,5],"filesByName":[[12,0]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2273,6 +2392,7 @@ declare function globalMain(): void; "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/globalfilenotfound.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", @@ -2282,6 +2402,7 @@ declare function globalMain(): void; "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -2336,7 +2457,8 @@ declare function globalMain(): void; "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -2406,6 +2528,10 @@ declare function globalMain(): void; "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -2443,6 +2569,7 @@ declare function globalMain(): void; "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -2928,6 +3055,21 @@ declare function globalMain(): void; "index": 8 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -2945,6 +3087,21 @@ declare function globalMain(): void; "filesByName": { "./src/globalfilenotfound.ts": 0 }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -3048,12 +3205,22 @@ declare function globalMain(): void; "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11717 + "size": 12323 } //// [/user/username/projects/myproject/src/globalNewFile.js] @@ -3083,7 +3250,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:03:23 AM] File change detected. Starting incremental compilation... +[12:03:31 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -3100,6 +3267,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -3130,7 +3298,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 5 import { externalThing2 } from "externalThingNotPresent";    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:04:25 AM] Found 4 errors. Watching for file changes. +[12:04:33 AM] Found 4 errors. Watching for file changes. @@ -3150,6 +3318,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts @@ -3164,6 +3333,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts WatchedFiles:: /user/username/projects/myproject/tsconfig.json: @@ -3186,6 +3356,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -3236,7 +3408,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3254,6 +3426,7 @@ declare function globalMain(): void; "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -3263,6 +3436,7 @@ declare function globalMain(): void; "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -3317,7 +3491,8 @@ declare function globalMain(): void; "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -3392,6 +3567,10 @@ declare function globalMain(): void; "./src/main.ts": { "version": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -3429,6 +3608,7 @@ declare function globalMain(): void; "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -3939,6 +4119,21 @@ declare function globalMain(): void; "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -3954,6 +4149,21 @@ declare function globalMain(): void; "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -4031,12 +4241,22 @@ declare function globalMain(): void; "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11883 + "size": 12489 } //// [/user/username/projects/myproject/src/globalNewFile.js] file written with same contents @@ -4065,7 +4285,7 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:04:31 AM] File change detected. Starting incremental compilation... +[12:04:39 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -4097,7 +4317,7 @@ Reusing resolution of module 'externalThingNotPresent' from '/user/username/proj 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:04:41 AM] Found 4 errors. Watching for file changes. +[12:04:49 AM] Found 4 errors. Watching for file changes. @@ -4117,6 +4337,7 @@ Program files:: /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/main.ts @@ -4142,6 +4363,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -4174,7 +4397,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":21,"originalFileName":21,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[15,14,13,16,19,18,17,21,20,12,5],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[22,23,24,25,26]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[27,28]},{"failedLookupLocations":[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4192,6 +4415,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalnewfile.ts", "./src/globalmain.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -4201,6 +4425,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/globalAnotherFileWithSameReferenes.ts", "./src/globalNewFile.ts", "./src/globalMain.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -4255,7 +4480,8 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -4330,6 +4556,10 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/main.ts": { "version": "-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -4367,6 +4597,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -4877,6 +5108,21 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -4892,6 +5138,21 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "./src/main.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -4969,12 +5230,22 @@ define(["require", "exports", "./filePresent"], function (require, exports, file "../../../../externalThingNotPresent.js", "../../../../externalThingNotPresent.jsx" ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 11907 + "size": 12513 } @@ -5002,7 +5273,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/main.ts 1:: WatchInfo: /user/username/projects/myproject/src/main.ts 250 undefined Source file -[12:04:49 AM] File change detected. Starting incremental compilation... +[12:04:57 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -5023,6 +5294,7 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/newFile.ts 250 undefined Source file +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -5053,7 +5325,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:05:03 AM] Found 4 errors. Watching for file changes. +[12:05:11 AM] Found 4 errors. Watching for file changes. @@ -5074,6 +5346,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/newFile.ts @@ -5100,6 +5373,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -5127,7 +5402,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":23,"originalFileName":23,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]}],"rootFileNames":[16,15,14,17,20,19,18,22,21,13,23,5],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedModule":{"resolvedFileName":23,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -5146,6 +5421,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/externalThing.d.ts", "./src/anotherFileReusingResolution.ts", @@ -5156,6 +5432,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/fileNotFound.d.ts", @@ -5210,7 +5487,8 @@ exitCode:: ExitStatus.undefined "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -5294,6 +5572,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -5332,6 +5614,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -5875,6 +6158,21 @@ exitCode:: ExitStatus.undefined "index": 9 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -5891,6 +6189,21 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -5974,12 +6287,22 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 12469 + "size": 13075 } //// [/user/username/projects/myproject/src/newFile.js] @@ -6012,7 +6335,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotF Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update -[12:05:09 AM] File change detected. Starting incremental compilation... +[12:05:17 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -6032,6 +6355,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory @@ -6052,7 +6376,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:05:29 AM] Found 2 errors. Watching for file changes. +[12:05:37 AM] Found 2 errors. Watching for file changes. @@ -6074,6 +6398,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.ts @@ -6101,6 +6426,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -6132,7 +6459,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -6152,6 +6479,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", "./src/externalThing.d.ts", @@ -6163,6 +6491,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/externalThing.ts", "./src/externalThing.tsx", "./src/externalThingNotPresent.ts", @@ -6212,7 +6541,8 @@ exitCode:: ExitStatus.undefined "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -6302,6 +6632,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -6342,6 +6676,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -6888,6 +7223,21 @@ exitCode:: ExitStatus.undefined "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -6905,6 +7255,21 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -6985,12 +7350,22 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 12332 + "size": 12938 } //// [/user/username/projects/myproject/src/fileNotFound.js] @@ -7023,7 +7398,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:05:34 AM] File change detected. Starting incremental compilation... +[12:05:42 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -7045,6 +7420,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 250 undefined Source file src/anotherFileReusingResolution.ts:4:32 - error TS2792: Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option? @@ -7056,7 +7432,7 @@ FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/fileNotFo 5 import { externalThing2 } from "externalThingNotPresent";something();    ~~~~~~~~~~~~~~~~~~~~~~~~~ -[12:05:50 AM] Found 2 errors. Watching for file changes. +[12:05:58 AM] Found 2 errors. Watching for file changes. @@ -7078,6 +7454,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/fileNotFound.d.ts @@ -7105,6 +7482,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -7136,7 +7515,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":25,"originalFileName":25,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]}],"rootFileNames":[18,17,16,15,19,22,21,20,24,23,14,25,6],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"failedLookupLocations":[32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[80]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -7156,6 +7535,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.d.ts", "./src/externalThing.d.ts", @@ -7167,6 +7547,7 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/externalThing.ts", @@ -7218,7 +7599,8 @@ exitCode:: ExitStatus.undefined "../../../externalThingNotPresent.js", "../../../externalThingNotPresent.jsx", "../../../../externalThingNotPresent.js", - "../../../../externalThingNotPresent.jsx" + "../../../../externalThingNotPresent.jsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -7308,6 +7690,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -7348,6 +7734,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", [ "./src/anotherfilereusingresolution.ts", [ @@ -7902,6 +8289,21 @@ exitCode:: ExitStatus.undefined "index": 10 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -7919,6 +8321,21 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -8003,12 +8420,22 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 12344 + "size": 12950 } @@ -8027,7 +8454,7 @@ DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/external Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update -[12:05:56 AM] File change detected. Starting incremental compilation... +[12:06:04 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -8047,6 +8474,7 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Failed Lookup Locations DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations @@ -8059,7 +8487,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/src/externalThingNotPresent.d.ts Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.d.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:06:16 AM] Found 0 errors. Watching for file changes. +[12:06:24 AM] Found 0 errors. Watching for file changes. @@ -8082,6 +8510,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/externalThingNotPresent.ts @@ -8109,6 +8538,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -8137,7 +8568,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":20,"originalFileName":20,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":27,"originalFileName":27,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[20,18,19,17,16,21,24,23,22,26,25,15,27,7],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[34]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -8158,6 +8589,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.d.ts", "./src/externalThing.d.ts", @@ -8170,10 +8602,12 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", "./src/externalThing.ts", - "./src/externalThing.tsx" + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -8269,6 +8703,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -8311,6 +8749,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/anotherfilereusingresolution.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", @@ -8774,6 +9213,21 @@ exitCode:: ExitStatus.undefined "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -8792,6 +9246,21 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -8830,12 +9299,22 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10008 + "size": 10614 } //// [/user/username/projects/myproject/src/externalThingNotPresent.js] @@ -8864,7 +9343,7 @@ Output:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -[12:06:22 AM] File change detected. Starting incremental compilation... +[12:06:30 AM] File change detected. Starting incremental compilation... Reloading new file names and options Synchronizing program @@ -8882,12 +9361,13 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/src/externalThing.js Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.js :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory error TS5055: Cannot write file '/user/username/projects/myproject/src/externalThing.d.ts' because it would overwrite input file. -[12:06:28 AM] Found 1 error. Watching for file changes. +[12:06:36 AM] Found 1 error. Watching for file changes. @@ -8911,6 +9391,7 @@ Program files:: /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/src/externalThing.ts @@ -8936,6 +9417,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} /user/username/projects/myproject/src/main.ts: {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} /a/lib/lib.d.ts: {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} /user/username/projects/myproject/src/globalnewfile.ts: @@ -8962,7 +9445,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,6,4,5,3,2,9,12,11,10,14,13,16,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":22,"originalFileName":22,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]}],"rootFileNames":[21,22,20,18,17,23,26,25,24,28,27,16,29,8],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[22,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,6,4,5,3,2,9,12,11,10,14,13,16,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -8984,6 +9467,7 @@ exitCode:: ExitStatus.undefined "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.d.ts", "./src/externalThing.d.ts", @@ -8997,9 +9481,11 @@ exitCode:: ExitStatus.undefined "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./src/fileNotFound.ts", "./src/fileNotFound.tsx", - "./src/externalThing.tsx" + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" ], "fileNamesList": [ [ @@ -9099,6 +9585,10 @@ exitCode:: ExitStatus.undefined "./src/main.ts": { "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" } }, "options": { @@ -9141,6 +9631,7 @@ exitCode:: ExitStatus.undefined "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", "./src/anotherfilereusingresolution.ts", "./src/externalthing.d.ts", "./src/externalthingnotpresent.ts", @@ -9614,6 +10105,21 @@ exitCode:: ExitStatus.undefined "index": 11 } ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true } ], "rootFileNames": [ @@ -9632,6 +10138,21 @@ exitCode:: ExitStatus.undefined "./src/newFile.ts", "./src/types.ts" ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], "resolutions": [ { "resolvedModule": { @@ -9670,12 +10191,22 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./src/newFile.ts", "extension": ".ts" } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] } ] } }, "version": "FakeTSVersion", - "size": 10354 + "size": 10960 } //// [/user/username/projects/myproject/src/externalThing.js] @@ -9688,3 +10219,2634 @@ define(["require", "exports"], function (require, exports) { }); + +Change:: Delete .ts file that takes preference over resolved .d.ts file + +Input:: +//// [/user/username/projects/myproject/src/externalThing.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory +[12:06:41 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 250 undefined Source file +[12:06:45 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +Semantic diagnostics in builder refreshed for:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[34]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.d.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/main.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10614 +} + + +Change:: Install another type picked up by program + +Input:: +//// [/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts] +export function someType2(): number; + + +Output:: +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update +Scheduling invalidateFailedLookup, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +[12:06:53 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Resolving type reference directive 'someType2', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType2/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts'. +======== Type reference directive 'someType2' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts', primary: true. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts 250 undefined Source file +[12:06:57 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts +/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype2/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType2/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;","5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,17,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":30,"originalFileName":30,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,19,18,23,26,25,24,28,27,15,29,7],"resolvedTypeReferenceDirectives":[["someType",6],["someType2",7]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[34,35]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":30,"isExternalLibraryImport":true},"failedLookupLocations":[36]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[37]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", + "./node_modules/@types/sometype2/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.d.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", + "./node_modules/@types/someType2/index.d.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType/package.json", + "./node_modules/@types/someType2/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + }, + "./node_modules/@types/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): number;", + "signature": "5420646020-export function someType2(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", + "./node_modules/@types/sometype2/index.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/main.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + }, + { + "fileName": "./node_modules/@types/someType2/index.d.ts", + "originalFileName": "./node_modules/@types/someType2/index.d.ts", + "path": "./node_modules/@types/sometype2/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype2/index.d.ts", + "version": "5420646020-export function someType2(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType2" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ], + [ + "someType2", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11191 +} + + +Change:: Delete existing type picked up by program + +Input:: +//// [/user/username/projects/myproject/node_modules/@types/someType/index.d.ts] deleted + +Output:: +FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file +Scheduling update +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Scheduling update +Scheduling invalidateFailedLookup, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +[12:07:03 AM] File change detected. Starting incremental compilation... + +Reloading new file names and options +Synchronizing program +CreatingProgramWith:: + roots: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] + options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types/someType/index.d.ts 250 undefined Source file +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.d.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType2' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts'. +[12:07:07 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/user/username/projects/myproject/src/anotherFileReusingResolution.ts","/user/username/projects/myproject/src/externalThing.d.ts","/user/username/projects/myproject/src/externalThingNotPresent.ts","/user/username/projects/myproject/src/fileNotFound.d.ts","/user/username/projects/myproject/src/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/src/globalNewFile.ts","/user/username/projects/myproject/src/main.ts","/user/username/projects/myproject/src/newFile.ts","/user/username/projects/myproject/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/user/username/projects/myproject","watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/src/filePresent.ts +/user/username/projects/myproject/src/fileNotFound.d.ts +/user/username/projects/myproject/src/externalThing.d.ts +/user/username/projects/myproject/src/externalThingNotPresent.ts +/user/username/projects/myproject/src/anotherFileReusingResolution.ts +/user/username/projects/myproject/src/types.ts +/user/username/projects/myproject/src/fileWithRef.ts +/user/username/projects/myproject/src/globalFilePresent.ts +/user/username/projects/myproject/src/globalFileNotFound.ts +/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts +/user/username/projects/myproject/src/globalNewFile.ts +/user/username/projects/myproject/src/globalMain.ts +/user/username/projects/myproject/src/newFile.ts +/user/username/projects/myproject/src/main.ts +/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts + +Semantic diagnostics in builder refreshed for:: + +WatchedFiles:: +/user/username/projects/myproject/tsconfig.json: + {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} +/user/username/projects/myproject/src/anotherfilereusingresolution.ts: + {"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","pollingInterval":250} +/user/username/projects/myproject/src/filepresent.ts: + {"fileName":"/user/username/projects/myproject/src/filePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthing.d.ts: + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/filewithref.ts: + {"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","pollingInterval":250} +/user/username/projects/myproject/src/types.ts: + {"fileName":"/user/username/projects/myproject/src/types.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalanotherfilewithsamereferenes.ts: + {"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilepresent.ts: + {"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalmain.ts: + {"fileName":"/user/username/projects/myproject/src/globalMain.ts","pollingInterval":250} +/user/username/projects/myproject/src/main.ts: + {"fileName":"/user/username/projects/myproject/src/main.ts","pollingInterval":250} +/a/lib/lib.d.ts: + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalnewfile.ts: + {"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/globalfilenotfound.ts: + {"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","pollingInterval":250} +/user/username/projects/myproject/src/newfile.ts: + {"fileName":"/user/username/projects/myproject/src/newFile.ts","pollingInterval":250} +/user/username/projects/myproject/src/filenotfound.d.ts: + {"fileName":"/user/username/projects/myproject/src/fileNotFound.d.ts","pollingInterval":250} +/user/username/projects/myproject/src/externalthingnotpresent.ts: + {"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","pollingInterval":250} +/user/username/projects/myproject/node_modules/@types/sometype2/index.d.ts: + {"fileName":"/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts","pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/myproject/node_modules/@types: + {"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType2",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[34]}]}},"version":"FakeTSVersion"} + +//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype2/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.d.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType2/index.d.ts", + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx", + "./src/externalThing.ts", + "./src/externalThing.tsx", + "./node_modules/@types/someType2/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../../../a/lib/lib.d.ts": { + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "-13601649692-export declare function something(): number;\n" + }, + "./src/filenotfound.d.ts": { + "version": "-14992185226-export declare function something2(): number;\n", + "signature": "-14992185226-export declare function something2(): number;\n" + }, + "./src/externalthing.d.ts": { + "version": "5686005290-export function externalThing1(): number;", + "signature": "5686005290-export function externalThing1(): number;" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "-16245999227-export declare function externalThing2(): number;\n" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-3531856636-export {};\n" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-10760962856-interface SomeType {\n}\n", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-1928648610-/// \n" + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-7731522637-declare function globalSomething(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-5961586139-declare function globalSomething2(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4030514825-declare function globalFoo(): number;\n", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "signature": "-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "-4788605446-export declare function foo(): number;\n" + }, + "./src/main.ts": { + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "signature": "-3531856636-export {};\n" + }, + "./node_modules/@types/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): number;", + "signature": "5420646020-export function someType2(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true, + "watch": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.d.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../a/lib/lib.d.ts", + "./node_modules/@types/sometype2/index.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.d.ts", + "./src/externalthingnotpresent.ts", + "./src/filenotfound.d.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/main.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../../../a/lib/lib.d.ts", + "originalFileName": "../../../../a/lib/lib.d.ts", + "path": "../../../../a/lib/lib.d.ts", + "resolvedPath": "../../../../a/lib/lib.d.ts", + "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.d.ts", + "originalFileName": "./src/fileNotFound.d.ts", + "path": "./src/filenotfound.d.ts", + "resolvedPath": "./src/filenotfound.d.ts", + "version": "-14992185226-export declare function something2(): number;\n", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.d.ts", + "originalFileName": "./src/externalThing.d.ts", + "path": "./src/externalthing.d.ts", + "resolvedPath": "./src/externalthing.d.ts", + "version": "5686005290-export function externalThing1(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType2/index.d.ts", + "originalFileName": "./node_modules/@types/someType2/index.d.ts", + "path": "./node_modules/@types/sometype2/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype2/index.d.ts", + "version": "5420646020-export function someType2(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType2" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.d.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.d.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType2", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/fileNotFound.ts", + "./src/fileNotFound.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.d.ts", + "extension": ".d.ts" + }, + "failedLookupLocations": [ + "./src/externalThing.ts", + "./src/externalThing.tsx" + ] + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10621 +} + diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js index f4678ed085cb6..473aac4fd4d28 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js @@ -77,7 +77,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -99,6 +99,14 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations @@ -109,7 +117,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_mod Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (10) + Files (11) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/externalThing.d.ts @@ -120,6 +128,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -150,12 +159,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Search path: /user/username/projects/myproject For info: /user/username/projects/myproject/tsconfig.json :: No config files found. Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (10) + Files (11) ----------------------------------------------- Open files: @@ -169,7 +180,7 @@ For info: /user/username/projects/myproject/src/globalMain.ts :: Config file nam Search path: /user/username/projects/myproject For info: /user/username/projects/myproject/tsconfig.json :: No config files found. Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (10) + Files (11) ----------------------------------------------- Open files: @@ -233,6 +244,9 @@ import { something2 } from "./fileNotFound"; import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Modify global file:: request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":4,"offset":1,"endLine":4,"endOffset":1,"insertString":"globalSomething();\n"},"seq":1,"type":"request"} @@ -296,6 +310,9 @@ import { something2 } from "./fileNotFound"; import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Add new globalFile and update globalMain file:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory @@ -321,9 +338,10 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (11) + Files (12) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/externalThing.d.ts @@ -335,6 +353,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -368,12 +387,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (11) + Files (12) ----------------------------------------------- Open files: @@ -383,7 +404,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (11) + Files (12) ----------------------------------------------- Open files: @@ -452,6 +473,9 @@ import { something2 } from "./fileNotFound"; import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Write file that could not be resolved by referenced path:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file @@ -478,9 +502,10 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 4 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/externalThing.d.ts @@ -493,6 +518,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -530,12 +556,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) ----------------------------------------------- Open files: @@ -545,7 +573,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) ----------------------------------------------- Open files: @@ -617,6 +645,9 @@ import { something2 } from "./fileNotFound"; import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Modify main file:: request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/main.ts","line":4,"offset":1,"endLine":4,"endOffset":1,"insertString":"something();\n"},"seq":4,"type":"request"} @@ -694,6 +725,9 @@ something(); import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Add new module and update main file:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory @@ -721,9 +755,10 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 6 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/externalThing.d.ts @@ -737,6 +772,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -777,12 +813,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) ----------------------------------------------- Open files: @@ -792,7 +830,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) ----------------------------------------------- Open files: @@ -869,6 +907,9 @@ something(); import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Write file that could not be resolved DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory @@ -894,9 +935,10 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 7 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (15) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.ts @@ -911,6 +953,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -955,12 +998,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (15) ----------------------------------------------- Open files: @@ -970,7 +1015,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (15) ----------------------------------------------- Open files: @@ -1050,6 +1095,9 @@ something(); import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Delete file that could not be resolved FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info @@ -1082,9 +1130,10 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 8 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/externalThing.d.ts @@ -1098,6 +1147,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -1138,12 +1188,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) ----------------------------------------------- Open files: @@ -1153,7 +1205,192 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + + +Write file that could not be resolved +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Running: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 9 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (15) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts + /user/username/projects/myproject/src/externalThing.d.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (15) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (15) ----------------------------------------------- Open files: @@ -1179,6 +1416,9 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} export function externalThing1(): number; @@ -1230,6 +1470,9 @@ something(); import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Create external module file that could not be resolved DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory @@ -1244,7 +1487,7 @@ Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -1252,18 +1495,22 @@ File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - ======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 9 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 10 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (16) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts @@ -1276,6 +1523,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -1285,6 +1533,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/externalThing.d.ts Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' @@ -1320,12 +1572,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (16) ----------------------------------------------- Open files: @@ -1335,7 +1589,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (16) ----------------------------------------------- Open files: @@ -1361,6 +1615,9 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} export function externalThing1(): number; @@ -1415,33 +1672,35 @@ something(); import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Write .ts file that takes preference over resolved .d.ts file DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory Scheduled: /user/username/projects/myproject/tsconfig.json Scheduled: *ensureProjectForOpenFiles* Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 10 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 11 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (15) + Files (17) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts @@ -1455,6 +1714,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts /user/username/projects/myproject/src/externalThing.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -1464,6 +1724,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/externalThing.d.ts Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' Imported via "externalThing" from file 'src/main.ts' @@ -1500,12 +1764,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/externalThing.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (15) + Files (17) ----------------------------------------------- Open files: @@ -1515,7 +1781,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (15) + Files (17) ----------------------------------------------- Open files: @@ -1541,6 +1807,9 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} export function externalThing1(): number; @@ -1598,3 +1867,612 @@ import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/externalThing.ts","version":"5618215488-export function externalThing1() { return 10; }"} export function externalThing1() { return 10; } +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + + +Delete .ts file that takes preference over resolved .d.ts file +FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 500 undefined WatchType: Closed Script info +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 500 undefined WatchType: Closed Script info +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Running: /user/username/projects/myproject/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 12 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (16) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts + /user/username/projects/myproject/src/externalThing.d.ts + /user/username/projects/myproject/src/externalThingNotPresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThing" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThingNotPresent.ts + Imported via "externalThingNotPresent" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThingNotPresent" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (16) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (16) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","version":"5318862050-export function externalThing2() { return 20; }"} +export function externalThing2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + + +Install another type picked up by program +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Running: /user/username/projects/myproject/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Resolving type reference directive 'someType2', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType2/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts'. +======== Type reference directive 'someType2' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts', primary: true. ======== +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 13 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (17) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts + /user/username/projects/myproject/src/externalThing.d.ts + /user/username/projects/myproject/src/externalThingNotPresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts + /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThing" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThingNotPresent.ts + Imported via "externalThingNotPresent" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThingNotPresent" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' + node_modules/@types/someType2/index.d.ts + Entry point for implicit type library 'someType2' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (17) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (17) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","version":"5318862050-export function externalThing2() { return 20; }"} +export function externalThing2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts","version":"5420646020-export function someType2(): number;"} +export function someType2(): number; + + +Delete existing type picked up by program +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Running: /user/username/projects/myproject/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType2' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts'. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 14 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (16) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts + /user/username/projects/myproject/src/externalThing.d.ts + /user/username/projects/myproject/src/externalThingNotPresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThing" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThingNotPresent.ts + Imported via "externalThingNotPresent" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThingNotPresent" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType2/index.d.ts + Entry point for implicit type library 'someType2' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (16) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (16) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","version":"5318862050-export function externalThing2() { return 20; }"} +export function externalThing2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts","version":"5420646020-export function someType2(): number;"} +export function someType2(): number; + diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js index f4678ed085cb6..473aac4fd4d28 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted.js @@ -77,7 +77,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -99,6 +99,14 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations @@ -109,7 +117,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_mod Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (10) + Files (11) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/externalThing.d.ts @@ -120,6 +128,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -150,12 +159,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Search path: /user/username/projects/myproject For info: /user/username/projects/myproject/tsconfig.json :: No config files found. Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (10) + Files (11) ----------------------------------------------- Open files: @@ -169,7 +180,7 @@ For info: /user/username/projects/myproject/src/globalMain.ts :: Config file nam Search path: /user/username/projects/myproject For info: /user/username/projects/myproject/tsconfig.json :: No config files found. Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (10) + Files (11) ----------------------------------------------- Open files: @@ -233,6 +244,9 @@ import { something2 } from "./fileNotFound"; import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Modify global file:: request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":4,"offset":1,"endLine":4,"endOffset":1,"insertString":"globalSomething();\n"},"seq":1,"type":"request"} @@ -296,6 +310,9 @@ import { something2 } from "./fileNotFound"; import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Add new globalFile and update globalMain file:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory @@ -321,9 +338,10 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (11) + Files (12) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/externalThing.d.ts @@ -335,6 +353,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -368,12 +387,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (11) + Files (12) ----------------------------------------------- Open files: @@ -383,7 +404,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (11) + Files (12) ----------------------------------------------- Open files: @@ -452,6 +473,9 @@ import { something2 } from "./fileNotFound"; import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Write file that could not be resolved by referenced path:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file @@ -478,9 +502,10 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 4 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/externalThing.d.ts @@ -493,6 +518,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -530,12 +556,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) ----------------------------------------------- Open files: @@ -545,7 +573,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) ----------------------------------------------- Open files: @@ -617,6 +645,9 @@ import { something2 } from "./fileNotFound"; import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Modify main file:: request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/main.ts","line":4,"offset":1,"endLine":4,"endOffset":1,"insertString":"something();\n"},"seq":4,"type":"request"} @@ -694,6 +725,9 @@ something(); import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Add new module and update main file:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory @@ -721,9 +755,10 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 6 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/externalThing.d.ts @@ -737,6 +772,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -777,12 +813,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) ----------------------------------------------- Open files: @@ -792,7 +830,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) ----------------------------------------------- Open files: @@ -869,6 +907,9 @@ something(); import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Write file that could not be resolved DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory @@ -894,9 +935,10 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 7 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (15) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.ts @@ -911,6 +953,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -955,12 +998,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (15) ----------------------------------------------- Open files: @@ -970,7 +1015,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (15) ----------------------------------------------- Open files: @@ -1050,6 +1095,9 @@ something(); import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Delete file that could not be resolved FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info @@ -1082,9 +1130,10 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 8 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/externalThing.d.ts @@ -1098,6 +1147,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -1138,12 +1188,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) ----------------------------------------------- Open files: @@ -1153,7 +1205,192 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + + +Write file that could not be resolved +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Running: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 9 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (15) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts + /user/username/projects/myproject/src/externalThing.d.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (15) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (15) ----------------------------------------------- Open files: @@ -1179,6 +1416,9 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} export function externalThing1(): number; @@ -1230,6 +1470,9 @@ something(); import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Create external module file that could not be resolved DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory @@ -1244,7 +1487,7 @@ Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -1252,18 +1495,22 @@ File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - ======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 9 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 10 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (16) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts @@ -1276,6 +1523,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -1285,6 +1533,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/externalThing.d.ts Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' @@ -1320,12 +1572,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (16) ----------------------------------------------- Open files: @@ -1335,7 +1589,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (16) ----------------------------------------------- Open files: @@ -1361,6 +1615,9 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} export function externalThing1(): number; @@ -1415,33 +1672,35 @@ something(); import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Write .ts file that takes preference over resolved .d.ts file DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory Scheduled: /user/username/projects/myproject/tsconfig.json Scheduled: *ensureProjectForOpenFiles* Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 10 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 11 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (15) + Files (17) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts @@ -1455,6 +1714,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts /user/username/projects/myproject/src/externalThing.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -1464,6 +1724,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/externalThing.d.ts Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' Imported via "externalThing" from file 'src/main.ts' @@ -1500,12 +1764,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/externalThing.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (15) + Files (17) ----------------------------------------------- Open files: @@ -1515,7 +1781,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (15) + Files (17) ----------------------------------------------- Open files: @@ -1541,6 +1807,9 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} export function externalThing1(): number; @@ -1598,3 +1867,612 @@ import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/externalThing.ts","version":"5618215488-export function externalThing1() { return 10; }"} export function externalThing1() { return 10; } +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + + +Delete .ts file that takes preference over resolved .d.ts file +FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 500 undefined WatchType: Closed Script info +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 500 undefined WatchType: Closed Script info +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Running: /user/username/projects/myproject/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 12 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (16) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts + /user/username/projects/myproject/src/externalThing.d.ts + /user/username/projects/myproject/src/externalThingNotPresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThing" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThingNotPresent.ts + Imported via "externalThingNotPresent" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThingNotPresent" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (16) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (16) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","version":"5318862050-export function externalThing2() { return 20; }"} +export function externalThing2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + + +Install another type picked up by program +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Running: /user/username/projects/myproject/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Resolving type reference directive 'someType2', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType2/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts'. +======== Type reference directive 'someType2' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts', primary: true. ======== +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 13 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (17) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts + /user/username/projects/myproject/src/externalThing.d.ts + /user/username/projects/myproject/src/externalThingNotPresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts + /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThing" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThingNotPresent.ts + Imported via "externalThingNotPresent" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThingNotPresent" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' + node_modules/@types/someType2/index.d.ts + Entry point for implicit type library 'someType2' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (17) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (17) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","version":"5318862050-export function externalThing2() { return 20; }"} +export function externalThing2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts","version":"5420646020-export function someType2(): number;"} +export function someType2(): number; + + +Delete existing type picked up by program +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Running: /user/username/projects/myproject/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType2' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts'. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 14 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (16) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts + /user/username/projects/myproject/src/externalThing.d.ts + /user/username/projects/myproject/src/externalThingNotPresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThing" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThingNotPresent.ts + Imported via "externalThingNotPresent" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThingNotPresent" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType2/index.d.ts + Entry point for implicit type library 'someType2' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (16) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (16) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","version":"5318862050-export function externalThing2() { return 20; }"} +export function externalThing2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts","version":"5420646020-export function someType2(): number;"} +export function someType2(): number; + diff --git a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js index a330592bd49e3..d0a2f000356bb 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js +++ b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js @@ -37,12 +37,14 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalMai FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/types.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Completely Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (10) + Files (11) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/externalThing.d.ts @@ -53,6 +55,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -83,12 +86,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Search path: /user/username/projects/myproject For info: /user/username/projects/myproject/tsconfig.json :: No config files found. Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (10) + Files (11) ----------------------------------------------- Open files: @@ -102,7 +107,7 @@ For info: /user/username/projects/myproject/src/globalMain.ts :: Config file nam Search path: /user/username/projects/myproject For info: /user/username/projects/myproject/tsconfig.json :: No config files found. Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (10) + Files (11) ----------------------------------------------- Open files: @@ -166,6 +171,9 @@ import { something2 } from "./fileNotFound"; import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Modify global file:: request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/globalMain.ts","line":4,"offset":1,"endLine":4,"endOffset":1,"insertString":"globalSomething();\n"},"seq":1,"type":"request"} @@ -229,6 +237,9 @@ import { something2 } from "./fileNotFound"; import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Add new globalFile and update globalMain file:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/globalNewFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory @@ -275,7 +286,7 @@ File '/externalThingNotPresent.ts' does not exist. File '/externalThingNotPresent.tsx' does not exist. File '/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. -Directory '/user/username/projects/myproject/node_modules' does not exist, skipping all lookups in it. +File '/user/username/projects/myproject/node_modules/@types/externalThingNotPresent.d.ts' does not exist. Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it. Directory '/user/username/node_modules' does not exist, skipping all lookups in it. Directory '/user/node_modules' does not exist, skipping all lookups in it. @@ -298,13 +309,19 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. +======== Resolving type reference directive 'someType', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts', primary: true. ======== DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (11) + Files (12) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/externalThing.d.ts @@ -316,6 +333,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -349,12 +367,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (11) + Files (12) ----------------------------------------------- Open files: @@ -364,7 +384,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (11) + Files (12) ----------------------------------------------- Open files: @@ -433,6 +453,9 @@ import { something2 } from "./fileNotFound"; import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Write file that could not be resolved by referenced path:: FileWatcher:: Triggered with /user/username/projects/myproject/src/globalFileNotFound.ts 0:: WatchInfo: /user/username/projects/myproject/src/globalFileNotFound.ts 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file @@ -459,9 +482,10 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 4 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/externalThing.d.ts @@ -474,6 +498,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalNewFile.ts /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -511,12 +536,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) ----------------------------------------------- Open files: @@ -526,7 +553,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (12) + Files (13) ----------------------------------------------- Open files: @@ -598,6 +625,9 @@ import { something2 } from "./fileNotFound"; import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Modify main file:: request:{"command":"change","arguments":{"file":"/user/username/projects/myproject/src/main.ts","line":4,"offset":1,"endLine":4,"endOffset":1,"insertString":"something();\n"},"seq":4,"type":"request"} @@ -675,6 +705,9 @@ something(); import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Add new module and update main file:: DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/newFile.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory @@ -702,9 +735,10 @@ File '/user/username/projects/myproject/src/newFile.ts' exist - use it as a name ======== Module name './newFile' was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. ======== Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 6 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/externalThing.d.ts @@ -718,6 +752,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -758,12 +793,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) ----------------------------------------------- Open files: @@ -773,7 +810,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) ----------------------------------------------- Open files: @@ -850,6 +887,9 @@ something(); import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Write file that could not be resolved DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory @@ -883,9 +923,10 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 7 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (15) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/fileNotFound.ts @@ -900,6 +941,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -944,12 +986,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (15) ----------------------------------------------- Open files: @@ -959,7 +1003,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (15) ----------------------------------------------- Open files: @@ -1039,6 +1083,9 @@ something(); import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Delete file that could not be resolved FileWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts 2:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info @@ -1071,9 +1118,10 @@ Reusing resolution of module './filePresent' from '/user/username/projects/mypro Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was not resolved. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 8 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts /user/username/projects/myproject/src/externalThing.d.ts @@ -1087,6 +1135,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -1127,12 +1176,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) ----------------------------------------------- Open files: @@ -1142,7 +1193,192 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (13) + Files (14) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + + +Write file that could not be resolved +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/fileNotFound.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Running: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileNotFound.ts 500 undefined WatchType: Closed Script info +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +======== Resolving module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== +Module resolution kind is not specified, using 'Classic'. +File '/user/username/projects/myproject/src/fileNotFound.ts' exist - use it as a name resolution result. +======== Module name './fileNotFound' was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. ======== +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 9 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (15) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts + /user/username/projects/myproject/src/externalThing.d.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "externalThing" from file 'src/main.ts' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (15) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (15) ----------------------------------------------- Open files: @@ -1168,6 +1404,9 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} export function externalThing1(): number; @@ -1219,6 +1458,9 @@ something(); import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Create external module file that could not be resolved DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThingNotPresent.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory @@ -1233,7 +1475,7 @@ Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThingNotPresent.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. ======== Resolving module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -1241,18 +1483,22 @@ File '/user/username/projects/myproject/src/externalThingNotPresent.ts' exist - ======== Module name 'externalThingNotPresent' was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. ======== Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' found in cache from location '/user/username/projects/myproject/src', it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 9 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 10 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (16) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts @@ -1265,6 +1511,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/globalMain.ts /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -1274,6 +1521,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/externalThing.d.ts Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' @@ -1309,12 +1560,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/main.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (16) ----------------------------------------------- Open files: @@ -1324,7 +1577,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (14) + Files (16) ----------------------------------------------- Open files: @@ -1350,6 +1603,9 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} export function externalThing1(): number; @@ -1404,33 +1660,35 @@ something(); import { externalThing1 } from "externalThing"; import { externalThing2 } from "externalThingNotPresent"; +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + Write .ts file that takes preference over resolved .d.ts file DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory Scheduled: /user/username/projects/myproject/tsconfig.json Scheduled: *ensureProjectForOpenFiles* Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations -Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations Running: /user/username/projects/myproject/tsconfig.json FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 500 undefined WatchType: Closed Script info Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was not resolved. Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. -Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was not resolved. -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 10 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 11 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (15) + Files (17) /a/lib/lib.d.ts /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts /user/username/projects/myproject/src/externalThing.d.ts /user/username/projects/myproject/src/externalThingNotPresent.ts /user/username/projects/myproject/src/anotherFileReusingResolution.ts @@ -1444,6 +1702,7 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) /user/username/projects/myproject/src/newFile.ts /user/username/projects/myproject/src/main.ts /user/username/projects/myproject/src/externalThing.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts ../../../../a/lib/lib.d.ts @@ -1453,6 +1712,10 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' Imported via "./filePresent" from file 'src/main.ts' Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/externalThing.d.ts Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' Imported via "externalThing" from file 'src/main.ts' @@ -1489,12 +1752,14 @@ Project '/user/username/projects/myproject/tsconfig.json' (Configured) Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' src/externalThing.ts Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' ----------------------------------------------- Running: *ensureProjectForOpenFiles* Before ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (15) + Files (17) ----------------------------------------------- Open files: @@ -1504,7 +1769,7 @@ Open files: Projects: /user/username/projects/myproject/tsconfig.json After ensureProjectForOpenFiles: Project '/user/username/projects/myproject/tsconfig.json' (Configured) - Files (15) + Files (17) ----------------------------------------------- Open files: @@ -1530,6 +1795,9 @@ interface Array { length: number; [n: number]: T; } {"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} export function something() { return 10; } +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + {"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} export function externalThing1(): number; @@ -1587,3 +1855,612 @@ import { externalThing2 } from "externalThingNotPresent"; {"fileName":"/user/username/projects/myproject/src/externalThing.ts","version":"5618215488-export function externalThing1() { return 10; }"} export function externalThing1() { return 10; } +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + + +Delete .ts file that takes preference over resolved .d.ts file +FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 500 undefined WatchType: Closed Script info +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts 2:: WatchInfo: /user/username/projects/myproject/src/externalThing.ts 500 undefined WatchType: Closed Script info +DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/externalThing.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory +Running: /user/username/projects/myproject/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 12 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (16) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts + /user/username/projects/myproject/src/externalThing.d.ts + /user/username/projects/myproject/src/externalThingNotPresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThing" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThingNotPresent.ts + Imported via "externalThingNotPresent" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThingNotPresent" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (16) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (16) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","version":"5318862050-export function externalThing2() { return 20; }"} +export function externalThing2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + + +Install another type picked up by program +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2 :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Running: /user/username/projects/myproject/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType/index.d.ts'. +======== Resolving type reference directive 'someType2', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types'. ======== +Resolving with primary search path '/user/username/projects/myproject/node_modules/@types'. +File '/user/username/projects/myproject/node_modules/@types/someType2/package.json' does not exist. +File '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts'. +======== Type reference directive 'someType2' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts', primary: true. ======== +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 13 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (17) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts + /user/username/projects/myproject/src/externalThing.d.ts + /user/username/projects/myproject/src/externalThingNotPresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType/index.d.ts + /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThing" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThingNotPresent.ts + Imported via "externalThingNotPresent" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThingNotPresent" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType/index.d.ts + Entry point for implicit type library 'someType' + node_modules/@types/someType2/index.d.ts + Entry point for implicit type library 'someType2' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (17) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (17) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","version":"5318862050-export function externalThing2() { return 20; }"} +export function externalThing2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType/index.d.ts","version":"7070062898-export function someType(): number;"} +export function someType(): number; + +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts","version":"5420646020-export function someType2(): number;"} +export function someType2(): number; + + +Delete existing type picked up by program +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +Scheduled: /user/username/projects/myproject/tsconfig.json +Scheduled: *ensureProjectForOpenFiles* +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one +Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Scheduled: /user/username/projects/myproject/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/someType :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos in them +Running: /user/username/projects/myproject/tsconfig.json +Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThing.d.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/externalThingNotPresent.ts'. +Reusing resolution of type reference directive 'someType2' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts'. +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 14 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (16) + /a/lib/lib.d.ts + /user/username/projects/myproject/src/filePresent.ts + /user/username/projects/myproject/src/fileNotFound.ts + /user/username/projects/myproject/src/externalThing.d.ts + /user/username/projects/myproject/src/externalThingNotPresent.ts + /user/username/projects/myproject/src/anotherFileReusingResolution.ts + /user/username/projects/myproject/src/types.ts + /user/username/projects/myproject/src/fileWithRef.ts + /user/username/projects/myproject/src/globalFilePresent.ts + /user/username/projects/myproject/src/globalFileNotFound.ts + /user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts + /user/username/projects/myproject/src/globalNewFile.ts + /user/username/projects/myproject/src/globalMain.ts + /user/username/projects/myproject/src/newFile.ts + /user/username/projects/myproject/src/main.ts + /user/username/projects/myproject/node_modules/@types/someType2/index.d.ts + + + ../../../../a/lib/lib.d.ts + Default library + src/filePresent.ts + Imported via "./filePresent" from file 'src/anotherFileReusingResolution.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Imported via "./filePresent" from file 'src/main.ts' + Imported via "./filePresent" from file 'src/main.ts' + src/fileNotFound.ts + Imported via "./fileNotFound" from file 'src/anotherFileReusingResolution.ts' + Imported via "./fileNotFound" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThing.d.ts + Imported via "externalThing" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThing" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/externalThingNotPresent.ts + Imported via "externalThingNotPresent" from file 'src/anotherFileReusingResolution.ts' + Imported via "externalThingNotPresent" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/anotherFileReusingResolution.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/types.ts + Referenced via './types.ts' from file 'src/fileWithRef.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/fileWithRef.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalFilePresent.ts + Referenced via './globalFilePresent.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + Referenced via './globalFilePresent.ts' from file 'src/globalMain.ts' + src/globalFileNotFound.ts + Referenced via './globalFileNotFound.ts' from file 'src/globalAnotherFileWithSameReferenes.ts' + Referenced via './globalFileNotFound.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalAnotherFileWithSameReferenes.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalNewFile.ts + Referenced via './globalNewFile.ts' from file 'src/globalMain.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/globalMain.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/newFile.ts + Imported via "./newFile" from file 'src/main.ts' + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + src/main.ts + Matched by include pattern 'src/**/*.ts' in 'tsconfig.json' + node_modules/@types/someType2/index.d.ts + Entry point for implicit type library 'someType2' + +----------------------------------------------- +Running: *ensureProjectForOpenFiles* +Before ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (16) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json +After ensureProjectForOpenFiles: +Project '/user/username/projects/myproject/tsconfig.json' (Configured) + Files (16) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/src/main.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + FileName: /user/username/projects/myproject/src/globalMain.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tsconfig.json + +Project: /user/username/projects/myproject/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/src/filePresent.ts","version":"11598859296-export function something() { return 10; }"} +export function something() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/fileNotFound.ts","version":"-497034637-export function something2() { return 20; }"} +export function something2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/externalThing.d.ts","version":"5686005290-export function externalThing1(): number;"} +export function externalThing1(): number; + +{"fileName":"/user/username/projects/myproject/src/externalThingNotPresent.ts","version":"5318862050-export function externalThing2() { return 20; }"} +export function externalThing2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/anotherFileReusingResolution.ts","version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { something } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/src/types.ts","version":"-12575322908-interface SomeType {}"} +interface SomeType {} + +{"fileName":"/user/username/projects/myproject/src/fileWithRef.ts","version":"-6085631553-/// "} +/// + +{"fileName":"/user/username/projects/myproject/src/globalFilePresent.ts","version":"-5627034801-function globalSomething() { return 10; }"} +function globalSomething() { return 10; } + +{"fileName":"/user/username/projects/myproject/src/globalFileNotFound.ts","version":"-6310824062-function globalSomething2() { return 20; }"} +function globalSomething2() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n"} +/// +/// +function globalAnotherFileWithSameReferenes() { } + + +{"fileName":"/user/username/projects/myproject/src/globalNewFile.ts","version":"4916490342-function globalFoo() { return 20; }"} +function globalFoo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/globalMain.ts","version":"-9112452180-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();\nglobalFoo();\n"} +/// +/// +/// +function globalMain() { } +globalSomething(); +globalFoo(); + + +{"fileName":"/user/username/projects/myproject/src/newFile.ts","version":"4428918903-export function foo() { return 20; }"} +export function foo() { return 20; } + +{"fileName":"/user/username/projects/myproject/src/main.ts","version":"-8454091480-import { foo } from \"./newFile\";\nimport { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nsomething();\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";"} +import { foo } from "./newFile"; +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +something(); +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +{"fileName":"/user/username/projects/myproject/node_modules/@types/someType2/index.d.ts","version":"5420646020-export function someType2(): number;"} +export function someType2(): number; + From 4118283db6b0af46827e31fa951ca8e4340ac10d Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 24 May 2021 17:59:29 -0700 Subject: [PATCH 45/48] Save names of auto type directive names so that we can update program correctly --- src/compiler/builder.ts | 6 + src/compiler/program.ts | 28 +- src/compiler/types.ts | 2 + .../unittests/tsc/persistResolutions.ts | 4 +- ...nd-uses-it-for-new-program-with-outFile.js | 102 +- ...-resolution-and-uses-it-for-new-program.js | 95 +- ...er-resolutions-are-cleaned-with-outFile.js | 77 +- ...can-build-after-resolutions-are-cleaned.js | 70 +- ...-saved-in-tsbuildinfo-file-with-outFile.js | 72 +- ...ons-have-been-saved-in-tsbuildinfo-file.js | 65 +- ...nd-uses-it-for-new-program-with-outFile.js | 77 +- ...-resolution-and-uses-it-for-new-program.js | 70 +- ...nd-uses-it-for-new-program-with-outFile.js | 982 +++++++++++++++-- ...-resolution-and-uses-it-for-new-program.js | 998 ++++++++++++++++-- ...er-resolutions-are-cleaned-with-outFile.js | 99 +- ...can-build-after-resolutions-are-cleaned.js | 99 +- ...-saved-in-tsbuildinfo-file-with-outFile.js | 101 +- ...ons-have-been-saved-in-tsbuildinfo-file.js | 94 +- ...nd-uses-it-for-new-program-with-outFile.js | 99 +- ...-resolution-and-uses-it-for-new-program.js | 92 +- 20 files changed, 2736 insertions(+), 496 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index 9e8ea12ac8aa7..16927b47ea30e 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -87,6 +87,7 @@ namespace ts { sourceFileToPackageName: ESMap; projectReferences: readonly ProjectReference[] | undefined; resolvedProjectReferences: readonly (ResolvedProjectReferenceOfProgramFromBuildInfo | undefined)[] | undefined; + automaticTypeDirectiveNames: string[] | undefined; resolvedTypeReferenceDirectives: ESMap; fileProcessingDiagnostics: FilePreprocessingDiagnostic[] | undefined; } @@ -351,6 +352,7 @@ namespace ts { projectReferences: state.program.getProjectReferences(), resolvedProjectReferences: state.program.getResolvedProjectReferences()?.map(toResolvedProjectReferenceOfProgramFromBuildInfo), resolvedTypeReferenceDirectives: state.program.getResolvedTypeReferenceDirectives(), + automaticTypeDirectiveNames: state.program.getAutomaticTypeDirectiveNames(), fileProcessingDiagnostics: state.program.getFileProcessingDiagnostics(), }; @@ -918,6 +920,7 @@ namespace ts { filesByName: readonly PersistedProgramFileByNameEntry[] | undefined; projectReferences: readonly PersistedProgramProjectReference[] | undefined; resolvedProjectReferences: readonly (PersistedProgramResolvedProjectReference | undefined)[] | undefined; + automaticTypeDirectiveNames: string[] | undefined; resolvedTypeReferenceDirectives: readonly PersistedProgramResolutionEntry[] | undefined; fileProcessingDiagnostics: readonly PersistedProgramFilePreprocessingDiagnostic[] | undefined; resolutions: readonly PersistedProgramResolution[] | undefined; @@ -1030,6 +1033,7 @@ namespace ts { projectReferences: program.getProjectReferences()?.map(toPersistedProgramProjectReference), resolvedProjectReferences: program.getResolvedProjectReferences()?.map(toPersistedProgramResolvedProjectReference), resolvedTypeReferenceDirectives: toPersistedProgramResolutionMap(program.getResolvedTypeReferenceDirectives()), + automaticTypeDirectiveNames: program.getAutomaticTypeDirectiveNames()?.length ? program.getAutomaticTypeDirectiveNames() : undefined, fileProcessingDiagnostics: mapToReadonlyArrayOrUndefined(program.getFileProcessingDiagnostics(), toPersistedProgramFilePreprocessingDiagnostic), resolutions: mapToReadonlyArrayOrUndefined(resolutions, toPersistedProgramResolution), }; @@ -1745,6 +1749,7 @@ namespace ts { sourceFileToPackageName, projectReferences: program.peristedProgram.projectReferences?.map(toProjectReference), resolvedProjectReferences: program.peristedProgram.resolvedProjectReferences?.map(toResolvedProjectReference), + automaticTypeDirectiveNames: program.peristedProgram.automaticTypeDirectiveNames, resolvedTypeReferenceDirectives: toResolutionMap(program.peristedProgram.resolvedTypeReferenceDirectives) || new Map(), fileProcessingDiagnostics: map(program.peristedProgram.fileProcessingDiagnostics, toFileProcessingDiagnostic), }; @@ -1863,6 +1868,7 @@ namespace ts { }, getProjectReferences: () => persistedProgramState.projectReferences, getResolvedProjectReferences: () => persistedProgramState.resolvedProjectReferences, + getAutomaticTypeDirectiveNames: () => persistedProgramState.automaticTypeDirectiveNames, getMissingFilePaths: () => missingFilePaths ||= getMissingFilePaths(persistedProgramState.filesByName), getFileIncludeReasons: () => persistedProgramState.fileIncludeReasons, getResolvedTypeReferenceDirectives: () => persistedProgramState.resolvedTypeReferenceDirectives, diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 4b50c038dda1c..52a4e99abaf9e 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -847,6 +847,7 @@ namespace ts { const cachedBindAndCheckDiagnosticsForFile: DiagnosticCache = {}; const cachedDeclarationDiagnosticsForFile: DiagnosticCache = {}; + let automaticTypeDirectiveNames: string[] | undefined; let resolvedTypeReferenceDirectives = new Map(); let fileProcessingDiagnostics: FilePreprocessingDiagnostic[] | undefined; @@ -1023,16 +1024,16 @@ namespace ts { tracing?.pop(); // load type declarations specified via 'types' argument or implicitly from types/ and node_modules/@types folders - const typeReferences: string[] = rootNames.length ? getAutomaticTypeDirectiveNames(options, host) : emptyArray; + automaticTypeDirectiveNames ||= rootNames.length ? getAutomaticTypeDirectiveNames(options, host) : emptyArray; - if (typeReferences.length) { - tracing?.push(tracing.Phase.Program, "processTypeReferences", { count: typeReferences.length }); + if (automaticTypeDirectiveNames.length) { + tracing?.push(tracing.Phase.Program, "processTypeReferences", { count: automaticTypeDirectiveNames.length }); // This containingFilename needs to match with the one used in managed-side const containingDirectory = options.configFilePath ? getDirectoryPath(options.configFilePath) : host.getCurrentDirectory(); const containingFilename = combinePaths(containingDirectory, inferredTypesContainingFile); - const resolutions = resolveTypeReferenceDirectiveNamesWorker(typeReferences, containingFilename); - for (let i = 0; i < typeReferences.length; i++) { - processTypeReferenceDirective(typeReferences[i], resolutions[i], { kind: FileIncludeKind.AutomaticTypeDirectiveFile, typeReference: typeReferences[i], packageId: resolutions[i]?.resolvedTypeReferenceDirective?.packageId }); + const resolutions = resolveTypeReferenceDirectiveNamesWorker(automaticTypeDirectiveNames, containingFilename); + for (let i = 0; i < automaticTypeDirectiveNames.length; i++) { + processTypeReferenceDirective(automaticTypeDirectiveNames[i], resolutions[i], { kind: FileIncludeKind.AutomaticTypeDirectiveFile, typeReference: automaticTypeDirectiveNames[i], packageId: resolutions[i]?.resolvedTypeReferenceDirective?.packageId }); } tracing?.pop(); } @@ -1136,6 +1137,7 @@ namespace ts { getRelationCacheSizes: () => getDiagnosticsProducingTypeChecker().getRelationCacheSizes(), getFileProcessingDiagnostics: () => fileProcessingDiagnostics, getResolvedTypeReferenceDirectives: () => resolvedTypeReferenceDirectives, + getAutomaticTypeDirectiveNames: () => automaticTypeDirectiveNames!, isSourceFileFromExternalLibrary, isSourceFileFromExternalLibraryPath, isSourceFileDefaultLibrary, @@ -1675,10 +1677,21 @@ namespace ts { return structureIsReused; } - if (changesAffectingProgramStructure(oldProgram.getCompilerOptions(), options) || host.hasChangedAutomaticTypeDirectiveNames?.()) { + if (changesAffectingProgramStructure(oldProgram.getCompilerOptions(), options)) { return StructureIsReused.SafeModules; } + if (host.hasChangedAutomaticTypeDirectiveNames) { + if (host.hasChangedAutomaticTypeDirectiveNames()) return StructureIsReused.SafeModules; + } + else { + // See if auto type reference directives have changed + automaticTypeDirectiveNames = rootNames.length ? getAutomaticTypeDirectiveNames(options, host) : emptyArray; + if (!arrayIsEqualTo(automaticTypeDirectiveNames, oldProgram.getAutomaticTypeDirectiveNames() || emptyArray)) { + return StructureIsReused.SafeModules; + } + } + // update fileName -> file mapping for (let index = 0; index < newSourceFiles.length; index++) { const newSourceFile = newSourceFiles[index]; @@ -1721,6 +1734,7 @@ namespace ts { fileReasons = oldProgram.getFileIncludeReasons(); fileProcessingDiagnostics = oldProgram.getFileProcessingDiagnostics(); resolvedTypeReferenceDirectives = oldProgram.getResolvedTypeReferenceDirectives(); + automaticTypeDirectiveNames = oldProgram.getAutomaticTypeDirectiveNames() || emptyArray; sourceFileToPackageName = oldProgram.sourceFileToPackageName; redirectTargetsMap = oldProgram.redirectTargetsMap; diff --git a/src/compiler/types.ts b/src/compiler/types.ts index e2f147af164cd..7b4243507787f 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -3937,6 +3937,7 @@ namespace ts { /* @internal */ getFileProcessingDiagnostics(): FilePreprocessingDiagnostic[] | undefined; /* @internal */ getResolvedTypeReferenceDirectives(): ESMap; + /* @internal */ getAutomaticTypeDirectiveNames(): string[]; isSourceFileFromExternalLibrary(file: SourceFile): boolean; /* @internal */ isSourceFileFromExternalLibraryPath(path: Path): boolean; isSourceFileDefaultLibrary(file: SourceFile): boolean; @@ -4040,6 +4041,7 @@ namespace ts { getMissingFilePaths(): readonly Path[]; getFileIncludeReasons(): MultiMap; getResolvedTypeReferenceDirectives(): ESMap; + getAutomaticTypeDirectiveNames(): string[] | undefined; getFilesByNameMap(): ReadonlyESMap; isSourceFileFromExternalLibraryPath(path: Path): boolean; getFileProcessingDiagnostics(): FilePreprocessingDiagnostic[] | undefined; diff --git a/src/testRunner/unittests/tsc/persistResolutions.ts b/src/testRunner/unittests/tsc/persistResolutions.ts index 3d8df849e6528..8d05e5370df8a 100644 --- a/src/testRunner/unittests/tsc/persistResolutions.ts +++ b/src/testRunner/unittests/tsc/persistResolutions.ts @@ -2,8 +2,8 @@ namespace ts.PersistentResolutionsTests { describe("unittests:: tsc:: persistResolutions::", () => { const cleanResolutionsWithProject = cleanResolutions("--p"); const cleanResolutionsAgainWithProject = cleanResolutionsAgain("--p"); - const installNewTypeWithProject = installNewType("Install another type and it is not picked by program"); - const deleteExistingTypeWithProject = deleteExistingType("Delete existing type and this will trigger new program so above new type becomes part of program"); + const installNewTypeWithProject = installNewType("Install another type"); + const deleteExistingTypeWithProject = deleteExistingType("Delete existing type"); verifyTscSerializedIncrementalEdits({ scenario: "persistResolutions", diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 65c2cceb36d4c..2417b1cd4fcef 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -181,7 +181,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -755,6 +755,9 @@ No cached semantic diagnostics in the builder:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -854,7 +857,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 9415 + "size": 9458 } @@ -986,7 +989,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1560,6 +1563,9 @@ No cached semantic diagnostics in the builder:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1659,7 +1665,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 9449 + "size": 9492 } @@ -1787,7 +1793,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2394,6 +2400,9 @@ No cached semantic diagnostics in the builder:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2493,7 +2502,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 9962 + "size": 10005 } @@ -2605,7 +2614,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -3239,6 +3248,9 @@ No cached semantic diagnostics in the builder:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -3312,7 +3324,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 10006 + "size": 10049 } @@ -3457,7 +3469,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents @@ -3521,7 +3533,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4155,6 +4167,9 @@ No cached semantic diagnostics in the builder:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -4228,7 +4243,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 10042 + "size": 10085 } @@ -4330,7 +4345,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4964,6 +4979,9 @@ No cached semantic diagnostics in the builder:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -5037,7 +5055,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 10066 + "size": 10109 } @@ -5161,7 +5179,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -5839,6 +5857,9 @@ No cached semantic diagnostics in the builder:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -5918,7 +5939,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 10576 + "size": 10619 } @@ -6019,7 +6040,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -6720,6 +6741,9 @@ No cached semantic diagnostics in the builder:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -6796,7 +6820,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 10860 + "size": 10903 } @@ -6933,7 +6957,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents @@ -7021,7 +7045,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -7722,6 +7746,9 @@ No cached semantic diagnostics in the builder:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -7798,7 +7825,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 10884 + "size": 10927 } @@ -7901,7 +7928,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[26,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[26,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -8573,6 +8600,9 @@ No cached semantic diagnostics in the builder:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -8649,7 +8679,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 10565 + "size": 10608 } @@ -8745,7 +8775,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -9446,6 +9476,9 @@ No cached semantic diagnostics in the builder:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -9522,7 +9555,7 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 10884 + "size": 10927 } @@ -9662,7 +9695,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1909,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":674,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1909,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":674,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -10428,6 +10461,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -10474,7 +10510,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 10355 + "size": 10398 } @@ -10620,7 +10656,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2178,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":762,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2178,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":762,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -11411,6 +11447,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -11457,7 +11496,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 10664 + "size": 10707 } @@ -11622,7 +11661,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2178,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":762,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2178,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":762,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -12389,6 +12428,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -12431,7 +12473,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 10303 + "size": 10346 } diff --git a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index e62ed97049a78..5228a3713dea4 100644 --- a/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -192,7 +192,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -891,6 +891,9 @@ Semantic diagnostics in builder refreshed for:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -990,7 +993,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 10285 + "size": 10328 } @@ -1133,7 +1136,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-19927227517-/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-19927227517-/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1812,6 +1815,9 @@ Semantic diagnostics in builder refreshed for:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1911,7 +1917,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 10960 + "size": 11003 } @@ -2051,7 +2057,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"604791887-/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[12,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[10,1],[9,1],[11,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"604791887-/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[12,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[10,1],[9,1],[11,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2769,6 +2775,9 @@ Semantic diagnostics in builder refreshed for:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2868,7 +2877,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 11578 + "size": 11621 } @@ -2993,7 +3002,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3744,6 +3753,9 @@ Semantic diagnostics in builder refreshed for:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -3817,7 +3829,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 11798 + "size": 11841 } @@ -3962,7 +3974,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents @@ -4027,7 +4039,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4778,6 +4790,9 @@ Semantic diagnostics in builder refreshed for:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -4851,7 +4866,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 11834 + "size": 11877 } @@ -4954,7 +4969,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -5705,6 +5720,9 @@ Semantic diagnostics in builder refreshed for:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -5778,7 +5796,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 11858 + "size": 11901 } @@ -5904,7 +5922,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -6705,6 +6723,9 @@ Semantic diagnostics in builder refreshed for:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -6784,7 +6805,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 12429 + "size": 12472 } @@ -6888,7 +6909,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -7702,6 +7723,9 @@ Semantic diagnostics in builder refreshed for:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -7778,7 +7802,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 12301 + "size": 12344 } @@ -7915,7 +7939,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents @@ -8004,7 +8028,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -8818,6 +8842,9 @@ Semantic diagnostics in builder refreshed for:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -8894,7 +8921,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 12325 + "size": 12368 } @@ -8999,7 +9026,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[15,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":19,"originalFileName":19,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[18,17,16,19,22,21,20,24,23,13,25,5],"filesByName":[[15,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":26,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[15,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":19,"originalFileName":19,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[18,17,16,19,22,21,20,24,23,13,25,5],"filesByName":[[15,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":26,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -9798,6 +9825,9 @@ Semantic diagnostics in builder refreshed for:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -9874,7 +9904,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 12425 + "size": 12468 } @@ -9973,7 +10003,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -10787,6 +10817,9 @@ Semantic diagnostics in builder refreshed for:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -10863,7 +10896,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 12325 + "size": 12368 } @@ -11076,7 +11109,7 @@ interface SomeType { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16426931566-export declare function externalThing2(): number;\r\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16426931566-export declare function externalThing2(): number;\r\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -11752,6 +11785,9 @@ interface SomeType { } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -11798,7 +11834,7 @@ interface SomeType { } }, "version": "FakeTSVersion", - "size": 10720 + "size": 10763 } @@ -11989,7 +12025,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/src/types.d.ts] file written with same contents //// [/src/project/src/types.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-497034637-export function something2() { return 20; }","5618215488-export function externalThing1() { return 10; }","5318862050-export function externalThing2() { return 20; }","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","affectsGlobalScope":true},"4428918903-export function foo() { return 20; }","2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-497034637-export function something2() { return 20; }","5618215488-export function externalThing1() { return 10; }","5318862050-export function externalThing2() { return 20; }","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","affectsGlobalScope":true},"4428918903-export function foo() { return 20; }","2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -12681,6 +12717,9 @@ define(["require", "exports"], function (require, exports) { } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -12723,7 +12762,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 9444 + "size": 9487 } diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index def20e6987c7b..f911203ca598e 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -236,7 +236,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -860,6 +860,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -975,7 +978,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10193 + "size": 10236 } @@ -1077,7 +1080,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1701,6 +1704,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1816,7 +1822,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10227 + "size": 10270 } @@ -1994,7 +2000,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2651,6 +2657,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2766,7 +2775,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10740 + "size": 10783 } @@ -2926,7 +2935,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -3610,6 +3619,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -3699,7 +3711,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10742 + "size": 10785 } @@ -3848,7 +3860,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4532,6 +4544,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -4621,7 +4636,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10766 + "size": 10809 } @@ -4797,7 +4812,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -5525,6 +5540,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -5620,7 +5638,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11276 + "size": 11319 } @@ -5773,7 +5791,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -6524,6 +6542,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -6616,7 +6637,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11560 + "size": 11603 } @@ -6771,7 +6792,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[26,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[26,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -7493,6 +7514,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -7585,7 +7609,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11241 + "size": 11284 } @@ -7733,7 +7757,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -8484,6 +8508,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -8576,7 +8603,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11560 + "size": 11603 } @@ -8682,7 +8709,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -9363,6 +9390,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -9409,7 +9439,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10183 + "size": 10226 } //// [/user/username/projects/myproject/outFile.js] @@ -9674,7 +9704,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2069,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":738,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2069,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":738,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -10370,6 +10400,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -10416,7 +10449,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10492 + "size": 10535 } //// [/user/username/projects/myproject/outFile.js] diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js index 502f3c53ee9e8..c21a300c753fd 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -236,7 +236,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -985,6 +985,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1100,7 +1103,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11063 + "size": 11106 } @@ -1213,7 +1216,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1942,6 +1945,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2057,7 +2063,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11716 + "size": 11759 } @@ -2247,7 +2253,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[12,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[10,1],[9,1],[11,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[12,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[10,1],[9,1],[11,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3015,6 +3021,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -3130,7 +3139,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12331 + "size": 12374 } @@ -3303,7 +3312,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4104,6 +4113,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -4193,7 +4205,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12504 + "size": 12547 } @@ -4343,7 +4355,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -5144,6 +5156,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -5233,7 +5248,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12528 + "size": 12571 } @@ -5411,7 +5426,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -6262,6 +6277,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -6357,7 +6375,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 13097 + "size": 13140 } @@ -6513,7 +6531,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -7377,6 +7395,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -7469,7 +7490,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12967 + "size": 13010 } @@ -7626,7 +7647,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[15,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":19,"originalFileName":19,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[18,17,16,19,22,21,20,24,23,13,25,5],"filesByName":[[15,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":26,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[15,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":19,"originalFileName":19,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[18,17,16,19,22,21,20,24,23,13,25,5],"filesByName":[[15,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":26,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -8475,6 +8496,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -8567,7 +8591,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 13069 + "size": 13112 } @@ -8718,7 +8742,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -9582,6 +9606,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -9674,7 +9701,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12967 + "size": 13010 } @@ -9861,7 +9888,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -10539,6 +10566,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -10585,7 +10615,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10512 + "size": 10555 } //// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index 92fa9c9dacab6..d8225efe36b89 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -59,7 +59,7 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics @@ -259,7 +259,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -883,6 +883,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -998,7 +1001,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10227 + "size": 10270 } @@ -1176,7 +1179,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1833,6 +1836,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1948,7 +1954,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10740 + "size": 10783 } @@ -2108,7 +2114,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2792,6 +2798,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -2881,7 +2890,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10742 + "size": 10785 } @@ -3030,7 +3039,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -3714,6 +3723,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -3803,7 +3815,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10766 + "size": 10809 } @@ -3979,7 +3991,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4707,6 +4719,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -4802,7 +4817,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11276 + "size": 11319 } @@ -4955,7 +4970,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -5706,6 +5721,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -5798,7 +5816,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11560 + "size": 11603 } @@ -5953,7 +5971,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[26,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[26,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -6675,6 +6693,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -6767,7 +6788,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11241 + "size": 11284 } @@ -6915,7 +6936,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -7666,6 +7687,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -7758,7 +7782,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11560 + "size": 11603 } @@ -7864,7 +7888,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -8545,6 +8569,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -8591,7 +8618,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10183 + "size": 10226 } //// [/user/username/projects/myproject/outFile.js] @@ -8856,7 +8883,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2069,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":738,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2069,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":738,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -9552,6 +9579,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -9598,7 +9628,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10492 + "size": 10535 } //// [/user/username/projects/myproject/outFile.js] diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index 9635100873aa4..4d8d29894e451 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -59,7 +59,7 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --b . -w --extendedDiagnostics @@ -270,7 +270,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -999,6 +999,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1114,7 +1117,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11716 + "size": 11759 } @@ -1304,7 +1307,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[12,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[10,1],[9,1],[11,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[12,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[10,1],[9,1],[11,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2072,6 +2075,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2187,7 +2193,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12331 + "size": 12374 } @@ -2360,7 +2366,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3161,6 +3167,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -3250,7 +3259,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12504 + "size": 12547 } @@ -3400,7 +3409,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4201,6 +4210,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -4290,7 +4302,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12528 + "size": 12571 } @@ -4468,7 +4480,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -5319,6 +5331,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -5414,7 +5429,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 13097 + "size": 13140 } @@ -5570,7 +5585,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -6434,6 +6449,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -6526,7 +6544,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12967 + "size": 13010 } @@ -6683,7 +6701,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[15,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":19,"originalFileName":19,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[18,17,16,19,22,21,20,24,23,13,25,5],"filesByName":[[15,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":26,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[15,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":19,"originalFileName":19,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[18,17,16,19,22,21,20,24,23,13,25,5],"filesByName":[[15,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":26,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -7532,6 +7550,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -7624,7 +7645,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 13069 + "size": 13112 } @@ -7775,7 +7796,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -8639,6 +8660,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -8731,7 +8755,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12967 + "size": 13010 } @@ -8918,7 +8942,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -9596,6 +9620,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -9642,7 +9669,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10512 + "size": 10555 } //// [/user/username/projects/myproject/src/anotherFileReusingResolution.js] diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 79f40093ffa15..1ff6cc232ceed 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -233,7 +233,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -857,6 +857,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -972,7 +975,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10193 + "size": 10236 } @@ -1074,7 +1077,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1698,6 +1701,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1813,7 +1819,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10227 + "size": 10270 } @@ -1991,7 +1997,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2648,6 +2654,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2763,7 +2772,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10740 + "size": 10783 } @@ -2923,7 +2932,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -3607,6 +3616,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -3696,7 +3708,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10742 + "size": 10785 } @@ -3845,7 +3857,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4529,6 +4541,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -4618,7 +4633,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10766 + "size": 10809 } @@ -4794,7 +4809,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -5522,6 +5537,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -5617,7 +5635,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11276 + "size": 11319 } @@ -5770,7 +5788,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -6521,6 +6539,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -6613,7 +6634,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11560 + "size": 11603 } @@ -6768,7 +6789,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[26,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[26,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -7490,6 +7511,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -7582,7 +7606,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11241 + "size": 11284 } @@ -7730,7 +7754,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -8481,6 +8505,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -8573,7 +8600,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11560 + "size": 11603 } @@ -8679,7 +8706,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -9360,6 +9387,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -9406,7 +9436,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10183 + "size": 10226 } //// [/user/username/projects/myproject/outFile.js] @@ -9671,7 +9701,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2069,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":738,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2069,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":738,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -10367,6 +10397,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -10413,7 +10446,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10492 + "size": 10535 } //// [/user/username/projects/myproject/outFile.js] diff --git a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index 06452097408ae..6c3b459fb4978 100644 --- a/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -244,7 +244,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -993,6 +993,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1108,7 +1111,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11063 + "size": 11106 } @@ -1221,7 +1224,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[11,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[9,1],[10,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1950,6 +1953,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2065,7 +2071,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11716 + "size": 11759 } @@ -2255,7 +2261,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[12,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[10,1],[9,1],[11,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[12,1],[4,1],[3,1],[2,1],[6,1],[8,1],[7,1],[10,1],[9,1],[11,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3023,6 +3029,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -3138,7 +3147,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12331 + "size": 12374 } @@ -3311,7 +3320,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4112,6 +4121,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -4201,7 +4213,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12504 + "size": 12547 } @@ -4351,7 +4363,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"affectedFilesPendingEmit":[[13,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -5152,6 +5164,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -5241,7 +5256,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12528 + "size": 12571 } @@ -5419,7 +5434,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -6270,6 +6285,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -6365,7 +6383,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 13097 + "size": 13140 } @@ -6521,7 +6539,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -7385,6 +7403,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -7477,7 +7498,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12967 + "size": 13010 } @@ -7634,7 +7655,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[15,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":19,"originalFileName":19,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[18,17,16,19,22,21,20,24,23,13,25,5],"filesByName":[[15,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":26,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"affectedFilesPendingEmit":[[14,1],[4,1],[3,1],[15,1],[2,1],[6,1],[9,1],[8,1],[7,1],[11,1],[10,1],[13,1],[12,1],[5,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":19,"originalFileName":19,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":26,"originalFileName":26,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[18,17,16,19,22,21,20,24,23,13,25,5],"filesByName":[[15,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":25,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":26,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -8483,6 +8504,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -8575,7 +8599,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 13069 + "size": 13112 } @@ -8726,7 +8750,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"affectedFilesPendingEmit":[[15,1],[5,1],[4,1],[3,1],[2,1],[7,1],[10,1],[9,1],[8,1],[12,1],[11,1],[14,1],[13,1],[6,1]],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -9590,6 +9614,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -9682,7 +9709,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12967 + "size": 13010 } @@ -9869,7 +9896,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true}}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -10547,6 +10574,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -10593,7 +10623,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10512 + "size": 10555 } //// [/user/username/projects/myproject/src/filePresent.js] diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 8ea8f694c6c38..0007300880eac 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -220,7 +220,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":882,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":337,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[60]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":882,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":337,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[60]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -877,6 +877,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -979,7 +982,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 9886 + "size": 9929 } @@ -1144,7 +1147,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":902,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":337,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[60]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":902,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":337,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[60]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -1802,6 +1805,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1904,7 +1910,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 9920 + "size": 9963 } @@ -2076,7 +2082,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":997,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":376,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":997,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":376,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -2772,6 +2778,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2874,7 +2883,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 10458 + "size": 10501 } @@ -3032,7 +3041,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1041,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1041,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -3758,6 +3767,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -3834,7 +3846,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 10533 + "size": 10576 } @@ -3981,7 +3993,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.d.ts] file written with same contents //// [/src/project/outFile.js] file written with same contents //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1041,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1041,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents @@ -4079,7 +4091,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1061,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1061,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -4806,6 +4818,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -4882,7 +4897,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 10569 + "size": 10612 } @@ -5018,7 +5033,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":422,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -5746,6 +5761,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -5822,7 +5840,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 10593 + "size": 10636 } @@ -6004,7 +6022,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1346,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":493,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[65]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1346,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":493,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[65]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -6787,6 +6805,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -6869,7 +6890,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 11122 + "size": 11165 } @@ -7038,7 +7059,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -7855,6 +7876,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -7934,7 +7958,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 11430 + "size": 11473 } @@ -8073,7 +8097,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.d.ts] file written with same contents //// [/src/project/outFile.js] file written with same contents //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents @@ -8211,7 +8235,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1630,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1630,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -9029,6 +9053,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -9108,7 +9135,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 11454 + "size": 11497 } @@ -9270,7 +9297,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1378,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":493,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[26,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1378,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":493,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"filesByName":[[26,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":27,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -10048,6 +10075,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -10127,7 +10157,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 11111 + "size": 11154 } @@ -10292,7 +10322,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1630,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1630,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":576,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -11110,6 +11140,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -11189,7 +11222,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 11454 + "size": 11497 } @@ -11329,7 +11362,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1909,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":674,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1909,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":674,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -12100,6 +12133,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -12149,7 +12185,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 10445 + "size": 10488 } @@ -12295,7 +12331,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2178,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":762,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[33]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2178,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":762,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[33]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -13091,6 +13127,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -13140,7 +13179,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 10754 + "size": 10797 } @@ -13305,7 +13344,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2178,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":762,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[30]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2178,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":762,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[30]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] ====================================================================== @@ -14077,6 +14116,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -14122,57 +14164,18 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 10393 + "size": 10436 } -Change:: Install another type and it is not picked by program +Change:: Install another type Input:: //// [/src/project/node_modules/@types/someType2/index.d.ts] export function someType2(): number; -Output:: -/lib/tsc --p src/project -exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] -Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Completely -Program files:: -/lib/lib.d.ts -/src/project/src/filePresent.ts -/src/project/src/fileNotFound.ts -/src/project/src/externalThing.ts -/src/project/src/externalThingNotPresent.ts -/src/project/src/anotherFileReusingResolution.ts -/src/project/src/types.ts -/src/project/src/fileWithRef.ts -/src/project/src/globalFilePresent.ts -/src/project/src/globalFileNotFound.ts -/src/project/src/globalAnotherFileWithSameReferenes.ts -/src/project/src/globalNewFile.ts -/src/project/src/globalMain.ts -/src/project/src/newFile.ts -/src/project/src/main.ts -/src/project/node_modules/@types/someType/index.d.ts - -No cached semantic diagnostics in the builder:: - - -//// [/src/project/outFile.d.ts] file written with same contents -//// [/src/project/outFile.js] file written with same contents -//// [/src/project/outFile.tsbuildinfo] file written with same contents -//// [/src/project/outFile.tsbuildinfo.baseline.txt] file written with same contents -//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] file written with same contents - - -Change:: Delete existing type and this will trigger new program so above new type becomes part of program -Input:: -//// [/src/project/node_modules/@types/someType] unlink - - Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. @@ -14185,6 +14188,12 @@ Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.ts'. Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== ======== Resolving type reference directive 'someType2', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== Resolving with primary search path '/src/project/node_modules/@types'. File '/src/project/node_modules/@types/someType2/package.json' does not exist. @@ -14211,6 +14220,7 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts /src/project/node_modules/@types/someType2/index.d.ts No cached semantic diagnostics in the builder:: @@ -14219,7 +14229,7 @@ No cached semantic diagnostics in the builder:: //// [/src/project/outFile.d.ts] file written with same contents //// [/src/project/outFile.js] file written with same contents //// [/src/project/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2178,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":762,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType2",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[30]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2178,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":762,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType2/index.d.ts","./node_modules/@types/someType/package.json","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":30,"originalFileName":30,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,19,18,23,26,25,24,28,27,15,29,7],"resolvedTypeReferenceDirectives":[["someType",6],["someType2",7]],"automaticTypeDirectiveNames":["someType","someType2"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":30,"isExternalLibraryImport":true},"failedLookupLocations":[32]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[33]}]}},"version":"FakeTSVersion"} //// [/src/project/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] @@ -14278,6 +14288,7 @@ No cached semantic diagnostics in the builder:: "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./node_modules/@types/sometype2/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", @@ -14291,7 +14302,9 @@ No cached semantic diagnostics in the builder:: "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./node_modules/@types/someType2/index.d.ts", + "./node_modules/@types/someType/package.json", "./node_modules/@types/someType2/package.json" ], "fileNamesList": [ @@ -14374,6 +14387,9 @@ No cached semantic diagnostics in the builder:: "./src/main.ts": { "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;" + }, "./node_modules/@types/sometype2/index.d.ts": { "version": "5420646020-export function someType2(): number;" } @@ -14848,6 +14864,21 @@ No cached semantic diagnostics in the builder:: } ] }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + }, { "fileName": "./node_modules/@types/someType2/index.d.ts", "originalFileName": "./node_modules/@types/someType2/index.d.ts", @@ -14881,6 +14912,19 @@ No cached semantic diagnostics in the builder:: "./src/types.ts" ], "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ], [ "someType2", { @@ -14895,6 +14939,800 @@ No cached semantic diagnostics in the builder:: } ] ], + "automaticTypeDirectiveNames": [ + "someType", + "someType2" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11052 +} + + + +Change:: Delete existing type +Input:: +//// [/src/project/node_modules/@types/someType] unlink + + +Output:: +/lib/tsc --p src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +======== Resolving type reference directive 'someType2', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType2/package.json' does not exist. +File '/src/project/node_modules/@types/someType2/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType2/index.d.ts', result '/src/project/node_modules/@types/someType2/index.d.ts'. +======== Type reference directive 'someType2' was successfully resolved to '/src/project/node_modules/@types/someType2/index.d.ts', primary: true. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"outFile":"/src/project/outFile.js","project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts +/src/project/node_modules/@types/someType2/index.d.ts + +No cached semantic diagnostics in the builder:: + + +//// [/src/project/outFile.d.ts] file written with same contents +//// [/src/project/outFile.js] file written with same contents +//// [/src/project/outFile.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2178,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":762,"kind":"text"}]}},"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType2",6]],"automaticTypeDirectiveNames":["someType2"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[30]}]}},"version":"FakeTSVersion"} + +//// [/src/project/outFile.tsbuildinfo.baseline.txt] file written with same contents +//// [/src/project/outFile.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/types.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./src/main.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 2178, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 762, + "kind": "text" + } + ] + } + }, + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype2/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType2/index.d.ts", + "./node_modules/@types/someType2/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + }, + "./node_modules/@types/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": {}, + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType2/index.d.ts", + "originalFileName": "./node_modules/@types/someType2/index.d.ts", + "path": "./node_modules/@types/sometype2/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype2/index.d.ts", + "version": "5420646020-export function someType2(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType2" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType2", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType2" + ], "resolutions": [ { "resolvedModule": { @@ -14940,6 +15778,6 @@ No cached semantic diagnostics in the builder:: } }, "version": "FakeTSVersion", - "size": 10400 + "size": 10444 } diff --git a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js index 00b5cacce9e89..dab46c00a24d1 100644 --- a/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -274,7 +274,7 @@ interface SomeType { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[60]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[60]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -936,6 +936,9 @@ interface SomeType { } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1038,7 +1041,7 @@ interface SomeType { } }, "version": "FakeTSVersion", - "size": 10284 + "size": 10327 } @@ -1203,7 +1206,7 @@ globalSomething(); //// [/src/project/src/types.d.ts] file written with same contents //// [/src/project/src/types.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-19927227517-/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[60]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-19927227517-/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[60]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1845,6 +1848,9 @@ globalSomething(); } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1947,7 +1953,7 @@ globalSomething(); } }, "version": "FakeTSVersion", - "size": 10959 + "size": 11002 } @@ -2124,7 +2130,7 @@ function globalFoo() { return 20; } //// [/src/project/src/types.d.ts] file written with same contents //// [/src/project/src/types.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"604791887-/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18812905712-/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"604791887-/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/src/project/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2801,6 +2807,9 @@ function globalFoo() { return 20; } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2903,7 +2912,7 @@ function globalFoo() { return 20; } } }, "version": "FakeTSVersion", - "size": 11570 + "size": 11613 } @@ -3065,7 +3074,7 @@ declare function globalMain(): void; //// [/src/project/src/types.d.ts] file written with same contents //// [/src/project/src/types.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3771,6 +3780,9 @@ declare function globalMain(): void; } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -3847,7 +3859,7 @@ declare function globalMain(): void; } }, "version": "FakeTSVersion", - "size": 11783 + "size": 11826 } @@ -3992,7 +4004,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents @@ -4068,7 +4080,7 @@ globalSomething(); //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4774,6 +4786,9 @@ globalSomething(); } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -4850,7 +4865,7 @@ globalSomething(); } }, "version": "FakeTSVersion", - "size": 11819 + "size": 11862 } @@ -4962,7 +4977,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[63]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -5668,6 +5683,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -5744,7 +5762,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 11843 + "size": 11886 } @@ -5886,7 +5904,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[65]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[65]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -6638,6 +6656,9 @@ define(["require", "exports"], function (require, exports) { } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -6720,7 +6741,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 12407 + "size": 12450 } @@ -6842,7 +6863,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/src/main.d.ts] file written with same contents //// [/src/project/src/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -7603,6 +7624,9 @@ define(["require", "exports"], function (require, exports) { } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -7682,7 +7706,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 12272 + "size": 12315 } @@ -7819,7 +7843,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents @@ -7918,7 +7942,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -8679,6 +8703,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -8758,7 +8785,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 12296 + "size": 12339 } @@ -8869,7 +8896,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/src/main.d.ts] file written with same contents //// [/src/project/src/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"-13705775197-export declare function something2(): number;\r\n",{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[6],[8,9],[8,9,11],[2,3,13]],"referencedMap":[[4,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,5,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-13705775197-export declare function something2(): number;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[18,17,19,16,20,23,22,21,25,24,14,26,6],"filesByName":[[28,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"failedLookupLocations":[32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[64]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.d.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.d.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/filenotfound.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},"-13705775197-export declare function something2(): number;\r\n",{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[6],[8,9],[8,9,11],[2,3,13]],"referencedMap":[[4,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,5,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-13705775197-export declare function something2(): number;\r\n","flags":0,"includeReasons":[{"kind":0,"index":2}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[18,17,19,16,20,23,22,21,25,24,14,26,6],"filesByName":[[28,0]],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"failedLookupLocations":[32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[64]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -9637,6 +9664,9 @@ Semantic diagnostics in builder refreshed for:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -9716,7 +9746,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 12714 + "size": 12757 } @@ -9821,7 +9851,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/src/main.d.ts] file written with same contents //// [/src/project/src/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[62]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -10582,6 +10612,9 @@ Semantic diagnostics in builder refreshed for:: } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -10661,7 +10694,7 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 12296 + "size": 12339 } @@ -10743,7 +10776,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/src/main.d.ts] file written with same contents //// [/src/project/src/main.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16426931566-export declare function externalThing2(): number;\r\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16426931566-export declare function externalThing2(): number;\r\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -11424,6 +11457,9 @@ define(["require", "exports"], function (require, exports) { } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -11473,7 +11509,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 10810 + "size": 10853 } @@ -11546,7 +11582,7 @@ define(["require", "exports"], function (require, exports) { //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16426931566-export declare function externalThing2(): number;\r\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13126029071-export declare function externalThing1(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,6,4,5,3,2,9,12,11,10,14,13,16,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[33]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-15062742831-export declare function something(): number;\r\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-13705775197-export declare function something2(): number;\r\n"},"5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16426931566-export declare function externalThing2(): number;\r\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-4882119183-export {};\r\n"},{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13126029071-export declare function externalThing1(): number;\r\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10608150606-interface SomeType {\r\n}\r\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-3515861877-/// \r\n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-6032143744-declare function globalSomething(): number;\r\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-7753781454-declare function globalSomething2(): number;\r\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-18570932929-/// \r\n/// \r\ndeclare function globalAnotherFileWithSameReferenes(): void;\r\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4157970454-declare function globalFoo(): number;\r\n","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","signature":"3235645566-/// \r\n/// \r\n/// \r\ndeclare function globalMain(): void;\r\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-3405156953-export declare function foo(): number;\r\n"},{"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","signature":"-4882119183-export {};\r\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,6,4,5,3,2,9,12,11,10,14,13,16,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[33]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -12242,6 +12278,9 @@ define(["require", "exports"], function (require, exports) { } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -12291,7 +12330,7 @@ define(["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 11158 + "size": 11201 } @@ -12414,7 +12453,7 @@ export declare function externalThing1(): number; //// [/src/project/src/types.d.ts] file written with same contents //// [/src/project/src/types.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-497034637-export function something2() { return 20; }","5618215488-export function externalThing1() { return 10; }","5318862050-export function externalThing2() { return 20; }","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","affectsGlobalScope":true},"4428918903-export function foo() { return 20; }","2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[30]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-497034637-export function something2() { return 20; }","5618215488-export function externalThing1() { return 10; }","5318862050-export function externalThing2() { return 20; }","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","affectsGlobalScope":true},"4428918903-export function foo() { return 20; }","2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[30]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -13111,6 +13150,9 @@ export declare function externalThing1(): number; } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -13156,52 +13198,18 @@ export declare function externalThing1(): number; } }, "version": "FakeTSVersion", - "size": 9534 + "size": 9577 } -Change:: Install another type and it is not picked by program +Change:: Install another type Input:: //// [/src/project/node_modules/@types/someType2/index.d.ts] export function someType2(): number; -Output:: -/lib/tsc --p src/project -exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] -Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} -Program structureReused: Completely -Program files:: -/lib/lib.d.ts -/src/project/src/filePresent.ts -/src/project/src/fileNotFound.ts -/src/project/src/externalThing.ts -/src/project/src/externalThingNotPresent.ts -/src/project/src/anotherFileReusingResolution.ts -/src/project/src/types.ts -/src/project/src/fileWithRef.ts -/src/project/src/globalFilePresent.ts -/src/project/src/globalFileNotFound.ts -/src/project/src/globalAnotherFileWithSameReferenes.ts -/src/project/src/globalNewFile.ts -/src/project/src/globalMain.ts -/src/project/src/newFile.ts -/src/project/src/main.ts -/src/project/node_modules/@types/someType/index.d.ts - -Semantic diagnostics in builder refreshed for:: - - - - -Change:: Delete existing type and this will trigger new program so above new type becomes part of program -Input:: -//// [/src/project/node_modules/@types/someType] unlink - - Output:: /lib/tsc --p src/project Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. @@ -13214,6 +13222,12 @@ Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.ts'. Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +======== Resolving type reference directive 'someType', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType/package.json' does not exist. +File '/src/project/node_modules/@types/someType/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType/index.d.ts', result '/src/project/node_modules/@types/someType/index.d.ts'. +======== Type reference directive 'someType' was successfully resolved to '/src/project/node_modules/@types/someType/index.d.ts', primary: true. ======== ======== Resolving type reference directive 'someType2', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== Resolving with primary search path '/src/project/node_modules/@types'. File '/src/project/node_modules/@types/someType2/package.json' does not exist. @@ -13240,6 +13254,7 @@ Program files:: /src/project/src/globalMain.ts /src/project/src/newFile.ts /src/project/src/main.ts +/src/project/node_modules/@types/someType/index.d.ts /src/project/node_modules/@types/someType2/index.d.ts Semantic diagnostics in builder refreshed for:: @@ -13247,7 +13262,7 @@ Semantic diagnostics in builder refreshed for:: //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-497034637-export function something2() { return 20; }","5618215488-export function externalThing1() { return 10; }","5318862050-export function externalThing2() { return 20; }","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","affectsGlobalScope":true},"4428918903-export function foo() { return 20; }","2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType2",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[30]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType2/index.d.ts","./node_modules/@types/someType/package.json","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-497034637-export function something2() { return 20; }","5618215488-export function externalThing1() { return 10; }","5318862050-export function externalThing2() { return 20; }","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","affectsGlobalScope":true},"4428918903-export function foo() { return 20; }","2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","7070062898-export function someType(): number;","5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"semanticDiagnosticsPerFile":[1,16,17,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":30,"originalFileName":30,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,19,18,23,26,25,24,28,27,15,29,7],"resolvedTypeReferenceDirectives":[["someType",6],["someType2",7]],"automaticTypeDirectiveNames":["someType","someType2"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":30,"isExternalLibraryImport":true},"failedLookupLocations":[32]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[33]}]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -13268,6 +13283,7 @@ Semantic diagnostics in builder refreshed for:: "./src/globalmain.ts", "./src/newfile.ts", "./src/main.ts", + "./node_modules/@types/sometype/index.d.ts", "./node_modules/@types/sometype2/index.d.ts", "./src/filePresent.ts", "./src/fileNotFound.ts", @@ -13281,7 +13297,9 @@ Semantic diagnostics in builder refreshed for:: "./src/globalNewFile.ts", "./src/globalMain.ts", "./src/newFile.ts", + "./node_modules/@types/someType/index.d.ts", "./node_modules/@types/someType2/index.d.ts", + "./node_modules/@types/someType/package.json", "./node_modules/@types/someType2/package.json" ], "fileNamesList": [ @@ -13379,6 +13397,10 @@ Semantic diagnostics in builder refreshed for:: "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", "signature": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" }, + "./node_modules/@types/sometype/index.d.ts": { + "version": "7070062898-export function someType(): number;", + "signature": "7070062898-export function someType(): number;" + }, "./node_modules/@types/sometype2/index.d.ts": { "version": "5420646020-export function someType2(): number;", "signature": "5420646020-export function someType2(): number;" @@ -13448,6 +13470,7 @@ Semantic diagnostics in builder refreshed for:: }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", + "./node_modules/@types/sometype/index.d.ts", "./node_modules/@types/sometype2/index.d.ts", "./src/anotherfilereusingresolution.ts", "./src/externalthing.ts", @@ -13897,6 +13920,21 @@ Semantic diagnostics in builder refreshed for:: } ] }, + { + "fileName": "./node_modules/@types/someType/index.d.ts", + "originalFileName": "./node_modules/@types/someType/index.d.ts", + "path": "./node_modules/@types/sometype/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype/index.d.ts", + "version": "7070062898-export function someType(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType" + } + ], + "isSourceFileFromExternalLibraryPath": true + }, { "fileName": "./node_modules/@types/someType2/index.d.ts", "originalFileName": "./node_modules/@types/someType2/index.d.ts", @@ -13930,6 +13968,19 @@ Semantic diagnostics in builder refreshed for:: "./src/types.ts" ], "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ], [ "someType2", { @@ -13944,6 +13995,819 @@ Semantic diagnostics in builder refreshed for:: } ] ], + "automaticTypeDirectiveNames": [ + "someType", + "someType2" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + }, + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10166 +} + + + +Change:: Delete existing type +Input:: +//// [/src/project/node_modules/@types/someType] unlink + + +Output:: +/lib/tsc --p src/project +Reusing resolution of module './filePresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +Reusing resolution of module './newFile' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/newFile.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/filePresent.ts'. +Reusing resolution of module './fileNotFound' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/fileNotFound.ts'. +Reusing resolution of module 'externalThing' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThing.ts'. +Reusing resolution of module 'externalThingNotPresent' from '/src/project/src/main.ts' of old program, it was successfully resolved to '/src/project/src/externalThingNotPresent.ts'. +======== Resolving type reference directive 'someType2', containing file '/src/project/__inferred type names__.ts', root directory '/src/project/node_modules/@types'. ======== +Resolving with primary search path '/src/project/node_modules/@types'. +File '/src/project/node_modules/@types/someType2/package.json' does not exist. +File '/src/project/node_modules/@types/someType2/index.d.ts' exist - use it as a name resolution result. +Resolving real path for '/src/project/node_modules/@types/someType2/index.d.ts', result '/src/project/node_modules/@types/someType2/index.d.ts'. +======== Type reference directive 'someType2' was successfully resolved to '/src/project/node_modules/@types/someType2/index.d.ts', primary: true. ======== +exitCode:: ExitStatus.Success +Program root files: ["/src/project/src/anotherFileReusingResolution.ts","/src/project/src/externalThing.ts","/src/project/src/externalThingNotPresent.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/fileWithRef.ts","/src/project/src/globalAnotherFileWithSameReferenes.ts","/src/project/src/globalFileNotFound.ts","/src/project/src/globalFilePresent.ts","/src/project/src/globalMain.ts","/src/project/src/globalNewFile.ts","/src/project/src/main.ts","/src/project/src/newFile.ts","/src/project/src/types.ts"] +Program options: {"module":2,"composite":true,"persistResolutions":true,"traceResolution":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/lib/lib.d.ts +/src/project/src/filePresent.ts +/src/project/src/fileNotFound.ts +/src/project/src/externalThing.ts +/src/project/src/externalThingNotPresent.ts +/src/project/src/anotherFileReusingResolution.ts +/src/project/src/types.ts +/src/project/src/fileWithRef.ts +/src/project/src/globalFilePresent.ts +/src/project/src/globalFileNotFound.ts +/src/project/src/globalAnotherFileWithSameReferenes.ts +/src/project/src/globalNewFile.ts +/src/project/src/globalMain.ts +/src/project/src/newFile.ts +/src/project/src/main.ts +/src/project/node_modules/@types/someType2/index.d.ts + +Semantic diagnostics in builder refreshed for:: + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","-497034637-export function something2() { return 20; }","5618215488-export function externalThing1() { return 10; }","5318862050-export function externalThing2() { return 20; }","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","affectsGlobalScope":true},{"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","affectsGlobalScope":true},"4428918903-export function foo() { return 20; }","2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType2",6]],"automaticTypeDirectiveNames":["someType2"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[30]}]}},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalnewfile.ts", + "./src/globalmain.ts", + "./src/newfile.ts", + "./src/main.ts", + "./node_modules/@types/sometype2/index.d.ts", + "./src/filePresent.ts", + "./src/fileNotFound.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/anotherFileReusingResolution.ts", + "./src/fileWithRef.ts", + "./src/globalFilePresent.ts", + "./src/globalFileNotFound.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalNewFile.ts", + "./src/globalMain.ts", + "./src/newFile.ts", + "./node_modules/@types/someType2/index.d.ts", + "./node_modules/@types/someType2/package.json" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + [ + "./src/types.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./src/filepresent.ts": { + "version": "11598859296-export function something() { return 10; }", + "signature": "11598859296-export function something() { return 10; }" + }, + "./src/filenotfound.ts": { + "version": "-497034637-export function something2() { return 20; }", + "signature": "-497034637-export function something2() { return 20; }" + }, + "./src/externalthing.ts": { + "version": "5618215488-export function externalThing1() { return 10; }", + "signature": "5618215488-export function externalThing1() { return 10; }" + }, + "./src/externalthingnotpresent.ts": { + "version": "5318862050-export function externalThing2() { return 20; }", + "signature": "5318862050-export function externalThing2() { return 20; }" + }, + "./src/anotherfilereusingresolution.ts": { + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "signature": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";" + }, + "./src/types.ts": { + "version": "-12575322908-interface SomeType {}", + "signature": "-12575322908-interface SomeType {}", + "affectsGlobalScope": true + }, + "./src/filewithref.ts": { + "version": "-6085631553-/// ", + "signature": "-6085631553-/// " + }, + "./src/globalfilepresent.ts": { + "version": "-5627034801-function globalSomething() { return 10; }", + "signature": "-5627034801-function globalSomething() { return 10; }", + "affectsGlobalScope": true + }, + "./src/globalfilenotfound.ts": { + "version": "-6310824062-function globalSomething2() { return 20; }", + "signature": "-6310824062-function globalSomething2() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalanotherfilewithsamereferenes.ts": { + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "signature": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "affectsGlobalScope": true + }, + "./src/globalnewfile.ts": { + "version": "4916490342-function globalFoo() { return 20; }", + "signature": "4916490342-function globalFoo() { return 20; }", + "affectsGlobalScope": true + }, + "./src/globalmain.ts": { + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "signature": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "affectsGlobalScope": true + }, + "./src/newfile.ts": { + "version": "4428918903-export function foo() { return 20; }", + "signature": "4428918903-export function foo() { return 20; }" + }, + "./src/main.ts": { + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "signature": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();" + }, + "./node_modules/@types/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): number;", + "signature": "5420646020-export function someType2(): number;" + } + }, + "options": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "traceResolution": true + }, + "referencedMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "exportedModulesMap": { + "./src/anotherfilereusingresolution.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts" + ], + "./src/filewithref.ts": [ + "./src/types.ts" + ], + "./src/globalanotherfilewithsamereferenes.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts" + ], + "./src/globalmain.ts": [ + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalnewfile.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/filenotfound.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/newfile.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./node_modules/@types/sometype2/index.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/externalthing.ts", + "./src/externalthingnotpresent.ts", + "./src/filenotfound.ts", + "./src/filepresent.ts", + "./src/filewithref.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./src/globalfilenotfound.ts", + "./src/globalfilepresent.ts", + "./src/globalmain.ts", + "./src/globalnewfile.ts", + "./src/main.ts", + "./src/newfile.ts", + "./src/types.ts" + ], + "peristedProgram": { + "files": [ + { + "fileName": "../../lib/lib.d.ts", + "originalFileName": "../../lib/lib.d.ts", + "path": "../../lib/lib.d.ts", + "resolvedPath": "../../lib/lib.d.ts", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "flags": 0, + "hasNoDefaultLib": true, + "includeReasons": [ + { + "kind": "LibFile" + } + ] + }, + { + "fileName": "./src/filePresent.ts", + "originalFileName": "./src/filePresent.ts", + "path": "./src/filepresent.ts", + "resolvedPath": "./src/filepresent.ts", + "version": "11598859296-export function something() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 4 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/fileNotFound.ts", + "originalFileName": "./src/fileNotFound.ts", + "path": "./src/filenotfound.ts", + "resolvedPath": "./src/filenotfound.ts", + "version": "-497034637-export function something2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 3 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 3 + } + ] + }, + { + "fileName": "./src/externalThing.ts", + "originalFileName": "./src/externalThing.ts", + "path": "./src/externalthing.ts", + "resolvedPath": "./src/externalthing.ts", + "version": "5618215488-export function externalThing1() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 2 + }, + { + "kind": "RootFile", + "index": 1 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 4 + } + ] + }, + { + "fileName": "./src/externalThingNotPresent.ts", + "originalFileName": "./src/externalThingNotPresent.ts", + "path": "./src/externalthingnotpresent.ts", + "resolvedPath": "./src/externalthingnotpresent.ts", + "version": "5318862050-export function externalThing2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/anotherfilereusingresolution.ts", + "index": 3 + }, + { + "kind": "RootFile", + "index": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 5 + } + ] + }, + { + "fileName": "./src/anotherFileReusingResolution.ts", + "originalFileName": "./src/anotherFileReusingResolution.ts", + "path": "./src/anotherfilereusingresolution.ts", + "resolvedPath": "./src/anotherfilereusingresolution.ts", + "version": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 0 + } + ] + }, + { + "fileName": "./src/types.ts", + "originalFileName": "./src/types.ts", + "path": "./src/types.ts", + "resolvedPath": "./src/types.ts", + "version": "-12575322908-interface SomeType {}", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/filewithref.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 13 + } + ] + }, + { + "fileName": "./src/fileWithRef.ts", + "originalFileName": "./src/fileWithRef.ts", + "path": "./src/filewithref.ts", + "resolvedPath": "./src/filewithref.ts", + "version": "-6085631553-/// ", + "flags": 0, + "referencedFiles": [ + "./types.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 5 + } + ] + }, + { + "fileName": "./src/globalFilePresent.ts", + "originalFileName": "./src/globalFilePresent.ts", + "path": "./src/globalfilepresent.ts", + "resolvedPath": "./src/globalfilepresent.ts", + "version": "-5627034801-function globalSomething() { return 10; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 8 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 1 + } + ] + }, + { + "fileName": "./src/globalFileNotFound.ts", + "originalFileName": "./src/globalFileNotFound.ts", + "path": "./src/globalfilenotfound.ts", + "resolvedPath": "./src/globalfilenotfound.ts", + "version": "-6310824062-function globalSomething2() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalanotherfilewithsamereferenes.ts", + "index": 1 + }, + { + "kind": "RootFile", + "index": 7 + }, + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 2 + } + ] + }, + { + "fileName": "./src/globalAnotherFileWithSameReferenes.ts", + "originalFileName": "./src/globalAnotherFileWithSameReferenes.ts", + "path": "./src/globalanotherfilewithsamereferenes.ts", + "resolvedPath": "./src/globalanotherfilewithsamereferenes.ts", + "version": "-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n", + "flags": 0, + "referencedFiles": [ + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 6 + } + ] + }, + { + "fileName": "./src/globalNewFile.ts", + "originalFileName": "./src/globalNewFile.ts", + "path": "./src/globalnewfile.ts", + "resolvedPath": "./src/globalnewfile.ts", + "version": "4916490342-function globalFoo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "ReferenceFile", + "file": "./src/globalmain.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 10 + } + ] + }, + { + "fileName": "./src/globalMain.ts", + "originalFileName": "./src/globalMain.ts", + "path": "./src/globalmain.ts", + "resolvedPath": "./src/globalmain.ts", + "version": "-5021007197-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();globalSomething();", + "flags": 0, + "referencedFiles": [ + "./globalNewFile.ts", + "./globalFilePresent.ts", + "./globalFileNotFound.ts" + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 9 + } + ] + }, + { + "fileName": "./src/newFile.ts", + "originalFileName": "./src/newFile.ts", + "path": "./src/newfile.ts", + "resolvedPath": "./src/newfile.ts", + "version": "4428918903-export function foo() { return 20; }", + "flags": 0, + "includeReasons": [ + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "RootFile", + "index": 12 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./src/main.ts", + "version": "2165247406-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./newFile" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./filePresent" + }, + { + "kind": 10, + "text": "./fileNotFound" + }, + { + "kind": 10, + "text": "externalThing" + }, + { + "kind": 10, + "text": "externalThingNotPresent" + } + ], + "resolvedModules": [ + [ + "./newFile", + { + "resolvedModule": { + "resolvedFileName": "./src/newFile.ts", + "extension": ".ts" + } + } + ], + [ + "./filePresent", + { + "resolvedModule": { + "resolvedFileName": "./src/filePresent.ts", + "extension": ".ts" + } + } + ], + [ + "./fileNotFound", + { + "resolvedModule": { + "resolvedFileName": "./src/fileNotFound.ts", + "extension": ".ts" + } + } + ], + [ + "externalThing", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThing.ts", + "extension": ".ts" + } + } + ], + [ + "externalThingNotPresent", + { + "resolvedModule": { + "resolvedFileName": "./src/externalThingNotPresent.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "index": 11 + } + ] + }, + { + "fileName": "./node_modules/@types/someType2/index.d.ts", + "originalFileName": "./node_modules/@types/someType2/index.d.ts", + "path": "./node_modules/@types/sometype2/index.d.ts", + "resolvedPath": "./node_modules/@types/sometype2/index.d.ts", + "version": "5420646020-export function someType2(): number;", + "flags": 0, + "includeReasons": [ + { + "kind": "AutomaticTypeDirectiveFile", + "typeReference": "someType2" + } + ], + "isSourceFileFromExternalLibraryPath": true + } + ], + "rootFileNames": [ + "./src/anotherFileReusingResolution.ts", + "./src/externalThing.ts", + "./src/externalThingNotPresent.ts", + "./src/fileNotFound.ts", + "./src/filePresent.ts", + "./src/fileWithRef.ts", + "./src/globalAnotherFileWithSameReferenes.ts", + "./src/globalFileNotFound.ts", + "./src/globalFilePresent.ts", + "./src/globalMain.ts", + "./src/globalNewFile.ts", + "./src/main.ts", + "./src/newFile.ts", + "./src/types.ts" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType2", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType2" + ], "resolutions": [ { "resolvedModule": { @@ -13989,6 +14853,6 @@ Semantic diagnostics in builder refreshed for:: } }, "version": "FakeTSVersion", - "size": 9541 + "size": 9585 } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js index 6234e909ab916..d0b91ea3e5bdd 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -302,7 +302,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -962,6 +962,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1080,7 +1083,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10664 + "size": 10707 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1275,7 +1278,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1935,6 +1938,9 @@ define("src/main", ["require", "exports"], function (require, exports) { } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2053,7 +2059,7 @@ define("src/main", ["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 10698 + "size": 10741 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -2293,7 +2299,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2987,6 +2993,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -3105,7 +3114,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 11236 + "size": 11279 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -3333,7 +3342,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4055,6 +4064,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -4147,7 +4159,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 11269 + "size": 11312 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -4355,7 +4367,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -5077,6 +5089,9 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -5169,7 +5184,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 11293 + "size": 11336 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -5424,7 +5439,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -6191,6 +6206,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -6289,7 +6307,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 11822 + "size": 11865 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -6547,7 +6565,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -7338,6 +7356,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -7433,7 +7454,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 12130 + "size": 12173 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -7702,7 +7723,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -8469,6 +8490,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -8567,7 +8591,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 11822 + "size": 11865 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -8825,7 +8849,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -9616,6 +9640,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -9711,7 +9738,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 12130 + "size": 12173 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -9983,7 +10010,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -10669,6 +10696,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -10718,7 +10748,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 10273 + "size": 10316 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -11001,7 +11031,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2069,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":738,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[33]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2069,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":738,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[33]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -11702,6 +11732,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -11751,7 +11784,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 10582 + "size": 10625 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -12032,7 +12065,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -12718,6 +12751,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -12767,7 +12803,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 10273 + "size": 10316 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -12976,7 +13012,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType2/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":30,"originalFileName":30,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,19,18,23,26,25,24,28,27,15,29,7],"resolvedTypeReferenceDirectives":[["someType",6],["someType2",7]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":30,"isExternalLibraryImport":true},"failedLookupLocations":[34]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType2/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":30,"originalFileName":30,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,19,18,23,26,25,24,28,27,15,29,7],"resolvedTypeReferenceDirectives":[["someType",6],["someType2",7]],"automaticTypeDirectiveNames":["someType","someType2"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":30,"isExternalLibraryImport":true},"failedLookupLocations":[34]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -13696,6 +13732,10 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType", + "someType2" + ], "resolutions": [ { "resolvedModule": { @@ -13755,7 +13795,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10877 + "size": 10932 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] file written with same contents @@ -13873,7 +13913,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType2",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType2",6]],"automaticTypeDirectiveNames":["someType2"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -14559,6 +14599,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType2" + ], "resolutions": [ { "resolvedModule": { @@ -14608,7 +14651,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10280 + "size": 10324 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js index bb3f4c1fab6a5..7690acf112ece 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -341,7 +341,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1053,6 +1053,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1171,7 +1174,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11062 + "size": 11105 } @@ -1324,7 +1327,7 @@ globalSomething(); //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2016,6 +2019,9 @@ globalSomething(); } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2134,7 +2140,7 @@ globalSomething(); } }, "version": "FakeTSVersion", - "size": 11715 + "size": 11758 } @@ -2333,7 +2339,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3060,6 +3066,9 @@ declare function globalMain(): void; } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -3178,7 +3187,7 @@ declare function globalMain(): void; } }, "version": "FakeTSVersion", - "size": 12323 + "size": 12366 } //// [/user/username/projects/myproject/src/globalNewFile.js] @@ -3366,7 +3375,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4122,6 +4131,9 @@ declare function globalMain(): void; } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -4214,7 +4226,7 @@ declare function globalMain(): void; } }, "version": "FakeTSVersion", - "size": 12489 + "size": 12532 } //// [/user/username/projects/myproject/src/globalNewFile.js] file written with same contents @@ -4355,7 +4367,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -5111,6 +5123,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -5203,7 +5218,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 12513 + "size": 12556 } @@ -5360,7 +5375,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -6162,6 +6177,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -6260,7 +6278,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 13075 + "size": 13118 } //// [/user/username/projects/myproject/src/newFile.js] @@ -6417,7 +6435,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -7228,6 +7246,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -7323,7 +7344,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12938 + "size": 12981 } //// [/user/username/projects/myproject/src/fileNotFound.js] @@ -7473,7 +7494,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"failedLookupLocations":[32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[80]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"failedLookupLocations":[32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[80]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -8294,6 +8315,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -8393,7 +8417,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12950 + "size": 12993 } @@ -8512,7 +8536,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,8,11,10,9,13,12,[15,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":2}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[20,19,21,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[21,30]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,8,11,10,9,13,12,[15,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":2}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[20,19,21,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[21,30]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -9348,6 +9372,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -9447,7 +9474,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 13283 + "size": 13326 } //// [/user/username/projects/myproject/src/fileNotFound.js] file written with same contents @@ -9587,7 +9614,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,23,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[33,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,23,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[33,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -10292,6 +10319,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -10345,7 +10375,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10940 + "size": 10983 } //// [/user/username/projects/myproject/src/externalThingNotPresent.js] @@ -10485,7 +10515,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[9],[11,12],[11,12,14],[2,3,4,5,16]],"referencedMap":[[6,1],[10,2],[13,3],[15,4],[17,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,18,4,3,2,10,13,12,11,15,14,16,9],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":19,"originalFileName":19,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":17,"index":1},{"kind":3,"file":17,"index":2}]},{"fileName":20,"originalFileName":20,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":17,"index":3}]},{"fileName":21,"originalFileName":21,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":17,"index":4}]},{"fileName":22,"originalFileName":22,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":17,"index":5}]},{"fileName":23,"originalFileName":23,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":24,"originalFileName":24,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":25,"originalFileName":25,"path":8,"resolvedPath":8,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":13}]},{"fileName":26,"originalFileName":26,"path":10,"resolvedPath":10,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":27,"originalFileName":27,"path":11,"resolvedPath":11,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":8},{"kind":4,"file":15,"index":1}]},{"fileName":28,"originalFileName":28,"path":12,"resolvedPath":12,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":1},{"kind":0,"index":7},{"kind":4,"file":15,"index":2}]},{"fileName":29,"originalFileName":29,"path":13,"resolvedPath":13,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":30,"originalFileName":30,"path":14,"resolvedPath":14,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":15,"index":0},{"kind":0,"index":10}]},{"fileName":31,"originalFileName":31,"path":15,"resolvedPath":15,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":32,"originalFileName":32,"path":16,"resolvedPath":16,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":17,"index":0},{"kind":0,"index":12}]},{"fileName":17,"originalFileName":17,"path":17,"resolvedPath":17,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":33,"originalFileName":33,"path":18,"resolvedPath":18,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[23,24,22,25,19,26,29,28,27,31,30,17,32,9],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[25,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".d.ts"},"failedLookupLocations":[24,35]},{"resolvedModule":{"resolvedFileName":22,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":32,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":33,"isExternalLibraryImport":true},"failedLookupLocations":[36]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[9],[11,12],[11,12,14],[2,3,4,5,16]],"referencedMap":[[6,1],[10,2],[13,3],[15,4],[17,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,18,4,3,2,10,13,12,11,15,14,16,9],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":19,"originalFileName":19,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":17,"index":1},{"kind":3,"file":17,"index":2}]},{"fileName":20,"originalFileName":20,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":17,"index":3}]},{"fileName":21,"originalFileName":21,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":17,"index":4}]},{"fileName":22,"originalFileName":22,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":17,"index":5}]},{"fileName":23,"originalFileName":23,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":24,"originalFileName":24,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":25,"originalFileName":25,"path":8,"resolvedPath":8,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":13}]},{"fileName":26,"originalFileName":26,"path":10,"resolvedPath":10,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":27,"originalFileName":27,"path":11,"resolvedPath":11,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":8},{"kind":4,"file":15,"index":1}]},{"fileName":28,"originalFileName":28,"path":12,"resolvedPath":12,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":1},{"kind":0,"index":7},{"kind":4,"file":15,"index":2}]},{"fileName":29,"originalFileName":29,"path":13,"resolvedPath":13,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":30,"originalFileName":30,"path":14,"resolvedPath":14,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":15,"index":0},{"kind":0,"index":10}]},{"fileName":31,"originalFileName":31,"path":15,"resolvedPath":15,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":32,"originalFileName":32,"path":16,"resolvedPath":16,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":17,"index":0},{"kind":0,"index":12}]},{"fileName":17,"originalFileName":17,"path":17,"resolvedPath":17,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":33,"originalFileName":33,"path":18,"resolvedPath":18,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[23,24,22,25,19,26,29,28,27,31,30,17,32,9],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[25,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".d.ts"},"failedLookupLocations":[24,35]},{"resolvedModule":{"resolvedFileName":22,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":32,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":33,"isExternalLibraryImport":true},"failedLookupLocations":[36]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -11205,6 +11235,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -11258,7 +11291,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11286 + "size": 11329 } //// [/user/username/projects/myproject/src/externalThing.js] @@ -11386,7 +11419,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,23,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[33,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,23,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[33,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -12091,6 +12124,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -12144,7 +12180,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10940 + "size": 10983 } @@ -12276,7 +12312,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType2/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;","5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":19,"originalFileName":19,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":20,"originalFileName":20,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":21,"originalFileName":21,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":22,"originalFileName":22,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":23,"originalFileName":23,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":24,"originalFileName":24,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":25,"originalFileName":25,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":26,"originalFileName":26,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":27,"originalFileName":27,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":28,"originalFileName":28,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":29,"originalFileName":29,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":30,"originalFileName":30,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":31,"originalFileName":31,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":32,"originalFileName":32,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true},{"fileName":33,"originalFileName":33,"path":18,"resolvedPath":18,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[23,21,22,24,19,25,28,27,26,30,29,16,31,8],"resolvedTypeReferenceDirectives":[["someType",6],["someType2",7]],"resolutions":[{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[24,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".d.ts"},"failedLookupLocations":[35,36]},{"resolvedModule":{"resolvedFileName":22,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":31,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":32,"isExternalLibraryImport":true},"failedLookupLocations":[37]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":33,"isExternalLibraryImport":true},"failedLookupLocations":[38]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType2/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;","5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":19,"originalFileName":19,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":20,"originalFileName":20,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":21,"originalFileName":21,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":22,"originalFileName":22,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":23,"originalFileName":23,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":24,"originalFileName":24,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":25,"originalFileName":25,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":26,"originalFileName":26,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":27,"originalFileName":27,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":28,"originalFileName":28,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":29,"originalFileName":29,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":30,"originalFileName":30,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":31,"originalFileName":31,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":32,"originalFileName":32,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true},{"fileName":33,"originalFileName":33,"path":18,"resolvedPath":18,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[23,21,22,24,19,25,28,27,26,30,29,16,31,8],"resolvedTypeReferenceDirectives":[["someType",6],["someType2",7]],"automaticTypeDirectiveNames":["someType","someType2"],"resolutions":[{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[24,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".d.ts"},"failedLookupLocations":[35,36]},{"resolvedModule":{"resolvedFileName":22,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":31,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":32,"isExternalLibraryImport":true},"failedLookupLocations":[37]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":33,"isExternalLibraryImport":true},"failedLookupLocations":[38]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -13016,6 +13052,10 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType", + "someType2" + ], "resolutions": [ { "resolvedModule": { @@ -13079,7 +13119,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11514 + "size": 11569 } @@ -13204,7 +13244,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,23,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType2",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[33,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,23,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType2",6]],"automaticTypeDirectiveNames":["someType2"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[33,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -13908,6 +13948,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType2" + ], "resolutions": [ { "resolvedModule": { @@ -13961,6 +14004,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10944 + "size": 10988 } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js index de87023a3d1f7..3507ecd4720ac 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -98,7 +98,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -220,7 +220,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -880,6 +880,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -998,7 +1001,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10664 + "size": 10707 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1188,7 +1191,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1848,6 +1851,9 @@ define("src/main", ["require", "exports"], function (require, exports) { } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1966,7 +1972,7 @@ define("src/main", ["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 10698 + "size": 10741 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -2259,7 +2265,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2953,6 +2959,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -3071,7 +3080,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 11236 + "size": 11279 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -3299,7 +3308,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4021,6 +4030,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -4113,7 +4125,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 11269 + "size": 11312 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -4321,7 +4333,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -5043,6 +5055,9 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -5135,7 +5150,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 11293 + "size": 11336 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -5390,7 +5405,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -6157,6 +6172,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -6255,7 +6273,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 11822 + "size": 11865 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -6520,7 +6538,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -7311,6 +7329,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -7406,7 +7427,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 12130 + "size": 12173 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -7675,7 +7696,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -8442,6 +8463,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -8540,7 +8564,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 11822 + "size": 11865 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -8797,7 +8821,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -9588,6 +9612,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -9683,7 +9710,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 12130 + "size": 12173 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -9954,7 +9981,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -10640,6 +10667,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -10689,7 +10719,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 10273 + "size": 10316 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -10972,7 +11002,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2069,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":738,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[33]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2069,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":738,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[33]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -11673,6 +11703,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -11722,7 +11755,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 10582 + "size": 10625 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -12003,7 +12036,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -12689,6 +12722,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -12738,7 +12774,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 10273 + "size": 10316 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -12947,7 +12983,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType2/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":30,"originalFileName":30,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,19,18,23,26,25,24,28,27,15,29,7],"resolvedTypeReferenceDirectives":[["someType",6],["someType2",7]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":30,"isExternalLibraryImport":true},"failedLookupLocations":[34]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType2/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":30,"originalFileName":30,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,19,18,23,26,25,24,28,27,15,29,7],"resolvedTypeReferenceDirectives":[["someType",6],["someType2",7]],"automaticTypeDirectiveNames":["someType","someType2"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":30,"isExternalLibraryImport":true},"failedLookupLocations":[34]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -13667,6 +13703,10 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType", + "someType2" + ], "resolutions": [ { "resolvedModule": { @@ -13726,7 +13766,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10877 + "size": 10932 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] file written with same contents @@ -13844,7 +13884,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType2",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType2",6]],"automaticTypeDirectiveNames":["someType2"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -14530,6 +14570,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType2" + ], "resolutions": [ { "resolvedModule": { @@ -14579,7 +14622,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10280 + "size": 10324 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js index d580dd87441d2..c58df12817777 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -141,7 +141,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","module":2,"persistResolutions":true,"project":"./","traceResolution":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} /a/lib/tsc.js --p . -w --extendedDiagnostics @@ -405,7 +405,7 @@ globalSomething(); //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1097,6 +1097,9 @@ globalSomething(); } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1215,7 +1218,7 @@ globalSomething(); } }, "version": "FakeTSVersion", - "size": 11715 + "size": 11758 } @@ -1467,7 +1470,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2194,6 +2197,9 @@ declare function globalMain(): void; } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2312,7 +2318,7 @@ declare function globalMain(): void; } }, "version": "FakeTSVersion", - "size": 12323 + "size": 12366 } //// [/user/username/projects/myproject/src/globalNewFile.js] @@ -2500,7 +2506,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3256,6 +3262,9 @@ declare function globalMain(): void; } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -3348,7 +3357,7 @@ declare function globalMain(): void; } }, "version": "FakeTSVersion", - "size": 12489 + "size": 12532 } //// [/user/username/projects/myproject/src/globalNewFile.js] file written with same contents @@ -3489,7 +3498,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4245,6 +4254,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -4337,7 +4349,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 12513 + "size": 12556 } @@ -4494,7 +4506,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -5296,6 +5308,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -5394,7 +5409,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 13075 + "size": 13118 } //// [/user/username/projects/myproject/src/newFile.js] @@ -5558,7 +5573,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -6369,6 +6384,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -6464,7 +6482,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12938 + "size": 12981 } //// [/user/username/projects/myproject/src/fileNotFound.js] @@ -6614,7 +6632,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"failedLookupLocations":[32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[80]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"failedLookupLocations":[32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[80]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -7435,6 +7453,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -7534,7 +7555,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12950 + "size": 12993 } @@ -7653,7 +7674,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,8,11,10,9,13,12,[15,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":2}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[20,19,21,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[21,30]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[7],[9,10],[9,10,12],[2,3,4,14]],"referencedMap":[[5,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,8,11,10,9,13,12,[15,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":2}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":12}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":7},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":6},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":9}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":11}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[20,19,21,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[21,30]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -8489,6 +8510,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -8588,7 +8612,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 13283 + "size": 13326 } //// [/user/username/projects/myproject/src/fileNotFound.js] file written with same contents @@ -8727,7 +8751,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,23,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[33,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,23,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[33,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -9432,6 +9456,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -9485,7 +9512,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10940 + "size": 10983 } //// [/user/username/projects/myproject/src/externalThingNotPresent.js] @@ -9625,7 +9652,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[9],[11,12],[11,12,14],[2,3,4,5,16]],"referencedMap":[[6,1],[10,2],[13,3],[15,4],[17,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,18,4,3,2,10,13,12,11,15,14,16,9],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":19,"originalFileName":19,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":17,"index":1},{"kind":3,"file":17,"index":2}]},{"fileName":20,"originalFileName":20,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":17,"index":3}]},{"fileName":21,"originalFileName":21,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":17,"index":4}]},{"fileName":22,"originalFileName":22,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":17,"index":5}]},{"fileName":23,"originalFileName":23,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":24,"originalFileName":24,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":25,"originalFileName":25,"path":8,"resolvedPath":8,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":13}]},{"fileName":26,"originalFileName":26,"path":10,"resolvedPath":10,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":27,"originalFileName":27,"path":11,"resolvedPath":11,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":8},{"kind":4,"file":15,"index":1}]},{"fileName":28,"originalFileName":28,"path":12,"resolvedPath":12,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":1},{"kind":0,"index":7},{"kind":4,"file":15,"index":2}]},{"fileName":29,"originalFileName":29,"path":13,"resolvedPath":13,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":30,"originalFileName":30,"path":14,"resolvedPath":14,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":15,"index":0},{"kind":0,"index":10}]},{"fileName":31,"originalFileName":31,"path":15,"resolvedPath":15,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":32,"originalFileName":32,"path":16,"resolvedPath":16,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":17,"index":0},{"kind":0,"index":12}]},{"fileName":17,"originalFileName":17,"path":17,"resolvedPath":17,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":33,"originalFileName":33,"path":18,"resolvedPath":18,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[23,24,22,25,19,26,29,28,27,31,30,17,32,9],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[25,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".d.ts"},"failedLookupLocations":[24,35]},{"resolvedModule":{"resolvedFileName":22,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":32,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":33,"isExternalLibraryImport":true},"failedLookupLocations":[36]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[9],[11,12],[11,12,14],[2,3,4,5,16]],"referencedMap":[[6,1],[10,2],[13,3],[15,4],[17,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,18,4,3,2,10,13,12,11,15,14,16,9],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":19,"originalFileName":19,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":17,"index":1},{"kind":3,"file":17,"index":2}]},{"fileName":20,"originalFileName":20,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":17,"index":3}]},{"fileName":21,"originalFileName":21,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":17,"index":4}]},{"fileName":22,"originalFileName":22,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":17,"index":5}]},{"fileName":23,"originalFileName":23,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":24,"originalFileName":24,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":25,"originalFileName":25,"path":8,"resolvedPath":8,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":9,"originalFileName":9,"path":9,"resolvedPath":9,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":13}]},{"fileName":26,"originalFileName":26,"path":10,"resolvedPath":10,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":27,"originalFileName":27,"path":11,"resolvedPath":11,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":8},{"kind":4,"file":15,"index":1}]},{"fileName":28,"originalFileName":28,"path":12,"resolvedPath":12,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":1},{"kind":0,"index":7},{"kind":4,"file":15,"index":2}]},{"fileName":29,"originalFileName":29,"path":13,"resolvedPath":13,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":30,"originalFileName":30,"path":14,"resolvedPath":14,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":15,"index":0},{"kind":0,"index":10}]},{"fileName":31,"originalFileName":31,"path":15,"resolvedPath":15,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":32,"originalFileName":32,"path":16,"resolvedPath":16,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":17,"index":0},{"kind":0,"index":12}]},{"fileName":17,"originalFileName":17,"path":17,"resolvedPath":17,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":33,"originalFileName":33,"path":18,"resolvedPath":18,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[23,24,22,25,19,26,29,28,27,31,30,17,32,9],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[25,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".d.ts"},"failedLookupLocations":[24,35]},{"resolvedModule":{"resolvedFileName":22,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":32,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":33,"isExternalLibraryImport":true},"failedLookupLocations":[36]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -10345,6 +10372,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -10398,7 +10428,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11286 + "size": 11329 } //// [/user/username/projects/myproject/src/externalThing.js] @@ -10526,7 +10556,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,23,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[33,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,23,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[33,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -11231,6 +11261,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -11284,7 +11317,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10940 + "size": 10983 } @@ -11416,7 +11449,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType2/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;","5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":19,"originalFileName":19,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":20,"originalFileName":20,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":21,"originalFileName":21,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":22,"originalFileName":22,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":23,"originalFileName":23,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":24,"originalFileName":24,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":25,"originalFileName":25,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":26,"originalFileName":26,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":27,"originalFileName":27,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":28,"originalFileName":28,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":29,"originalFileName":29,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":30,"originalFileName":30,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":31,"originalFileName":31,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":32,"originalFileName":32,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true},{"fileName":33,"originalFileName":33,"path":18,"resolvedPath":18,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[23,21,22,24,19,25,28,27,26,30,29,16,31,8],"resolvedTypeReferenceDirectives":[["someType",6],["someType2",7]],"resolutions":[{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[24,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".d.ts"},"failedLookupLocations":[35,36]},{"resolvedModule":{"resolvedFileName":22,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":31,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":32,"isExternalLibraryImport":true},"failedLookupLocations":[37]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":33,"isExternalLibraryImport":true},"failedLookupLocations":[38]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType2/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;","5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":19,"originalFileName":19,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":20,"originalFileName":20,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":21,"originalFileName":21,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":22,"originalFileName":22,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":23,"originalFileName":23,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":24,"originalFileName":24,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":25,"originalFileName":25,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":26,"originalFileName":26,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":27,"originalFileName":27,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":28,"originalFileName":28,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":29,"originalFileName":29,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":30,"originalFileName":30,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":31,"originalFileName":31,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":32,"originalFileName":32,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true},{"fileName":33,"originalFileName":33,"path":18,"resolvedPath":18,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[23,21,22,24,19,25,28,27,26,30,29,16,31,8],"resolvedTypeReferenceDirectives":[["someType",6],["someType2",7]],"automaticTypeDirectiveNames":["someType","someType2"],"resolutions":[{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[24,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".d.ts"},"failedLookupLocations":[35,36]},{"resolvedModule":{"resolvedFileName":22,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":31,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":32,"isExternalLibraryImport":true},"failedLookupLocations":[37]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":33,"isExternalLibraryImport":true},"failedLookupLocations":[38]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -12156,6 +12189,10 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType", + "someType2" + ], "resolutions": [ { "resolvedModule": { @@ -12219,7 +12256,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11514 + "size": 11569 } @@ -12344,7 +12381,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,23,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType2",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[33,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/filenotfound.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileNotFound.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,9,12,11,10,14,13,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":0,"index":3}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,23,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType2",6]],"automaticTypeDirectiveNames":["someType2"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[33,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -13048,6 +13085,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType2" + ], "resolutions": [ { "resolvedModule": { @@ -13101,6 +13141,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10944 + "size": 10988 } diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js index 28c8bac577dcc..eb0d7d32bb1d6 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -303,7 +303,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":859,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -963,6 +963,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1081,7 +1084,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 10664 + "size": 10707 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -1276,7 +1279,7 @@ define("src/main", ["require", "exports"], function (require, exports) { //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":878,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":327,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -1936,6 +1939,9 @@ define("src/main", ["require", "exports"], function (require, exports) { } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2054,7 +2060,7 @@ define("src/main", ["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 10698 + "size": 10741 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -2294,7 +2300,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":970,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":365,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -2988,6 +2994,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -3106,7 +3115,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 11236 + "size": 11279 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -3334,7 +3343,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1013,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -4056,6 +4065,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -4148,7 +4160,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 11269 + "size": 11312 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -4356,7 +4368,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1078,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":410,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -5078,6 +5090,9 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -5170,7 +5185,7 @@ define("src/main", ["require", "exports", "src/filePresent"], function (require, } }, "version": "FakeTSVersion", - "size": 11293 + "size": 11336 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -5425,7 +5440,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -6192,6 +6207,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -6290,7 +6308,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 11822 + "size": 11865 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -6548,7 +6566,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -7339,6 +7357,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -7434,7 +7455,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 12130 + "size": 12173 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -7703,7 +7724,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1290,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":478,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -8470,6 +8491,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -8568,7 +8592,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 11822 + "size": 11865 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -8826,7 +8850,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1535,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":558,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -9617,6 +9641,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -9712,7 +9739,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 12130 + "size": 12173 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -9984,7 +10011,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -10670,6 +10697,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -10719,7 +10749,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 10273 + "size": 10316 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -11002,7 +11032,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2069,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":738,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[33]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":2069,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":738,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"5618215488-export function externalThing1() { return 10; }","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,32]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[33]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -11703,6 +11733,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -11752,7 +11785,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 10582 + "size": 10625 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -12033,7 +12066,7 @@ declare module "src/main" { } //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -12719,6 +12752,9 @@ declare module "src/main" { } } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -12768,7 +12804,7 @@ declare module "src/main" { } } }, "version": "FakeTSVersion", - "size": 10273 + "size": 10316 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] @@ -12977,7 +13013,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType2/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":30,"originalFileName":30,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,19,18,23,26,25,24,28,27,15,29,7],"resolvedTypeReferenceDirectives":[["someType",6],["someType2",7]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":30,"isExternalLibraryImport":true},"failedLookupLocations":[34]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType2/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"7070062898-export function someType(): number;","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":30,"originalFileName":30,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,19,18,23,26,25,24,28,27,15,29,7],"resolvedTypeReferenceDirectives":[["someType",6],["someType2",7]],"automaticTypeDirectiveNames":["someType","someType2"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":30,"isExternalLibraryImport":true},"failedLookupLocations":[34]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -13697,6 +13733,10 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType", + "someType2" + ], "resolutions": [ { "resolvedModule": { @@ -13756,7 +13796,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10877 + "size": 10932 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] file written with same contents @@ -13874,7 +13914,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/outFile.js] file written with same contents //// [/user/username/projects/myproject/outFile.d.ts] file written with same contents //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType2",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/types.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./src/main.ts"],"js":{"sections":[{"pos":0,"end":1807,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":653,"kind":"text"}]}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","signature":false,"affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":false},{"version":"-497034637-export function something2() { return 20; }","signature":false},{"version":"5686005290-export function externalThing1(): number;","signature":false},{"version":"5318862050-export function externalThing2() { return 20; }","signature":false},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":false},{"version":"-12575322908-interface SomeType {}","signature":false,"affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":false},{"version":"-5627034801-function globalSomething() { return 10; }","signature":false,"affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":false,"affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":false,"affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":false,"affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":false},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":false},{"version":"5420646020-export function someType2(): number;","signature":false}],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"outFile":"./outFile.js","persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType2",6]],"automaticTypeDirectiveNames":["someType2"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[32]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { @@ -14560,6 +14600,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType2" + ], "resolutions": [ { "resolvedModule": { @@ -14609,7 +14652,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10280 + "size": 10324 } //// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js index fd6b498c53af3..e765d8e24c727 100644 --- a/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -383,7 +383,7 @@ export {}; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"11598859296-export function something() { return 10; }","5686005290-export function externalThing1(): number;","-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";",{"version":"-12575322908-interface SomeType {}","affectsGlobalScope":true},"-6085631553-/// ",{"version":"-5627034801-function globalSomething() { return 10; }","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","affectsGlobalScope":true},{"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","affectsGlobalScope":true},"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-12326309214-/// \n/// \nfunction globalMain() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1095,6 +1095,9 @@ export {}; } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -1213,7 +1216,7 @@ export {}; } }, "version": "FakeTSVersion", - "size": 11062 + "size": 11105 } @@ -1366,7 +1369,7 @@ globalSomething(); //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","signature":"-18175711127-/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,12]],"referencedMap":[[4,1],[6,2],[8,3],[9,3],[10,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,11,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,9,[10,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":13,"originalFileName":13,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":10,"index":0},{"kind":3,"file":10,"index":1}]},{"fileName":14,"originalFileName":14,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":10,"index":3}]},{"fileName":15,"originalFileName":15,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":8}]},{"fileName":16,"originalFileName":16,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":17,"originalFileName":17,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":9,"index":0}]},{"fileName":18,"originalFileName":18,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":19,"originalFileName":19,"path":9,"resolvedPath":9,"version":"-5695225267-/// \n/// \nfunction globalMain() { }\nglobalSomething();","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":10,"originalFileName":10,"path":10,"resolvedPath":10,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":7}]},{"fileName":20,"originalFileName":20,"path":11,"resolvedPath":11,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[15,14,13,16,18,17,19,10,5],"filesByName":[[12,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":9,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":13,"extension":".ts"}},{"failedLookupLocations":[21,22,23,24,25]},{"resolvedModule":{"resolvedFileName":14,"extension":".d.ts"},"failedLookupLocations":[26,27]},{"failedLookupLocations":[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":20,"isExternalLibraryImport":true},"failedLookupLocations":[76]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -2058,6 +2061,9 @@ globalSomething(); } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -2176,7 +2182,7 @@ globalSomething(); } }, "version": "FakeTSVersion", - "size": 11715 + "size": 11758 } @@ -2375,7 +2381,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/globalfilenotfound.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-13665089706-/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"6306495272-/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,13],[7,9,13]],"referencedMap":[[4,1],[6,2],[8,3],[10,4],[11,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,12,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,8,7,10,9,[11,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":11,"index":0},{"kind":3,"file":11,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":11,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":9}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":5},{"kind":4,"file":10,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":11,"originalFileName":11,"path":11,"resolvedPath":11,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":12,"resolvedPath":12,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,19,18,21,20,11,5],"filesByName":[[13,0]],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"fileProcessingDiagnostics":[{"kind":1,"fileProcessingReason":{"kind":4,"file":8,"index":1},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]},{"kind":1,"fileProcessingReason":{"kind":4,"file":10,"index":2},"diagnostic":"File_0_not_found","args":["/user/username/projects/myproject/src/globalFileNotFound.ts"]}],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[23,24,25,26,27]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":22,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3102,6 +3108,9 @@ declare function globalMain(): void; } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "fileProcessingDiagnostics": [ { "kind": "FilePreprocessingFileExplainingDiagnostic", @@ -3220,7 +3229,7 @@ declare function globalMain(): void; } }, "version": "FakeTSVersion", - "size": 12323 + "size": 12366 } //// [/user/username/projects/myproject/src/globalNewFile.js] @@ -3408,7 +3417,7 @@ declare function globalMain(): void; //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4164,6 +4173,9 @@ declare function globalMain(): void; } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -4256,7 +4268,7 @@ declare function globalMain(): void; } }, "version": "FakeTSVersion", - "size": 12489 + "size": 12532 } //// [/user/username/projects/myproject/src/globalNewFile.js] file written with same contents @@ -4397,7 +4409,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[12,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,13,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[12,[{"file":"./src/main.ts","start":127,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":224,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":14,"originalFileName":14,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":12,"index":0},{"kind":3,"file":12,"index":1}]},{"fileName":15,"originalFileName":15,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":12,"index":3}]},{"fileName":16,"originalFileName":16,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":10}]},{"fileName":17,"originalFileName":17,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":18,"originalFileName":18,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":19,"originalFileName":19,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":20,"originalFileName":20,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":22,"originalFileName":22,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":12,"originalFileName":12,"path":12,"resolvedPath":12,"version":"-22898386493-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":23,"originalFileName":23,"path":13,"resolvedPath":13,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[16,15,14,17,20,19,18,22,21,12,5],"resolvedTypeReferenceDirectives":[["someType",5]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":14,"extension":".ts"}},{"failedLookupLocations":[24,25,26,27,28]},{"resolvedModule":{"resolvedFileName":15,"extension":".d.ts"},"failedLookupLocations":[29,30]},{"failedLookupLocations":[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":23,"isExternalLibraryImport":true},"failedLookupLocations":[79]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -5153,6 +5165,9 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -5245,7 +5260,7 @@ define(["require", "exports", "./filePresent"], function (require, exports, file } }, "version": "FakeTSVersion", - "size": 12513 + "size": 12556 } @@ -5402,7 +5417,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/fileNotFound.d.ts","./src/fileNotFound.js","./src/fileNotFound.jsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3],[5],[7,8],[7,8,10],[2,3,12]],"referencedMap":[[4,1],[6,2],[9,3],[11,4],[13,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,14,[4,[{"file":"./src/anotherfilereusingresolution.ts","start":70,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],3,2,6,9,8,7,11,10,[13,[{"file":"./src/main.ts","start":159,"length":16,"messageText":"Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792},{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],12,5],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":15,"originalFileName":15,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":4,"index":0},{"kind":0,"index":2},{"kind":3,"file":13,"index":1},{"kind":3,"file":13,"index":2}]},{"fileName":16,"originalFileName":16,"path":3,"resolvedPath":3,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":4,"index":2},{"kind":0,"index":1},{"kind":3,"file":13,"index":4}]},{"fileName":17,"originalFileName":17,"path":4,"resolvedPath":4,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":5,"originalFileName":5,"path":5,"resolvedPath":5,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":6,"index":0},{"kind":0,"index":11}]},{"fileName":18,"originalFileName":18,"path":6,"resolvedPath":6,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":3}]},{"fileName":19,"originalFileName":19,"path":7,"resolvedPath":7,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":6},{"kind":4,"file":11,"index":1}]},{"fileName":20,"originalFileName":20,"path":8,"resolvedPath":8,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":9,"index":1},{"kind":0,"index":5},{"kind":4,"file":11,"index":2}]},{"fileName":21,"originalFileName":21,"path":9,"resolvedPath":9,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":22,"originalFileName":22,"path":10,"resolvedPath":10,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8}]},{"fileName":23,"originalFileName":23,"path":11,"resolvedPath":11,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":7}]},{"fileName":24,"originalFileName":24,"path":12,"resolvedPath":12,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":13,"originalFileName":13,"path":13,"resolvedPath":13,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":14,"resolvedPath":14,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[17,16,15,18,21,20,19,23,22,13,24,5],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":15,"extension":".ts"}},{"failedLookupLocations":[26,27,28,29,30]},{"resolvedModule":{"resolvedFileName":16,"extension":".d.ts"},"failedLookupLocations":[31,32]},{"failedLookupLocations":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]},{"resolvedModule":{"resolvedFileName":24,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":25,"isExternalLibraryImport":true},"failedLookupLocations":[81]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -6204,6 +6219,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -6302,7 +6320,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 13075 + "size": 13118 } //// [/user/username/projects/myproject/src/newFile.js] @@ -6459,7 +6477,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},{"version":"-497034637-export function something2() { return 20; }","signature":"-14992185226-export declare function something2(): number;\n"},"5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-497034637-export function something2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"failedLookupLocations":[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[78]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -7270,6 +7288,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -7365,7 +7386,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12938 + "size": 12981 } //// [/user/username/projects/myproject/src/fileNotFound.js] @@ -7515,7 +7536,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"failedLookupLocations":[32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[80]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./src/externalThingNotPresent.ts","./src/externalThingNotPresent.tsx","./src/externalThingNotPresent.d.ts","./externalThingNotPresent.ts","./externalThingNotPresent.tsx","./externalThingNotPresent.d.ts","../externalThingNotPresent.ts","../externalThingNotPresent.tsx","../externalThingNotPresent.d.ts","../../externalThingNotPresent.ts","../../externalThingNotPresent.tsx","../../externalThingNotPresent.d.ts","../../../externalThingNotPresent.ts","../../../externalThingNotPresent.tsx","../../../externalThingNotPresent.d.ts","../../../../externalThingNotPresent.ts","../../../../externalThingNotPresent.tsx","../../../../externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/package.json","./src/node_modules/@types/externalThingNotPresent.d.ts","./src/node_modules/@types/externalThingNotPresent/index.d.ts","./node_modules/@types/externalThingNotPresent/package.json","./node_modules/@types/externalThingNotPresent.d.ts","./node_modules/@types/externalThingNotPresent/index.d.ts","../node_modules/@types/externalThingNotPresent/package.json","../node_modules/@types/externalThingNotPresent.d.ts","../node_modules/@types/externalThingNotPresent/index.d.ts","../../node_modules/@types/externalThingNotPresent/package.json","../../node_modules/@types/externalThingNotPresent.d.ts","../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../node_modules/@types/externalThingNotPresent/package.json","../../../node_modules/@types/externalThingNotPresent.d.ts","../../../node_modules/@types/externalThingNotPresent/index.d.ts","../../../../node_modules/@types/externalThingNotPresent/package.json","../../../../node_modules/@types/externalThingNotPresent.d.ts","../../../../node_modules/@types/externalThingNotPresent/index.d.ts","./src/externalThingNotPresent.js","./src/externalThingNotPresent.jsx","./externalThingNotPresent.js","./externalThingNotPresent.jsx","../externalThingNotPresent.js","../externalThingNotPresent.jsx","../../externalThingNotPresent.js","../../externalThingNotPresent.jsx","../../../externalThingNotPresent.js","../../../externalThingNotPresent.jsx","../../../../externalThingNotPresent.js","../../../../externalThingNotPresent.jsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4],[6],[8,9],[8,9,11],[2,3,4,13]],"referencedMap":[[5,1],[7,2],[10,3],[12,4],[14,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,15,[5,[{"file":"./src/anotherfilereusingresolution.ts","start":167,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],4,3,2,7,10,9,8,12,11,[14,[{"file":"./src/main.ts","start":256,"length":25,"messageText":"Cannot find module 'externalThingNotPresent'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?","category":1,"code":2792}]],13,6],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":16,"originalFileName":16,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":5,"index":0},{"kind":0,"index":3},{"kind":3,"file":14,"index":1},{"kind":3,"file":14,"index":2}]},{"fileName":17,"originalFileName":17,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":5,"index":1},{"kind":0,"index":2},{"kind":3,"file":14,"index":3}]},{"fileName":18,"originalFileName":18,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":5,"index":2},{"kind":0,"index":1},{"kind":3,"file":14,"index":4}]},{"fileName":19,"originalFileName":19,"path":5,"resolvedPath":5,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":6,"originalFileName":6,"path":6,"resolvedPath":6,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":7,"index":0},{"kind":0,"index":12}]},{"fileName":20,"originalFileName":20,"path":7,"resolvedPath":7,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":4}]},{"fileName":21,"originalFileName":21,"path":8,"resolvedPath":8,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":0},{"kind":0,"index":7},{"kind":4,"file":12,"index":1}]},{"fileName":22,"originalFileName":22,"path":9,"resolvedPath":9,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":10,"index":1},{"kind":0,"index":6},{"kind":4,"file":12,"index":2}]},{"fileName":23,"originalFileName":23,"path":10,"resolvedPath":10,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":11,"resolvedPath":11,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":9}]},{"fileName":25,"originalFileName":25,"path":12,"resolvedPath":12,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":8}]},{"fileName":26,"originalFileName":26,"path":13,"resolvedPath":13,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":14,"index":0},{"kind":0,"index":11}]},{"fileName":14,"originalFileName":14,"path":14,"resolvedPath":14,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":15,"resolvedPath":15,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[19,18,17,16,20,23,22,21,25,24,14,26,6],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":16,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":17,"extension":".d.ts"},"failedLookupLocations":[28,29]},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"failedLookupLocations":[32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79]},{"resolvedModule":{"resolvedFileName":26,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":27,"isExternalLibraryImport":true},"failedLookupLocations":[80]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -8336,6 +8357,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -8435,7 +8459,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 12950 + "size": 12993 } @@ -8568,7 +8592,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/src/main.js] file written with same contents //// [/user/username/projects/myproject/src/main.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[34]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[34]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -9261,6 +9285,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -9314,7 +9341,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10614 + "size": 10657 } //// [/user/username/projects/myproject/src/externalThingNotPresent.js] @@ -9445,7 +9472,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,6,4,5,3,2,9,12,11,10,14,13,16,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/externalthing.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/externalThing.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"5618215488-export function externalThing1() { return 10; }","signature":"-13282660348-export declare function externalThing1(): number;\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[8],[10,11],[10,11,13],[2,3,4,5,15]],"referencedMap":[[6,1],[9,2],[12,3],[14,4],[16,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,17,6,4,5,3,2,9,12,11,10,14,13,16,15,8],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":16,"index":1},{"kind":3,"file":16,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":16,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":3,"file":16,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":16,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":23,"originalFileName":23,"path":7,"resolvedPath":7,"version":"5618215488-export function externalThing1() { return 10; }","flags":0,"includeReasons":[{"kind":0,"index":1}]},{"fileName":8,"originalFileName":8,"path":8,"resolvedPath":8,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":9,"index":0},{"kind":0,"index":13}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":0},{"kind":0,"index":8},{"kind":4,"file":14,"index":1}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":12,"index":1},{"kind":0,"index":7},{"kind":4,"file":14,"index":2}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":14,"index":0},{"kind":0,"index":10}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":30,"originalFileName":30,"path":15,"resolvedPath":15,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":16,"index":0},{"kind":0,"index":12}]},{"fileName":16,"originalFileName":16,"path":16,"resolvedPath":16,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,23,21,19,18,24,27,26,25,29,28,16,30,8],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[23,34]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":30,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[35]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -10153,6 +10180,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -10206,7 +10236,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10960 + "size": 11003 } //// [/user/username/projects/myproject/src/externalThing.js] @@ -10325,7 +10355,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[34]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType",6]],"automaticTypeDirectiveNames":["someType"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[34]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -11018,6 +11048,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType" + ], "resolutions": [ { "resolvedModule": { @@ -11071,7 +11104,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10614 + "size": 10657 } @@ -11194,7 +11227,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType2/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;","5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,17,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":30,"originalFileName":30,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,19,18,23,26,25,24,28,27,15,29,7],"resolvedTypeReferenceDirectives":[["someType",6],["someType2",7]],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[34,35]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":30,"isExternalLibraryImport":true},"failedLookupLocations":[36]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[37]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype/index.d.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType/index.d.ts","./node_modules/@types/someType2/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType/package.json","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"7070062898-export function someType(): number;","5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,17,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":18,"originalFileName":18,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":19,"originalFileName":19,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":20,"originalFileName":20,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":21,"originalFileName":21,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":22,"originalFileName":22,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":23,"originalFileName":23,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":24,"originalFileName":24,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":25,"originalFileName":25,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":26,"originalFileName":26,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":27,"originalFileName":27,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":28,"originalFileName":28,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":29,"originalFileName":29,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":30,"originalFileName":30,"path":16,"resolvedPath":16,"version":"7070062898-export function someType(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType"}],"isSourceFileFromExternalLibraryPath":true},{"fileName":31,"originalFileName":31,"path":17,"resolvedPath":17,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[22,20,21,19,18,23,26,25,24,28,27,15,29,7],"resolvedTypeReferenceDirectives":[["someType",6],["someType2",7]],"automaticTypeDirectiveNames":["someType","someType2"],"resolutions":[{"resolvedModule":{"resolvedFileName":18,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":20,"extension":".d.ts"},"failedLookupLocations":[34,35]},{"resolvedModule":{"resolvedFileName":21,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":29,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":30,"isExternalLibraryImport":true},"failedLookupLocations":[36]},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":31,"isExternalLibraryImport":true},"failedLookupLocations":[37]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -11923,6 +11956,10 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType", + "someType2" + ], "resolutions": [ { "resolvedModule": { @@ -11986,7 +12023,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 11191 + "size": 11246 } @@ -12101,7 +12138,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType2",6]],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[34]}]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./src/filepresent.ts","./src/filenotfound.d.ts","./src/externalthing.d.ts","./src/externalthingnotpresent.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./src/globalnewfile.ts","./src/globalmain.ts","./src/newfile.ts","./src/main.ts","./node_modules/@types/sometype2/index.d.ts","./src/filePresent.ts","./src/fileNotFound.d.ts","./src/externalThing.d.ts","./src/externalThingNotPresent.ts","./src/anotherFileReusingResolution.ts","./src/fileWithRef.ts","./src/globalFilePresent.ts","./src/globalFileNotFound.ts","./src/globalAnotherFileWithSameReferenes.ts","./src/globalNewFile.ts","./src/globalMain.ts","./src/newFile.ts","./node_modules/@types/someType2/index.d.ts","./src/fileNotFound.ts","./src/fileNotFound.tsx","./src/externalThing.ts","./src/externalThing.tsx","./node_modules/@types/someType2/package.json"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"11598859296-export function something() { return 10; }","signature":"-13601649692-export declare function something(): number;\n"},"-14992185226-export declare function something2(): number;\n","5686005290-export function externalThing1(): number;",{"version":"5318862050-export function externalThing2() { return 20; }","signature":"-16245999227-export declare function externalThing2(): number;\n"},{"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","signature":"-3531856636-export {};\n"},{"version":"-12575322908-interface SomeType {}","signature":"-10760962856-interface SomeType {\n}\n","affectsGlobalScope":true},{"version":"-6085631553-/// ","signature":"-1928648610-/// \n"},{"version":"-5627034801-function globalSomething() { return 10; }","signature":"-7731522637-declare function globalSomething(): number;\n","affectsGlobalScope":true},{"version":"-6310824062-function globalSomething2() { return 20; }","signature":"-5961586139-declare function globalSomething2(): number;\n","affectsGlobalScope":true},{"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","signature":"-17196641480-/// \n/// \ndeclare function globalAnotherFileWithSameReferenes(): void;\n","affectsGlobalScope":true},{"version":"4916490342-function globalFoo() { return 20; }","signature":"4030514825-declare function globalFoo(): number;\n","affectsGlobalScope":true},{"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","signature":"-15417052438-/// \n/// \n/// \ndeclare function globalMain(): void;\n","affectsGlobalScope":true},{"version":"4428918903-export function foo() { return 20; }","signature":"-4788605446-export declare function foo(): number;\n"},{"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","signature":"-3531856636-export {};\n"},"5420646020-export function someType2(): number;"],"options":{"composite":true,"configFilePath":"./tsconfig.json","extendedDiagnostics":true,"module":2,"persistResolutions":true,"project":"./","traceResolution":true,"watch":true},"fileIdsList":[[2,3,4,5],[7],[9,10],[9,10,12],[2,3,4,5,14]],"referencedMap":[[6,1],[8,2],[11,3],[13,4],[15,5]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,16,6,4,5,3,2,8,11,10,9,13,12,15,14,7],"peristedProgram":{"files":[{"fileName":1,"originalFileName":1,"path":1,"resolvedPath":1,"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","flags":0,"hasNoDefaultLib":true,"includeReasons":[{"kind":6}]},{"fileName":17,"originalFileName":17,"path":2,"resolvedPath":2,"version":"11598859296-export function something() { return 10; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":0},{"kind":0,"index":4},{"kind":3,"file":15,"index":1},{"kind":3,"file":15,"index":2}]},{"fileName":18,"originalFileName":18,"path":3,"resolvedPath":3,"version":"-14992185226-export declare function something2(): number;\n","flags":0,"includeReasons":[{"kind":3,"file":6,"index":1},{"kind":0,"index":3},{"kind":3,"file":15,"index":3}]},{"fileName":19,"originalFileName":19,"path":4,"resolvedPath":4,"version":"5686005290-export function externalThing1(): number;","flags":0,"includeReasons":[{"kind":3,"file":6,"index":2},{"kind":0,"index":1},{"kind":3,"file":15,"index":4}]},{"fileName":20,"originalFileName":20,"path":5,"resolvedPath":5,"version":"5318862050-export function externalThing2() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":6,"index":3},{"kind":0,"index":2},{"kind":3,"file":15,"index":5}]},{"fileName":21,"originalFileName":21,"path":6,"resolvedPath":6,"version":"-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";","flags":0,"imports":[{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":0}]},{"fileName":7,"originalFileName":7,"path":7,"resolvedPath":7,"version":"-12575322908-interface SomeType {}","flags":0,"includeReasons":[{"kind":4,"file":8,"index":0},{"kind":0,"index":13}]},{"fileName":22,"originalFileName":22,"path":8,"resolvedPath":8,"version":"-6085631553-/// ","flags":0,"referencedFiles":["./types.ts"],"includeReasons":[{"kind":0,"index":5}]},{"fileName":23,"originalFileName":23,"path":9,"resolvedPath":9,"version":"-5627034801-function globalSomething() { return 10; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":0},{"kind":0,"index":8},{"kind":4,"file":13,"index":1}]},{"fileName":24,"originalFileName":24,"path":10,"resolvedPath":10,"version":"-6310824062-function globalSomething2() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":11,"index":1},{"kind":0,"index":7},{"kind":4,"file":13,"index":2}]},{"fileName":25,"originalFileName":25,"path":11,"resolvedPath":11,"version":"-4448253777-/// \n/// \nfunction globalAnotherFileWithSameReferenes() { }\n","flags":0,"referencedFiles":["./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":6}]},{"fileName":26,"originalFileName":26,"path":12,"resolvedPath":12,"version":"4916490342-function globalFoo() { return 20; }","flags":0,"includeReasons":[{"kind":4,"file":13,"index":0},{"kind":0,"index":10}]},{"fileName":27,"originalFileName":27,"path":13,"resolvedPath":13,"version":"-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();","flags":0,"referencedFiles":["./globalNewFile.ts","./globalFilePresent.ts","./globalFileNotFound.ts"],"includeReasons":[{"kind":0,"index":9}]},{"fileName":28,"originalFileName":28,"path":14,"resolvedPath":14,"version":"4428918903-export function foo() { return 20; }","flags":0,"includeReasons":[{"kind":3,"file":15,"index":0},{"kind":0,"index":12}]},{"fileName":15,"originalFileName":15,"path":15,"resolvedPath":15,"version":"6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();","flags":0,"imports":[{"kind":10,"text":"./newFile"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./filePresent"},{"kind":10,"text":"./fileNotFound"},{"kind":10,"text":"externalThing"},{"kind":10,"text":"externalThingNotPresent"}],"resolvedModules":[["./newFile",5],["./filePresent",1],["./fileNotFound",2],["externalThing",3],["externalThingNotPresent",4]],"includeReasons":[{"kind":0,"index":11}]},{"fileName":29,"originalFileName":29,"path":16,"resolvedPath":16,"version":"5420646020-export function someType2(): number;","flags":0,"includeReasons":[{"kind":8,"typeReference":"someType2"}],"isSourceFileFromExternalLibraryPath":true}],"rootFileNames":[21,19,20,18,17,22,25,24,23,27,26,15,28,7],"resolvedTypeReferenceDirectives":[["someType2",6]],"automaticTypeDirectiveNames":["someType2"],"resolutions":[{"resolvedModule":{"resolvedFileName":17,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":18,"extension":".d.ts"},"failedLookupLocations":[30,31]},{"resolvedModule":{"resolvedFileName":19,"extension":".d.ts"},"failedLookupLocations":[32,33]},{"resolvedModule":{"resolvedFileName":20,"extension":".ts"}},{"resolvedModule":{"resolvedFileName":28,"extension":".ts"}},{"resolvedTypeReferenceDirective":{"primary":true,"resolvedFileName":29,"isExternalLibraryImport":true},"failedLookupLocations":[34]}]}},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -12794,6 +12831,9 @@ exitCode:: ExitStatus.undefined } ] ], + "automaticTypeDirectiveNames": [ + "someType2" + ], "resolutions": [ { "resolvedModule": { @@ -12847,6 +12887,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 10621 + "size": 10665 } From d604d19b1c199ec8163fa7af5b2c7b1caabfaffe Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 26 May 2021 14:00:15 -0700 Subject: [PATCH 46/48] Tests for project references and persistResolutions (without actually enabling persistResolutions) --- .../unittests/tsserver/persistResolutions.ts | 198 +++++++++++++++--- ...ntains-fewer-modules-than-original-file.js | 184 ++++++++++++++++ ...info-is-not-present-with-sample-project.js | 189 +++++++++++++++++ ...ntains-fewer-modules-than-original-file.js | 184 ++++++++++++++++ ...am-is-not-persisted-with-sample-project.js | 189 +++++++++++++++++ ...ntains-fewer-modules-than-original-file.js | 184 ++++++++++++++++ ...olution-for-program-with-sample-project.js | 189 +++++++++++++++++ 7 files changed, 1283 insertions(+), 34 deletions(-) create mode 100644 tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present-with-project-where-dts-file-contains-fewer-modules-than-original-file.js create mode 100644 tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present-with-sample-project.js create mode 100644 tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted-with-project-where-dts-file-contains-fewer-modules-than-original-file.js create mode 100644 tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted-with-sample-project.js create mode 100644 tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-project-where-dts-file-contains-fewer-modules-than-original-file.js create mode 100644 tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-sample-project.js diff --git a/src/testRunner/unittests/tsserver/persistResolutions.ts b/src/testRunner/unittests/tsserver/persistResolutions.ts index 51cd3562c3912..16aa27c5d3aad 100644 --- a/src/testRunner/unittests/tsserver/persistResolutions.ts +++ b/src/testRunner/unittests/tsserver/persistResolutions.ts @@ -1,4 +1,52 @@ namespace ts.projectSystem { + interface SetupHostOutput { + host: TestServerHost; + openFiles: readonly File[]; + config: File; + } + + function setupHostWithSavedResolutions(setupHost: () => T): T { + const result = setupHost(); + const exit = result.host.exit; + result.host.exit = noop; + fakes.withTemporaryPatchingForBuildinfoReadWrite(result.host, sys => executeCommandLine(sys, noop, ["--b", result.config.path])); + result.host.clearOutput(); + result.host.exit = exit; + return result; + } + + function setupHostWithClearedResolutions(setupHost: () => T): T { + const result = setupHost(); + const exit = result.host.exit; + result.host.exit = noop; + fakes.withTemporaryPatchingForBuildinfoReadWrite(result.host, sys => { + executeCommandLine(sys, noop, ["--b", result.config.path]); + executeCommandLine(sys, noop, ["--b", result.config.path, "--cleanPersistedProgram"]); + }); + result.host.clearOutput(); + result.host.exit = exit; + return result; + } + + function setup({ host, openFiles, config }: T) { + fakes.patchHostForBuildInfoReadWrite(host); + const session = createSession(host, { logger: createLoggerWithInMemoryLogs() }); + openFilesForSession(openFiles, session); + const project = session.getProjectService().configuredProjects.get(config.path)!; + return { session, project }; + } + + function persistResolutions(file: File) { + const content = JSON.parse(file.content); + content.compilerOptions = { + ...content.compilerOptions || {}, + persistResolutions: false, + traceResolution: true, + }; + file.content = JSON.stringify(content, /*replacer*/ undefined, 4); + return file; + } + describe("unittests:: tsserver:: persistResolutions", () => { function setupHost() { const { main, anotherFileReusingResolution, filePresent, fileWithRef, types, globalMain, globalAnotherFileWithSameReferenes, globalFilePresent, externalThing, someType, config } = tscWatch.PersistentResolutionsTests.getFiles(); @@ -6,38 +54,7 @@ namespace ts.projectSystem { [main, anotherFileReusingResolution, filePresent, fileWithRef, types, globalMain, globalAnotherFileWithSameReferenes, globalFilePresent, externalThing, someType, config, libFile], { currentDirectory: tscWatch.projectRoot, useCaseSensitiveFileNames: true } ); - return { host, main, globalMain, config }; - } - - function setupHostWithSavedResolutions() { - const result = setupHost(); - const exit = result.host.exit; - result.host.exit = noop; - fakes.withTemporaryPatchingForBuildinfoReadWrite(result.host, sys => executeCommandLine(sys, noop, ["--p", "."])); - result.host.exit = exit; - result.host.clearOutput(); - return result; - } - - function setupHostWithClearedResolutions() { - const result = setupHost(); - const exit = result.host.exit; - result.host.exit = noop; - fakes.withTemporaryPatchingForBuildinfoReadWrite(result.host, sys => { - executeCommandLine(sys, noop, ["--p", "."]); - executeCommandLine(sys, noop, ["--p", ".", "--cleanPersistedProgram"]); - }); - result.host.exit = exit; - result.host.clearOutput(); - return result; - } - - function setup({ host, main, globalMain, config }: ReturnType) { - fakes.patchHostForBuildInfoReadWrite(host); - const session = createSession(host, { logger: createLoggerWithInMemoryLogs() }); - openFilesForSession([main, globalMain], session); - const project = session.getProjectService().configuredProjects.get(config.path)!; - return { session, project }; + return { host, main, globalMain, config, openFiles: [main, globalMain] }; } function modifyGlobalMain(session: TestSession, project: server.ConfiguredProject, globalMain: File) { @@ -190,7 +207,7 @@ namespace ts.projectSystem { } it("uses saved resolution for program", () => { - const result = setupHostWithSavedResolutions(); + const result = setupHostWithSavedResolutions(setupHost); const { project, session } = setup(result); const { host, main, globalMain } = result; appendProjectFileText(project, session); @@ -236,7 +253,7 @@ namespace ts.projectSystem { }); it("creates new resolutions for program if tsbuildinfo is present but program is not persisted", () => { - const result = setupHostWithClearedResolutions(); + const result = setupHostWithClearedResolutions(setupHost); const { project, session } = setup(result); const { host, main, globalMain } = result; appendProjectFileText(project, session); @@ -258,4 +275,117 @@ namespace ts.projectSystem { baselineTsserverLogs("persistResolutions", "creates new resolutions for program if tsbuildinfo is present but program is not persisted", session); }); }); + + describe("unittests:: tsserver:: persistResolutions on sample project", () => { + function setupHost() { + const coreConfig = persistResolutions(TestFSWithWatch.getTsBuildProjectFile("sample1", "core/tsconfig.json")); + const coreIndex = TestFSWithWatch.getTsBuildProjectFile("sample1", "core/index.ts"); + const coreAnotherModule = TestFSWithWatch.getTsBuildProjectFile("sample1", "core/anotherModule.ts"); + const coreSomeDecl = TestFSWithWatch.getTsBuildProjectFile("sample1", "core/some_decl.d.ts"); + const logicConfig = persistResolutions(TestFSWithWatch.getTsBuildProjectFile("sample1", "logic/tsconfig.json")); + const logicIndex = TestFSWithWatch.getTsBuildProjectFile("sample1", "logic/index.ts"); + const testsConfig = persistResolutions(TestFSWithWatch.getTsBuildProjectFile("sample1", "tests/tsconfig.json")); + const testsIndex = TestFSWithWatch.getTsBuildProjectFile("sample1", "tests/index.ts"); + const host = createServerHost([libFile, coreConfig, coreIndex, coreAnotherModule, coreSomeDecl, logicConfig, logicIndex, testsConfig, testsIndex]); + return { host, config: testsConfig, openFiles: [testsIndex] }; + } + + + it("uses saved resolution for program", () => { + const result = setupHostWithSavedResolutions(setupHost); + const { project, session } = setup(result); + appendProjectFileText(project, session); + baselineTsserverLogs("persistResolutions", "uses saved resolution for program with sample project", session); + }); + + it("creates new resolutions for program if tsbuildinfo is not present", () => { + const result = setupHost(); + const { project, session } = setup(result); + appendProjectFileText(project, session); + baselineTsserverLogs("persistResolutions", "creates new resolutions for program if tsbuildinfo is not present with sample project", session); + }); + + it("creates new resolutions for program if tsbuildinfo is present but program is not persisted", () => { + const result = setupHostWithClearedResolutions(setupHost); + const { project, session } = setup(result); + appendProjectFileText(project, session); + baselineTsserverLogs("persistResolutions", "creates new resolutions for program if tsbuildinfo is present but program is not persisted with sample project", session); + }); + }); + + describe("unittests:: tsserver:: persistResolutions on project where d.ts file contains fewer modules than original file", () => { + function setupHost() { + const coreConfig: File = { + path: `${tscWatch.projectRoot}/core/tsconfig.json`, + content: JSON.stringify({ compilerOptions: { composite: true, persistResolutions: false, traceResolution: true } }) + }; + const coreIndex: File = { + path: `${tscWatch.projectRoot}/core/index.ts`, + content: `export function bar() { return 10; }` + }; + const coreMyClass: File = { + path: `${tscWatch.projectRoot}/core/myClass.ts`, + content: `export class myClass { }` + }; + const coreAnotherClass: File = { + path: `${tscWatch.projectRoot}/core/anotherClass.ts`, + content: `export class anotherClass { }` + }; + const logicConfig: File = { + path: `${tscWatch.projectRoot}/logic/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { composite: true, persistResolutions: false, traceResolution: true }, + references: [{ path: "../core" }] + }) + }; + const logicIndex: File = { + path: `${tscWatch.projectRoot}/logic/index.ts`, + content: `import { myClass } from "../core/myClass"; +import { bar } from "../core"; +import { anotherClass } from "../core/anotherClass"; +export function returnMyClass() { + bar(); + return new myClass(); +} +export function returnAnotherClass() { + return new anotherClass(); +}` + }; + const testsConfig: File = { + path: `${tscWatch.projectRoot}/tests/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { composite: true, persistResolutions: false, traceResolution: true }, + references: [{ path: "../logic" }] + }) + }; + const testsIndex: File = { + path: `${tscWatch.projectRoot}/tests/index.ts`, + content: `import { returnMyClass } from "../logic"; +returnMyClass();` + }; + const host = createServerHost([libFile, coreConfig, coreIndex, coreMyClass, coreAnotherClass, logicConfig, logicIndex, testsConfig, testsIndex]); + return { host, config: testsConfig, openFiles: [testsIndex] }; + } + + it("uses saved resolution for program", () => { + const result = setupHostWithSavedResolutions(setupHost); + const { project, session } = setup(result); + appendProjectFileText(project, session); + baselineTsserverLogs("persistResolutions", "uses saved resolution for program with project where dts file contains fewer modules than original file", session); + }); + + it("creates new resolutions for program if tsbuildinfo is not present", () => { + const result = setupHost(); + const { project, session } = setup(result); + appendProjectFileText(project, session); + baselineTsserverLogs("persistResolutions", "creates new resolutions for program if tsbuildinfo is not present with project where dts file contains fewer modules than original file", session); + }); + + it("creates new resolutions for program if tsbuildinfo is present but program is not persisted", () => { + const result = setupHostWithClearedResolutions(setupHost); + const { project, session } = setup(result); + appendProjectFileText(project, session); + baselineTsserverLogs("persistResolutions", "creates new resolutions for program if tsbuildinfo is present but program is not persisted with project where dts file contains fewer modules than original file", session); + }); + }); } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present-with-project-where-dts-file-contains-fewer-modules-than-original-file.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present-with-project-where-dts-file-contains-fewer-modules-than-original-file.js new file mode 100644 index 0000000000000..d8d08e8d5140f --- /dev/null +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present-with-project-where-dts-file-contains-fewer-modules-than-original-file.js @@ -0,0 +1,184 @@ +Provided types map file "/a/lib/typesMap.json" doesn't exist +request:{"seq":0,"type":"request","command":"open","arguments":{"file":"/user/username/projects/myproject/tests/index.ts"}} +Search path: /user/username/projects/myproject/tests +For info: /user/username/projects/myproject/tests/index.ts :: Config file name: /user/username/projects/myproject/tests/tsconfig.json +Creating configuration project /user/username/projects/myproject/tests/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tests/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Config file +Config: /user/username/projects/myproject/tests/tsconfig.json : { + "rootNames": [ + "/user/username/projects/myproject/tests/index.ts" + ], + "options": { + "composite": true, + "persistResolutions": false, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tests/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/user/username/projects/myproject/logic", + "originalPath": "../logic" + } + ] +} +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tests 1 undefined Config: /user/username/projects/myproject/tests/tsconfig.json WatchType: Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tests 1 undefined Config: /user/username/projects/myproject/tests/tsconfig.json WatchType: Wild card directory +Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded +Starting updateGraphWorker: Project: /user/username/projects/myproject/tests/tsconfig.json +Config: /user/username/projects/myproject/logic/tsconfig.json : { + "rootNames": [ + "/user/username/projects/myproject/logic/index.ts" + ], + "options": { + "composite": true, + "persistResolutions": false, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/logic/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/user/username/projects/myproject/core", + "originalPath": "../core" + } + ] +} +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Config file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic 1 undefined Config: /user/username/projects/myproject/logic/tsconfig.json WatchType: Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic 1 undefined Config: /user/username/projects/myproject/logic/tsconfig.json WatchType: Wild card directory +Config: /user/username/projects/myproject/core/tsconfig.json : { + "rootNames": [ + "/user/username/projects/myproject/core/anotherClass.ts", + "/user/username/projects/myproject/core/index.ts", + "/user/username/projects/myproject/core/myClass.ts" + ], + "options": { + "composite": true, + "persistResolutions": false, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/core/tsconfig.json" + } +} +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Config file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Config: /user/username/projects/myproject/core/tsconfig.json WatchType: Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Config: /user/username/projects/myproject/core/tsconfig.json WatchType: Wild card directory +======== Resolving module '../logic' from '/user/username/projects/myproject/tests/index.ts'. ======== +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/logic', target file type 'TypeScript'. +File '/user/username/projects/myproject/logic.ts' does not exist. +File '/user/username/projects/myproject/logic.tsx' does not exist. +File '/user/username/projects/myproject/logic.d.ts' does not exist. +File '/user/username/projects/myproject/logic/package.json' does not exist. +File '/user/username/projects/myproject/logic/index.ts' exist - use it as a name resolution result. +======== Module name '../logic' was successfully resolved to '/user/username/projects/myproject/logic/index.ts'. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic/index.ts 500 undefined WatchType: Closed Script info +======== Resolving module '../core/myClass' from '/user/username/projects/myproject/logic/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/myproject/logic/tsconfig.json'. +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/core/myClass', target file type 'TypeScript'. +File '/user/username/projects/myproject/core/myClass.ts' exist - use it as a name resolution result. +======== Module name '../core/myClass' was successfully resolved to '/user/username/projects/myproject/core/myClass.ts'. ======== +======== Resolving module '../core' from '/user/username/projects/myproject/logic/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/myproject/logic/tsconfig.json'. +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/core', target file type 'TypeScript'. +File '/user/username/projects/myproject/core.ts' does not exist. +File '/user/username/projects/myproject/core.tsx' does not exist. +File '/user/username/projects/myproject/core.d.ts' does not exist. +File '/user/username/projects/myproject/core/package.json' does not exist. +File '/user/username/projects/myproject/core/index.ts' exist - use it as a name resolution result. +======== Module name '../core' was successfully resolved to '/user/username/projects/myproject/core/index.ts'. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations +======== Resolving module '../core/anotherClass' from '/user/username/projects/myproject/logic/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/myproject/logic/tsconfig.json'. +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/core/anotherClass', target file type 'TypeScript'. +File '/user/username/projects/myproject/core/anotherClass.ts' exist - use it as a name resolution result. +======== Module name '../core/anotherClass' was successfully resolved to '/user/username/projects/myproject/core/anotherClass.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/myClass.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/index.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/anotherClass.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tests/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tests/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Type roots +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tests/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/myproject/tests/tsconfig.json' (Configured) + Files (6) + /a/lib/lib.d.ts + /user/username/projects/myproject/core/myClass.ts + /user/username/projects/myproject/core/index.ts + /user/username/projects/myproject/core/anotherClass.ts + /user/username/projects/myproject/logic/index.ts + /user/username/projects/myproject/tests/index.ts + + + ../../../../../a/lib/lib.d.ts + Default library + ../core/myClass.ts + Imported via "../core/myClass" from file '../logic/index.ts' + ../core/index.ts + Imported via "../core" from file '../logic/index.ts' + ../core/anotherClass.ts + Imported via "../core/anotherClass" from file '../logic/index.ts' + ../logic/index.ts + Imported via "../logic" from file 'index.ts' + index.ts + Matched by include pattern '**/*' in 'tsconfig.json' + +----------------------------------------------- +Search path: /user/username/projects/myproject/tests +For info: /user/username/projects/myproject/tests/tsconfig.json :: No config files found. +Project '/user/username/projects/myproject/tests/tsconfig.json' (Configured) + Files (6) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/tests/index.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tests/tsconfig.json +response:{"responseRequired":false} + +Project: /user/username/projects/myproject/tests/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/core/myClass.ts","version":"-11785903855-export class myClass { }"} +export class myClass { } + +{"fileName":"/user/username/projects/myproject/core/index.ts","version":"4120767815-export function bar() { return 10; }"} +export function bar() { return 10; } + +{"fileName":"/user/username/projects/myproject/core/anotherClass.ts","version":"-6664885476-export class anotherClass { }"} +export class anotherClass { } + +{"fileName":"/user/username/projects/myproject/logic/index.ts","version":"-8233748805-import { myClass } from \"../core/myClass\";\nimport { bar } from \"../core\";\nimport { anotherClass } from \"../core/anotherClass\";\nexport function returnMyClass() {\n bar();\n return new myClass();\n}\nexport function returnAnotherClass() {\n return new anotherClass();\n}"} +import { myClass } from "../core/myClass"; +import { bar } from "../core"; +import { anotherClass } from "../core/anotherClass"; +export function returnMyClass() { + bar(); + return new myClass(); +} +export function returnAnotherClass() { + return new anotherClass(); +} + +{"fileName":"/user/username/projects/myproject/tests/index.ts","version":"-2125404654-import { returnMyClass } from \"../logic\";\nreturnMyClass();"} +import { returnMyClass } from "../logic"; +returnMyClass(); + diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present-with-sample-project.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present-with-sample-project.js new file mode 100644 index 0000000000000..f0e6455a667ad --- /dev/null +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present-with-sample-project.js @@ -0,0 +1,189 @@ +Provided types map file "/a/lib/typesMap.json" doesn't exist +request:{"seq":0,"type":"request","command":"open","arguments":{"file":"/user/username/projects/sample1/tests/index.ts"}} +Search path: /user/username/projects/sample1/tests +For info: /user/username/projects/sample1/tests/index.ts :: Config file name: /user/username/projects/sample1/tests/tsconfig.json +Creating configuration project /user/username/projects/sample1/tests/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/tests/tsconfig.json 2000 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Config file +Config: /user/username/projects/sample1/tests/tsconfig.json : { + "rootNames": [ + "/user/username/projects/sample1/tests/index.ts" + ], + "options": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "persistResolutions": false, + "traceResolution": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/user/username/projects/sample1/core", + "originalPath": "../core" + }, + { + "path": "/user/username/projects/sample1/logic", + "originalPath": "../logic" + } + ] +} +Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded +Starting updateGraphWorker: Project: /user/username/projects/sample1/tests/tsconfig.json +Config: /user/username/projects/sample1/core/tsconfig.json : { + "rootNames": [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "persistResolutions": false, + "traceResolution": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" + } +} +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core/tsconfig.json 2000 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Config file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core 1 undefined Config: /user/username/projects/sample1/core/tsconfig.json WatchType: Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core 1 undefined Config: /user/username/projects/sample1/core/tsconfig.json WatchType: Wild card directory +Config: /user/username/projects/sample1/logic/tsconfig.json : { + "rootNames": [ + "/user/username/projects/sample1/logic/index.ts" + ], + "options": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "persistResolutions": false, + "traceResolution": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/user/username/projects/sample1/core", + "originalPath": "../core" + } + ] +} +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic/tsconfig.json 2000 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Config file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic 1 undefined Config: /user/username/projects/sample1/logic/tsconfig.json WatchType: Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic 1 undefined Config: /user/username/projects/sample1/logic/tsconfig.json WatchType: Wild card directory +======== Resolving module '../core/index' from '/user/username/projects/sample1/tests/index.ts'. ======== +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/index', target file type 'TypeScript'. +File '/user/username/projects/sample1/core/index.ts' exist - use it as a name resolution result. +======== Module name '../core/index' was successfully resolved to '/user/username/projects/sample1/core/index.ts'. ======== +======== Resolving module '../logic/index' from '/user/username/projects/sample1/tests/index.ts'. ======== +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/sample1/logic/index', target file type 'TypeScript'. +File '/user/username/projects/sample1/logic/index.ts' exist - use it as a name resolution result. +======== Module name '../logic/index' was successfully resolved to '/user/username/projects/sample1/logic/index.ts'. ======== +======== Resolving module '../core/anotherModule' from '/user/username/projects/sample1/tests/index.ts'. ======== +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/anotherModule', target file type 'TypeScript'. +File '/user/username/projects/sample1/core/anotherModule.ts' exist - use it as a name resolution result. +======== Module name '../core/anotherModule' was successfully resolved to '/user/username/projects/sample1/core/anotherModule.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core/index.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic/index.ts 500 undefined WatchType: Closed Script info +======== Resolving module '../core/index' from '/user/username/projects/sample1/logic/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/sample1/logic/tsconfig.json'. +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/index', target file type 'TypeScript'. +File '/user/username/projects/sample1/core/index.ts' exist - use it as a name resolution result. +======== Module name '../core/index' was successfully resolved to '/user/username/projects/sample1/core/index.ts'. ======== +======== Resolving module '../core/anotherModule' from '/user/username/projects/sample1/logic/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/sample1/logic/tsconfig.json'. +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/anotherModule', target file type 'TypeScript'. +File '/user/username/projects/sample1/core/anotherModule.ts' exist - use it as a name resolution result. +======== Module name '../core/anotherModule' was successfully resolved to '/user/username/projects/sample1/core/anotherModule.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core/anotherModule.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/tests/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/tests/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots +Finishing updateGraphWorker: Project: /user/username/projects/sample1/tests/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/sample1/tests/tsconfig.json' (Configured) + Files (5) + /a/lib/lib.d.ts + /user/username/projects/sample1/core/index.ts + /user/username/projects/sample1/core/anotherModule.ts + /user/username/projects/sample1/logic/index.ts + /user/username/projects/sample1/tests/index.ts + + + ../../../../../a/lib/lib.d.ts + Default library + ../core/index.ts + Imported via '../core/index' from file 'index.ts' + Imported via '../core/index' from file '../logic/index.ts' + ../core/anotherModule.ts + Imported via '../core/anotherModule' from file '../logic/index.ts' + Imported via '../core/anotherModule' from file 'index.ts' + ../logic/index.ts + Imported via '../logic/index' from file 'index.ts' + index.ts + Part of 'files' list in tsconfig.json + +----------------------------------------------- +Search path: /user/username/projects/sample1/tests +For info: /user/username/projects/sample1/tests/tsconfig.json :: No config files found. +Project '/user/username/projects/sample1/tests/tsconfig.json' (Configured) + Files (5) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/sample1/tests/index.ts ProjectRootPath: undefined + Projects: /user/username/projects/sample1/tests/tsconfig.json +response:{"responseRequired":false} + +Project: /user/username/projects/sample1/tests/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/sample1/core/index.ts","version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n"} +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + + +{"fileName":"/user/username/projects/sample1/core/anotherModule.ts","version":"-2676574883-export const World = \"hello\";\r\n"} +export const World = "hello"; + + +{"fileName":"/user/username/projects/sample1/logic/index.ts","version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"} +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +{"fileName":"/user/username/projects/sample1/tests/index.ts","version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"} +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; + + diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted-with-project-where-dts-file-contains-fewer-modules-than-original-file.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted-with-project-where-dts-file-contains-fewer-modules-than-original-file.js new file mode 100644 index 0000000000000..d8d08e8d5140f --- /dev/null +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted-with-project-where-dts-file-contains-fewer-modules-than-original-file.js @@ -0,0 +1,184 @@ +Provided types map file "/a/lib/typesMap.json" doesn't exist +request:{"seq":0,"type":"request","command":"open","arguments":{"file":"/user/username/projects/myproject/tests/index.ts"}} +Search path: /user/username/projects/myproject/tests +For info: /user/username/projects/myproject/tests/index.ts :: Config file name: /user/username/projects/myproject/tests/tsconfig.json +Creating configuration project /user/username/projects/myproject/tests/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tests/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Config file +Config: /user/username/projects/myproject/tests/tsconfig.json : { + "rootNames": [ + "/user/username/projects/myproject/tests/index.ts" + ], + "options": { + "composite": true, + "persistResolutions": false, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tests/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/user/username/projects/myproject/logic", + "originalPath": "../logic" + } + ] +} +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tests 1 undefined Config: /user/username/projects/myproject/tests/tsconfig.json WatchType: Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tests 1 undefined Config: /user/username/projects/myproject/tests/tsconfig.json WatchType: Wild card directory +Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded +Starting updateGraphWorker: Project: /user/username/projects/myproject/tests/tsconfig.json +Config: /user/username/projects/myproject/logic/tsconfig.json : { + "rootNames": [ + "/user/username/projects/myproject/logic/index.ts" + ], + "options": { + "composite": true, + "persistResolutions": false, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/logic/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/user/username/projects/myproject/core", + "originalPath": "../core" + } + ] +} +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Config file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic 1 undefined Config: /user/username/projects/myproject/logic/tsconfig.json WatchType: Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic 1 undefined Config: /user/username/projects/myproject/logic/tsconfig.json WatchType: Wild card directory +Config: /user/username/projects/myproject/core/tsconfig.json : { + "rootNames": [ + "/user/username/projects/myproject/core/anotherClass.ts", + "/user/username/projects/myproject/core/index.ts", + "/user/username/projects/myproject/core/myClass.ts" + ], + "options": { + "composite": true, + "persistResolutions": false, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/core/tsconfig.json" + } +} +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Config file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Config: /user/username/projects/myproject/core/tsconfig.json WatchType: Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Config: /user/username/projects/myproject/core/tsconfig.json WatchType: Wild card directory +======== Resolving module '../logic' from '/user/username/projects/myproject/tests/index.ts'. ======== +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/logic', target file type 'TypeScript'. +File '/user/username/projects/myproject/logic.ts' does not exist. +File '/user/username/projects/myproject/logic.tsx' does not exist. +File '/user/username/projects/myproject/logic.d.ts' does not exist. +File '/user/username/projects/myproject/logic/package.json' does not exist. +File '/user/username/projects/myproject/logic/index.ts' exist - use it as a name resolution result. +======== Module name '../logic' was successfully resolved to '/user/username/projects/myproject/logic/index.ts'. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic/index.ts 500 undefined WatchType: Closed Script info +======== Resolving module '../core/myClass' from '/user/username/projects/myproject/logic/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/myproject/logic/tsconfig.json'. +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/core/myClass', target file type 'TypeScript'. +File '/user/username/projects/myproject/core/myClass.ts' exist - use it as a name resolution result. +======== Module name '../core/myClass' was successfully resolved to '/user/username/projects/myproject/core/myClass.ts'. ======== +======== Resolving module '../core' from '/user/username/projects/myproject/logic/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/myproject/logic/tsconfig.json'. +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/core', target file type 'TypeScript'. +File '/user/username/projects/myproject/core.ts' does not exist. +File '/user/username/projects/myproject/core.tsx' does not exist. +File '/user/username/projects/myproject/core.d.ts' does not exist. +File '/user/username/projects/myproject/core/package.json' does not exist. +File '/user/username/projects/myproject/core/index.ts' exist - use it as a name resolution result. +======== Module name '../core' was successfully resolved to '/user/username/projects/myproject/core/index.ts'. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations +======== Resolving module '../core/anotherClass' from '/user/username/projects/myproject/logic/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/myproject/logic/tsconfig.json'. +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/core/anotherClass', target file type 'TypeScript'. +File '/user/username/projects/myproject/core/anotherClass.ts' exist - use it as a name resolution result. +======== Module name '../core/anotherClass' was successfully resolved to '/user/username/projects/myproject/core/anotherClass.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/myClass.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/index.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/anotherClass.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tests/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tests/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Type roots +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tests/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/myproject/tests/tsconfig.json' (Configured) + Files (6) + /a/lib/lib.d.ts + /user/username/projects/myproject/core/myClass.ts + /user/username/projects/myproject/core/index.ts + /user/username/projects/myproject/core/anotherClass.ts + /user/username/projects/myproject/logic/index.ts + /user/username/projects/myproject/tests/index.ts + + + ../../../../../a/lib/lib.d.ts + Default library + ../core/myClass.ts + Imported via "../core/myClass" from file '../logic/index.ts' + ../core/index.ts + Imported via "../core" from file '../logic/index.ts' + ../core/anotherClass.ts + Imported via "../core/anotherClass" from file '../logic/index.ts' + ../logic/index.ts + Imported via "../logic" from file 'index.ts' + index.ts + Matched by include pattern '**/*' in 'tsconfig.json' + +----------------------------------------------- +Search path: /user/username/projects/myproject/tests +For info: /user/username/projects/myproject/tests/tsconfig.json :: No config files found. +Project '/user/username/projects/myproject/tests/tsconfig.json' (Configured) + Files (6) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/tests/index.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tests/tsconfig.json +response:{"responseRequired":false} + +Project: /user/username/projects/myproject/tests/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/core/myClass.ts","version":"-11785903855-export class myClass { }"} +export class myClass { } + +{"fileName":"/user/username/projects/myproject/core/index.ts","version":"4120767815-export function bar() { return 10; }"} +export function bar() { return 10; } + +{"fileName":"/user/username/projects/myproject/core/anotherClass.ts","version":"-6664885476-export class anotherClass { }"} +export class anotherClass { } + +{"fileName":"/user/username/projects/myproject/logic/index.ts","version":"-8233748805-import { myClass } from \"../core/myClass\";\nimport { bar } from \"../core\";\nimport { anotherClass } from \"../core/anotherClass\";\nexport function returnMyClass() {\n bar();\n return new myClass();\n}\nexport function returnAnotherClass() {\n return new anotherClass();\n}"} +import { myClass } from "../core/myClass"; +import { bar } from "../core"; +import { anotherClass } from "../core/anotherClass"; +export function returnMyClass() { + bar(); + return new myClass(); +} +export function returnAnotherClass() { + return new anotherClass(); +} + +{"fileName":"/user/username/projects/myproject/tests/index.ts","version":"-2125404654-import { returnMyClass } from \"../logic\";\nreturnMyClass();"} +import { returnMyClass } from "../logic"; +returnMyClass(); + diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted-with-sample-project.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted-with-sample-project.js new file mode 100644 index 0000000000000..f0e6455a667ad --- /dev/null +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted-with-sample-project.js @@ -0,0 +1,189 @@ +Provided types map file "/a/lib/typesMap.json" doesn't exist +request:{"seq":0,"type":"request","command":"open","arguments":{"file":"/user/username/projects/sample1/tests/index.ts"}} +Search path: /user/username/projects/sample1/tests +For info: /user/username/projects/sample1/tests/index.ts :: Config file name: /user/username/projects/sample1/tests/tsconfig.json +Creating configuration project /user/username/projects/sample1/tests/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/tests/tsconfig.json 2000 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Config file +Config: /user/username/projects/sample1/tests/tsconfig.json : { + "rootNames": [ + "/user/username/projects/sample1/tests/index.ts" + ], + "options": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "persistResolutions": false, + "traceResolution": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/user/username/projects/sample1/core", + "originalPath": "../core" + }, + { + "path": "/user/username/projects/sample1/logic", + "originalPath": "../logic" + } + ] +} +Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded +Starting updateGraphWorker: Project: /user/username/projects/sample1/tests/tsconfig.json +Config: /user/username/projects/sample1/core/tsconfig.json : { + "rootNames": [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "persistResolutions": false, + "traceResolution": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" + } +} +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core/tsconfig.json 2000 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Config file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core 1 undefined Config: /user/username/projects/sample1/core/tsconfig.json WatchType: Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core 1 undefined Config: /user/username/projects/sample1/core/tsconfig.json WatchType: Wild card directory +Config: /user/username/projects/sample1/logic/tsconfig.json : { + "rootNames": [ + "/user/username/projects/sample1/logic/index.ts" + ], + "options": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "persistResolutions": false, + "traceResolution": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/user/username/projects/sample1/core", + "originalPath": "../core" + } + ] +} +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic/tsconfig.json 2000 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Config file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic 1 undefined Config: /user/username/projects/sample1/logic/tsconfig.json WatchType: Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic 1 undefined Config: /user/username/projects/sample1/logic/tsconfig.json WatchType: Wild card directory +======== Resolving module '../core/index' from '/user/username/projects/sample1/tests/index.ts'. ======== +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/index', target file type 'TypeScript'. +File '/user/username/projects/sample1/core/index.ts' exist - use it as a name resolution result. +======== Module name '../core/index' was successfully resolved to '/user/username/projects/sample1/core/index.ts'. ======== +======== Resolving module '../logic/index' from '/user/username/projects/sample1/tests/index.ts'. ======== +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/sample1/logic/index', target file type 'TypeScript'. +File '/user/username/projects/sample1/logic/index.ts' exist - use it as a name resolution result. +======== Module name '../logic/index' was successfully resolved to '/user/username/projects/sample1/logic/index.ts'. ======== +======== Resolving module '../core/anotherModule' from '/user/username/projects/sample1/tests/index.ts'. ======== +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/anotherModule', target file type 'TypeScript'. +File '/user/username/projects/sample1/core/anotherModule.ts' exist - use it as a name resolution result. +======== Module name '../core/anotherModule' was successfully resolved to '/user/username/projects/sample1/core/anotherModule.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core/index.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic/index.ts 500 undefined WatchType: Closed Script info +======== Resolving module '../core/index' from '/user/username/projects/sample1/logic/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/sample1/logic/tsconfig.json'. +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/index', target file type 'TypeScript'. +File '/user/username/projects/sample1/core/index.ts' exist - use it as a name resolution result. +======== Module name '../core/index' was successfully resolved to '/user/username/projects/sample1/core/index.ts'. ======== +======== Resolving module '../core/anotherModule' from '/user/username/projects/sample1/logic/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/sample1/logic/tsconfig.json'. +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/anotherModule', target file type 'TypeScript'. +File '/user/username/projects/sample1/core/anotherModule.ts' exist - use it as a name resolution result. +======== Module name '../core/anotherModule' was successfully resolved to '/user/username/projects/sample1/core/anotherModule.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core/anotherModule.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/tests/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/tests/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots +Finishing updateGraphWorker: Project: /user/username/projects/sample1/tests/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/sample1/tests/tsconfig.json' (Configured) + Files (5) + /a/lib/lib.d.ts + /user/username/projects/sample1/core/index.ts + /user/username/projects/sample1/core/anotherModule.ts + /user/username/projects/sample1/logic/index.ts + /user/username/projects/sample1/tests/index.ts + + + ../../../../../a/lib/lib.d.ts + Default library + ../core/index.ts + Imported via '../core/index' from file 'index.ts' + Imported via '../core/index' from file '../logic/index.ts' + ../core/anotherModule.ts + Imported via '../core/anotherModule' from file '../logic/index.ts' + Imported via '../core/anotherModule' from file 'index.ts' + ../logic/index.ts + Imported via '../logic/index' from file 'index.ts' + index.ts + Part of 'files' list in tsconfig.json + +----------------------------------------------- +Search path: /user/username/projects/sample1/tests +For info: /user/username/projects/sample1/tests/tsconfig.json :: No config files found. +Project '/user/username/projects/sample1/tests/tsconfig.json' (Configured) + Files (5) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/sample1/tests/index.ts ProjectRootPath: undefined + Projects: /user/username/projects/sample1/tests/tsconfig.json +response:{"responseRequired":false} + +Project: /user/username/projects/sample1/tests/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/sample1/core/index.ts","version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n"} +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + + +{"fileName":"/user/username/projects/sample1/core/anotherModule.ts","version":"-2676574883-export const World = \"hello\";\r\n"} +export const World = "hello"; + + +{"fileName":"/user/username/projects/sample1/logic/index.ts","version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"} +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +{"fileName":"/user/username/projects/sample1/tests/index.ts","version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"} +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; + + diff --git a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-project-where-dts-file-contains-fewer-modules-than-original-file.js b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-project-where-dts-file-contains-fewer-modules-than-original-file.js new file mode 100644 index 0000000000000..d8d08e8d5140f --- /dev/null +++ b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-project-where-dts-file-contains-fewer-modules-than-original-file.js @@ -0,0 +1,184 @@ +Provided types map file "/a/lib/typesMap.json" doesn't exist +request:{"seq":0,"type":"request","command":"open","arguments":{"file":"/user/username/projects/myproject/tests/index.ts"}} +Search path: /user/username/projects/myproject/tests +For info: /user/username/projects/myproject/tests/index.ts :: Config file name: /user/username/projects/myproject/tests/tsconfig.json +Creating configuration project /user/username/projects/myproject/tests/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tests/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Config file +Config: /user/username/projects/myproject/tests/tsconfig.json : { + "rootNames": [ + "/user/username/projects/myproject/tests/index.ts" + ], + "options": { + "composite": true, + "persistResolutions": false, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tests/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/user/username/projects/myproject/logic", + "originalPath": "../logic" + } + ] +} +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tests 1 undefined Config: /user/username/projects/myproject/tests/tsconfig.json WatchType: Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tests 1 undefined Config: /user/username/projects/myproject/tests/tsconfig.json WatchType: Wild card directory +Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded +Starting updateGraphWorker: Project: /user/username/projects/myproject/tests/tsconfig.json +Config: /user/username/projects/myproject/logic/tsconfig.json : { + "rootNames": [ + "/user/username/projects/myproject/logic/index.ts" + ], + "options": { + "composite": true, + "persistResolutions": false, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/logic/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/user/username/projects/myproject/core", + "originalPath": "../core" + } + ] +} +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Config file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic 1 undefined Config: /user/username/projects/myproject/logic/tsconfig.json WatchType: Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic 1 undefined Config: /user/username/projects/myproject/logic/tsconfig.json WatchType: Wild card directory +Config: /user/username/projects/myproject/core/tsconfig.json : { + "rootNames": [ + "/user/username/projects/myproject/core/anotherClass.ts", + "/user/username/projects/myproject/core/index.ts", + "/user/username/projects/myproject/core/myClass.ts" + ], + "options": { + "composite": true, + "persistResolutions": false, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/core/tsconfig.json" + } +} +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Config file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Config: /user/username/projects/myproject/core/tsconfig.json WatchType: Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Config: /user/username/projects/myproject/core/tsconfig.json WatchType: Wild card directory +======== Resolving module '../logic' from '/user/username/projects/myproject/tests/index.ts'. ======== +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/logic', target file type 'TypeScript'. +File '/user/username/projects/myproject/logic.ts' does not exist. +File '/user/username/projects/myproject/logic.tsx' does not exist. +File '/user/username/projects/myproject/logic.d.ts' does not exist. +File '/user/username/projects/myproject/logic/package.json' does not exist. +File '/user/username/projects/myproject/logic/index.ts' exist - use it as a name resolution result. +======== Module name '../logic' was successfully resolved to '/user/username/projects/myproject/logic/index.ts'. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic/index.ts 500 undefined WatchType: Closed Script info +======== Resolving module '../core/myClass' from '/user/username/projects/myproject/logic/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/myproject/logic/tsconfig.json'. +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/core/myClass', target file type 'TypeScript'. +File '/user/username/projects/myproject/core/myClass.ts' exist - use it as a name resolution result. +======== Module name '../core/myClass' was successfully resolved to '/user/username/projects/myproject/core/myClass.ts'. ======== +======== Resolving module '../core' from '/user/username/projects/myproject/logic/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/myproject/logic/tsconfig.json'. +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/core', target file type 'TypeScript'. +File '/user/username/projects/myproject/core.ts' does not exist. +File '/user/username/projects/myproject/core.tsx' does not exist. +File '/user/username/projects/myproject/core.d.ts' does not exist. +File '/user/username/projects/myproject/core/package.json' does not exist. +File '/user/username/projects/myproject/core/index.ts' exist - use it as a name resolution result. +======== Module name '../core' was successfully resolved to '/user/username/projects/myproject/core/index.ts'. ======== +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations +======== Resolving module '../core/anotherClass' from '/user/username/projects/myproject/logic/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/myproject/logic/tsconfig.json'. +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/core/anotherClass', target file type 'TypeScript'. +File '/user/username/projects/myproject/core/anotherClass.ts' exist - use it as a name resolution result. +======== Module name '../core/anotherClass' was successfully resolved to '/user/username/projects/myproject/core/anotherClass.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/myClass.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/index.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/anotherClass.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tests/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tests/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Type roots +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tests/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/myproject/tests/tsconfig.json' (Configured) + Files (6) + /a/lib/lib.d.ts + /user/username/projects/myproject/core/myClass.ts + /user/username/projects/myproject/core/index.ts + /user/username/projects/myproject/core/anotherClass.ts + /user/username/projects/myproject/logic/index.ts + /user/username/projects/myproject/tests/index.ts + + + ../../../../../a/lib/lib.d.ts + Default library + ../core/myClass.ts + Imported via "../core/myClass" from file '../logic/index.ts' + ../core/index.ts + Imported via "../core" from file '../logic/index.ts' + ../core/anotherClass.ts + Imported via "../core/anotherClass" from file '../logic/index.ts' + ../logic/index.ts + Imported via "../logic" from file 'index.ts' + index.ts + Matched by include pattern '**/*' in 'tsconfig.json' + +----------------------------------------------- +Search path: /user/username/projects/myproject/tests +For info: /user/username/projects/myproject/tests/tsconfig.json :: No config files found. +Project '/user/username/projects/myproject/tests/tsconfig.json' (Configured) + Files (6) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/myproject/tests/index.ts ProjectRootPath: undefined + Projects: /user/username/projects/myproject/tests/tsconfig.json +response:{"responseRequired":false} + +Project: /user/username/projects/myproject/tests/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/myproject/core/myClass.ts","version":"-11785903855-export class myClass { }"} +export class myClass { } + +{"fileName":"/user/username/projects/myproject/core/index.ts","version":"4120767815-export function bar() { return 10; }"} +export function bar() { return 10; } + +{"fileName":"/user/username/projects/myproject/core/anotherClass.ts","version":"-6664885476-export class anotherClass { }"} +export class anotherClass { } + +{"fileName":"/user/username/projects/myproject/logic/index.ts","version":"-8233748805-import { myClass } from \"../core/myClass\";\nimport { bar } from \"../core\";\nimport { anotherClass } from \"../core/anotherClass\";\nexport function returnMyClass() {\n bar();\n return new myClass();\n}\nexport function returnAnotherClass() {\n return new anotherClass();\n}"} +import { myClass } from "../core/myClass"; +import { bar } from "../core"; +import { anotherClass } from "../core/anotherClass"; +export function returnMyClass() { + bar(); + return new myClass(); +} +export function returnAnotherClass() { + return new anotherClass(); +} + +{"fileName":"/user/username/projects/myproject/tests/index.ts","version":"-2125404654-import { returnMyClass } from \"../logic\";\nreturnMyClass();"} +import { returnMyClass } from "../logic"; +returnMyClass(); + diff --git a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-sample-project.js b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-sample-project.js new file mode 100644 index 0000000000000..f0e6455a667ad --- /dev/null +++ b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-sample-project.js @@ -0,0 +1,189 @@ +Provided types map file "/a/lib/typesMap.json" doesn't exist +request:{"seq":0,"type":"request","command":"open","arguments":{"file":"/user/username/projects/sample1/tests/index.ts"}} +Search path: /user/username/projects/sample1/tests +For info: /user/username/projects/sample1/tests/index.ts :: Config file name: /user/username/projects/sample1/tests/tsconfig.json +Creating configuration project /user/username/projects/sample1/tests/tsconfig.json +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/tests/tsconfig.json 2000 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Config file +Config: /user/username/projects/sample1/tests/tsconfig.json : { + "rootNames": [ + "/user/username/projects/sample1/tests/index.ts" + ], + "options": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "persistResolutions": false, + "traceResolution": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/user/username/projects/sample1/core", + "originalPath": "../core" + }, + { + "path": "/user/username/projects/sample1/logic", + "originalPath": "../logic" + } + ] +} +Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded +Starting updateGraphWorker: Project: /user/username/projects/sample1/tests/tsconfig.json +Config: /user/username/projects/sample1/core/tsconfig.json : { + "rootNames": [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "persistResolutions": false, + "traceResolution": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" + } +} +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core/tsconfig.json 2000 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Config file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core 1 undefined Config: /user/username/projects/sample1/core/tsconfig.json WatchType: Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core 1 undefined Config: /user/username/projects/sample1/core/tsconfig.json WatchType: Wild card directory +Config: /user/username/projects/sample1/logic/tsconfig.json : { + "rootNames": [ + "/user/username/projects/sample1/logic/index.ts" + ], + "options": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "persistResolutions": false, + "traceResolution": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/user/username/projects/sample1/core", + "originalPath": "../core" + } + ] +} +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic/tsconfig.json 2000 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Config file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic 1 undefined Config: /user/username/projects/sample1/logic/tsconfig.json WatchType: Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic 1 undefined Config: /user/username/projects/sample1/logic/tsconfig.json WatchType: Wild card directory +======== Resolving module '../core/index' from '/user/username/projects/sample1/tests/index.ts'. ======== +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/index', target file type 'TypeScript'. +File '/user/username/projects/sample1/core/index.ts' exist - use it as a name resolution result. +======== Module name '../core/index' was successfully resolved to '/user/username/projects/sample1/core/index.ts'. ======== +======== Resolving module '../logic/index' from '/user/username/projects/sample1/tests/index.ts'. ======== +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/sample1/logic/index', target file type 'TypeScript'. +File '/user/username/projects/sample1/logic/index.ts' exist - use it as a name resolution result. +======== Module name '../logic/index' was successfully resolved to '/user/username/projects/sample1/logic/index.ts'. ======== +======== Resolving module '../core/anotherModule' from '/user/username/projects/sample1/tests/index.ts'. ======== +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/anotherModule', target file type 'TypeScript'. +File '/user/username/projects/sample1/core/anotherModule.ts' exist - use it as a name resolution result. +======== Module name '../core/anotherModule' was successfully resolved to '/user/username/projects/sample1/core/anotherModule.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core/index.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic/index.ts 500 undefined WatchType: Closed Script info +======== Resolving module '../core/index' from '/user/username/projects/sample1/logic/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/sample1/logic/tsconfig.json'. +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/index', target file type 'TypeScript'. +File '/user/username/projects/sample1/core/index.ts' exist - use it as a name resolution result. +======== Module name '../core/index' was successfully resolved to '/user/username/projects/sample1/core/index.ts'. ======== +======== Resolving module '../core/anotherModule' from '/user/username/projects/sample1/logic/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/sample1/logic/tsconfig.json'. +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/anotherModule', target file type 'TypeScript'. +File '/user/username/projects/sample1/core/anotherModule.ts' exist - use it as a name resolution result. +======== Module name '../core/anotherModule' was successfully resolved to '/user/username/projects/sample1/core/anotherModule.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core/anotherModule.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/tests/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/tests/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots +Finishing updateGraphWorker: Project: /user/username/projects/sample1/tests/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Project '/user/username/projects/sample1/tests/tsconfig.json' (Configured) + Files (5) + /a/lib/lib.d.ts + /user/username/projects/sample1/core/index.ts + /user/username/projects/sample1/core/anotherModule.ts + /user/username/projects/sample1/logic/index.ts + /user/username/projects/sample1/tests/index.ts + + + ../../../../../a/lib/lib.d.ts + Default library + ../core/index.ts + Imported via '../core/index' from file 'index.ts' + Imported via '../core/index' from file '../logic/index.ts' + ../core/anotherModule.ts + Imported via '../core/anotherModule' from file '../logic/index.ts' + Imported via '../core/anotherModule' from file 'index.ts' + ../logic/index.ts + Imported via '../logic/index' from file 'index.ts' + index.ts + Part of 'files' list in tsconfig.json + +----------------------------------------------- +Search path: /user/username/projects/sample1/tests +For info: /user/username/projects/sample1/tests/tsconfig.json :: No config files found. +Project '/user/username/projects/sample1/tests/tsconfig.json' (Configured) + Files (5) + +----------------------------------------------- +Open files: + FileName: /user/username/projects/sample1/tests/index.ts ProjectRootPath: undefined + Projects: /user/username/projects/sample1/tests/tsconfig.json +response:{"responseRequired":false} + +Project: /user/username/projects/sample1/tests/tsconfig.json +{"fileName":"/a/lib/lib.d.ts","version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"} +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + +{"fileName":"/user/username/projects/sample1/core/index.ts","version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n"} +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + + +{"fileName":"/user/username/projects/sample1/core/anotherModule.ts","version":"-2676574883-export const World = \"hello\";\r\n"} +export const World = "hello"; + + +{"fileName":"/user/username/projects/sample1/logic/index.ts","version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"} +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +{"fileName":"/user/username/projects/sample1/tests/index.ts","version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"} +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; + + From 5d658c67b6236370ed0489e614fb10865e0d1a6e Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 1 Jun 2021 14:27:16 -0700 Subject: [PATCH 47/48] Tests with actual persistResolutions --- .../unittests/tsserver/persistResolutions.ts | 8 +- ...ntains-fewer-modules-than-original-file.js | 12 +- ...info-is-not-present-with-sample-project.js | 6 +- ...ntains-fewer-modules-than-original-file.js | 12 +- ...am-is-not-persisted-with-sample-project.js | 6 +- ...ntains-fewer-modules-than-original-file.js | 104 ++++++------------ ...olution-for-program-with-sample-project.js | 86 +++++---------- 7 files changed, 76 insertions(+), 158 deletions(-) diff --git a/src/testRunner/unittests/tsserver/persistResolutions.ts b/src/testRunner/unittests/tsserver/persistResolutions.ts index 16aa27c5d3aad..d8e6cde748a55 100644 --- a/src/testRunner/unittests/tsserver/persistResolutions.ts +++ b/src/testRunner/unittests/tsserver/persistResolutions.ts @@ -40,7 +40,7 @@ namespace ts.projectSystem { const content = JSON.parse(file.content); content.compilerOptions = { ...content.compilerOptions || {}, - persistResolutions: false, + persistResolutions: true, traceResolution: true, }; file.content = JSON.stringify(content, /*replacer*/ undefined, 4); @@ -317,7 +317,7 @@ namespace ts.projectSystem { function setupHost() { const coreConfig: File = { path: `${tscWatch.projectRoot}/core/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { composite: true, persistResolutions: false, traceResolution: true } }) + content: JSON.stringify({ compilerOptions: { composite: true, persistResolutions: true, traceResolution: true } }) }; const coreIndex: File = { path: `${tscWatch.projectRoot}/core/index.ts`, @@ -334,7 +334,7 @@ namespace ts.projectSystem { const logicConfig: File = { path: `${tscWatch.projectRoot}/logic/tsconfig.json`, content: JSON.stringify({ - compilerOptions: { composite: true, persistResolutions: false, traceResolution: true }, + compilerOptions: { composite: true, persistResolutions: true, traceResolution: true }, references: [{ path: "../core" }] }) }; @@ -354,7 +354,7 @@ export function returnAnotherClass() { const testsConfig: File = { path: `${tscWatch.projectRoot}/tests/tsconfig.json`, content: JSON.stringify({ - compilerOptions: { composite: true, persistResolutions: false, traceResolution: true }, + compilerOptions: { composite: true, persistResolutions: true, traceResolution: true }, references: [{ path: "../logic" }] }) }; diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present-with-project-where-dts-file-contains-fewer-modules-than-original-file.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present-with-project-where-dts-file-contains-fewer-modules-than-original-file.js index d8d08e8d5140f..9cceafc08d1be 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present-with-project-where-dts-file-contains-fewer-modules-than-original-file.js +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present-with-project-where-dts-file-contains-fewer-modules-than-original-file.js @@ -10,7 +10,7 @@ Config: /user/username/projects/myproject/tests/tsconfig.json : { ], "options": { "composite": true, - "persistResolutions": false, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/myproject/tests/tsconfig.json" }, @@ -31,7 +31,7 @@ Config: /user/username/projects/myproject/logic/tsconfig.json : { ], "options": { "composite": true, - "persistResolutions": false, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/myproject/logic/tsconfig.json" }, @@ -53,7 +53,7 @@ Config: /user/username/projects/myproject/core/tsconfig.json : { ], "options": { "composite": true, - "persistResolutions": false, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/myproject/core/tsconfig.json" } @@ -70,10 +70,6 @@ File '/user/username/projects/myproject/logic.d.ts' does not exist. File '/user/username/projects/myproject/logic/package.json' does not exist. File '/user/username/projects/myproject/logic/index.ts' exist - use it as a name resolution result. ======== Module name '../logic' was successfully resolved to '/user/username/projects/myproject/logic/index.ts'. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic/index.ts 500 undefined WatchType: Closed Script info ======== Resolving module '../core/myClass' from '/user/username/projects/myproject/logic/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/myproject/logic/tsconfig.json'. @@ -91,8 +87,6 @@ File '/user/username/projects/myproject/core.d.ts' does not exist. File '/user/username/projects/myproject/core/package.json' does not exist. File '/user/username/projects/myproject/core/index.ts' exist - use it as a name resolution result. ======== Module name '../core' was successfully resolved to '/user/username/projects/myproject/core/index.ts'. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations ======== Resolving module '../core/anotherClass' from '/user/username/projects/myproject/logic/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/myproject/logic/tsconfig.json'. Module resolution kind is not specified, using 'NodeJs'. diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present-with-sample-project.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present-with-sample-project.js index f0e6455a667ad..f8675fa74f58e 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present-with-sample-project.js +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present-with-sample-project.js @@ -13,7 +13,7 @@ Config: /user/username/projects/sample1/tests/tsconfig.json : { "declaration": true, "forceConsistentCasingInFileNames": true, "skipDefaultLibCheck": true, - "persistResolutions": false, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" }, @@ -41,7 +41,7 @@ Config: /user/username/projects/sample1/core/tsconfig.json : { "declaration": true, "declarationMap": true, "skipDefaultLibCheck": true, - "persistResolutions": false, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" } @@ -59,7 +59,7 @@ Config: /user/username/projects/sample1/logic/tsconfig.json : { "sourceMap": true, "forceConsistentCasingInFileNames": true, "skipDefaultLibCheck": true, - "persistResolutions": false, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" }, diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted-with-project-where-dts-file-contains-fewer-modules-than-original-file.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted-with-project-where-dts-file-contains-fewer-modules-than-original-file.js index d8d08e8d5140f..9cceafc08d1be 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted-with-project-where-dts-file-contains-fewer-modules-than-original-file.js +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted-with-project-where-dts-file-contains-fewer-modules-than-original-file.js @@ -10,7 +10,7 @@ Config: /user/username/projects/myproject/tests/tsconfig.json : { ], "options": { "composite": true, - "persistResolutions": false, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/myproject/tests/tsconfig.json" }, @@ -31,7 +31,7 @@ Config: /user/username/projects/myproject/logic/tsconfig.json : { ], "options": { "composite": true, - "persistResolutions": false, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/myproject/logic/tsconfig.json" }, @@ -53,7 +53,7 @@ Config: /user/username/projects/myproject/core/tsconfig.json : { ], "options": { "composite": true, - "persistResolutions": false, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/myproject/core/tsconfig.json" } @@ -70,10 +70,6 @@ File '/user/username/projects/myproject/logic.d.ts' does not exist. File '/user/username/projects/myproject/logic/package.json' does not exist. File '/user/username/projects/myproject/logic/index.ts' exist - use it as a name resolution result. ======== Module name '../logic' was successfully resolved to '/user/username/projects/myproject/logic/index.ts'. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic/index.ts 500 undefined WatchType: Closed Script info ======== Resolving module '../core/myClass' from '/user/username/projects/myproject/logic/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/myproject/logic/tsconfig.json'. @@ -91,8 +87,6 @@ File '/user/username/projects/myproject/core.d.ts' does not exist. File '/user/username/projects/myproject/core/package.json' does not exist. File '/user/username/projects/myproject/core/index.ts' exist - use it as a name resolution result. ======== Module name '../core' was successfully resolved to '/user/username/projects/myproject/core/index.ts'. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations ======== Resolving module '../core/anotherClass' from '/user/username/projects/myproject/logic/index.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/myproject/logic/tsconfig.json'. Module resolution kind is not specified, using 'NodeJs'. diff --git a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted-with-sample-project.js b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted-with-sample-project.js index f0e6455a667ad..f8675fa74f58e 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted-with-sample-project.js +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-present-but-program-is-not-persisted-with-sample-project.js @@ -13,7 +13,7 @@ Config: /user/username/projects/sample1/tests/tsconfig.json : { "declaration": true, "forceConsistentCasingInFileNames": true, "skipDefaultLibCheck": true, - "persistResolutions": false, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" }, @@ -41,7 +41,7 @@ Config: /user/username/projects/sample1/core/tsconfig.json : { "declaration": true, "declarationMap": true, "skipDefaultLibCheck": true, - "persistResolutions": false, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" } @@ -59,7 +59,7 @@ Config: /user/username/projects/sample1/logic/tsconfig.json : { "sourceMap": true, "forceConsistentCasingInFileNames": true, "skipDefaultLibCheck": true, - "persistResolutions": false, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" }, diff --git a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-project-where-dts-file-contains-fewer-modules-than-original-file.js b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-project-where-dts-file-contains-fewer-modules-than-original-file.js index d8d08e8d5140f..5fcf32a15216c 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-project-where-dts-file-contains-fewer-modules-than-original-file.js +++ b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-project-where-dts-file-contains-fewer-modules-than-original-file.js @@ -10,7 +10,7 @@ Config: /user/username/projects/myproject/tests/tsconfig.json : { ], "options": { "composite": true, - "persistResolutions": false, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/myproject/tests/tsconfig.json" }, @@ -31,7 +31,7 @@ Config: /user/username/projects/myproject/logic/tsconfig.json : { ], "options": { "composite": true, - "persistResolutions": false, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/myproject/logic/tsconfig.json" }, @@ -53,7 +53,7 @@ Config: /user/username/projects/myproject/core/tsconfig.json : { ], "options": { "composite": true, - "persistResolutions": false, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/myproject/core/tsconfig.json" } @@ -61,73 +61,35 @@ Config: /user/username/projects/myproject/core/tsconfig.json : { FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Config file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Config: /user/username/projects/myproject/core/tsconfig.json WatchType: Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Config: /user/username/projects/myproject/core/tsconfig.json WatchType: Wild card directory -======== Resolving module '../logic' from '/user/username/projects/myproject/tests/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. -Loading module as file / folder, candidate module location '/user/username/projects/myproject/logic', target file type 'TypeScript'. -File '/user/username/projects/myproject/logic.ts' does not exist. -File '/user/username/projects/myproject/logic.tsx' does not exist. -File '/user/username/projects/myproject/logic.d.ts' does not exist. -File '/user/username/projects/myproject/logic/package.json' does not exist. -File '/user/username/projects/myproject/logic/index.ts' exist - use it as a name resolution result. -======== Module name '../logic' was successfully resolved to '/user/username/projects/myproject/logic/index.ts'. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 0 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic/index.ts 500 undefined WatchType: Closed Script info -======== Resolving module '../core/myClass' from '/user/username/projects/myproject/logic/index.ts'. ======== -Using compiler options of project reference redirect '/user/username/projects/myproject/logic/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. -Loading module as file / folder, candidate module location '/user/username/projects/myproject/core/myClass', target file type 'TypeScript'. -File '/user/username/projects/myproject/core/myClass.ts' exist - use it as a name resolution result. -======== Module name '../core/myClass' was successfully resolved to '/user/username/projects/myproject/core/myClass.ts'. ======== -======== Resolving module '../core' from '/user/username/projects/myproject/logic/index.ts'. ======== -Using compiler options of project reference redirect '/user/username/projects/myproject/logic/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. -Loading module as file / folder, candidate module location '/user/username/projects/myproject/core', target file type 'TypeScript'. -File '/user/username/projects/myproject/core.ts' does not exist. -File '/user/username/projects/myproject/core.tsx' does not exist. -File '/user/username/projects/myproject/core.d.ts' does not exist. -File '/user/username/projects/myproject/core/package.json' does not exist. -File '/user/username/projects/myproject/core/index.ts' exist - use it as a name resolution result. -======== Module name '../core' was successfully resolved to '/user/username/projects/myproject/core/index.ts'. ======== -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Failed Lookup Locations -======== Resolving module '../core/anotherClass' from '/user/username/projects/myproject/logic/index.ts'. ======== -Using compiler options of project reference redirect '/user/username/projects/myproject/logic/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. -Loading module as file / folder, candidate module location '/user/username/projects/myproject/core/anotherClass', target file type 'TypeScript'. -File '/user/username/projects/myproject/core/anotherClass.ts' exist - use it as a name resolution result. -======== Module name '../core/anotherClass' was successfully resolved to '/user/username/projects/myproject/core/anotherClass.ts'. ======== -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/myClass.ts 500 undefined WatchType: Closed Script info -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/index.ts 500 undefined WatchType: Closed Script info -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/anotherClass.ts 500 undefined WatchType: Closed Script info FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/myClass.d.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/anotherClass.d.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic/index.d.ts 500 undefined WatchType: Closed Script info DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tests/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tests/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Type roots -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tests/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tests/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Completely Elapsed:: *ms Project '/user/username/projects/myproject/tests/tsconfig.json' (Configured) - Files (6) + Files (5) /a/lib/lib.d.ts - /user/username/projects/myproject/core/myClass.ts - /user/username/projects/myproject/core/index.ts - /user/username/projects/myproject/core/anotherClass.ts - /user/username/projects/myproject/logic/index.ts + /user/username/projects/myproject/core/myClass.d.ts + /user/username/projects/myproject/core/anotherClass.d.ts + /user/username/projects/myproject/logic/index.d.ts /user/username/projects/myproject/tests/index.ts ../../../../../a/lib/lib.d.ts Default library - ../core/myClass.ts - Imported via "../core/myClass" from file '../logic/index.ts' - ../core/index.ts - Imported via "../core" from file '../logic/index.ts' - ../core/anotherClass.ts - Imported via "../core/anotherClass" from file '../logic/index.ts' - ../logic/index.ts + ../core/myClass.d.ts + Imported via "../core/myClass" from file '../logic/index.d.ts' + File is output of project reference source '../core/myClass.ts' + ../core/anotherClass.d.ts + Imported via "../core/anotherClass" from file '../logic/index.d.ts' + File is output of project reference source '../core/anotherClass.ts' + ../logic/index.d.ts Imported via "../logic" from file 'index.ts' + File is output of project reference source '../logic/index.ts' index.ts Matched by include pattern '**/*' in 'tsconfig.json' @@ -135,7 +97,7 @@ Project '/user/username/projects/myproject/tests/tsconfig.json' (Configured) Search path: /user/username/projects/myproject/tests For info: /user/username/projects/myproject/tests/tsconfig.json :: No config files found. Project '/user/username/projects/myproject/tests/tsconfig.json' (Configured) - Files (6) + Files (5) ----------------------------------------------- Open files: @@ -157,26 +119,22 @@ interface RegExp {} interface String { charAt: any; } interface Array { length: number; [n: number]: T; } -{"fileName":"/user/username/projects/myproject/core/myClass.ts","version":"-11785903855-export class myClass { }"} -export class myClass { } +{"fileName":"/user/username/projects/myproject/core/myClass.d.ts","version":"-7432826827-export declare class myClass {\n}\n"} +export declare class myClass { +} + -{"fileName":"/user/username/projects/myproject/core/index.ts","version":"4120767815-export function bar() { return 10; }"} -export function bar() { return 10; } +{"fileName":"/user/username/projects/myproject/core/anotherClass.d.ts","version":"-6928009824-export declare class anotherClass {\n}\n"} +export declare class anotherClass { +} -{"fileName":"/user/username/projects/myproject/core/anotherClass.ts","version":"-6664885476-export class anotherClass { }"} -export class anotherClass { } -{"fileName":"/user/username/projects/myproject/logic/index.ts","version":"-8233748805-import { myClass } from \"../core/myClass\";\nimport { bar } from \"../core\";\nimport { anotherClass } from \"../core/anotherClass\";\nexport function returnMyClass() {\n bar();\n return new myClass();\n}\nexport function returnAnotherClass() {\n return new anotherClass();\n}"} +{"fileName":"/user/username/projects/myproject/logic/index.d.ts","version":"-26318514585-import { myClass } from \"../core/myClass\";\nimport { anotherClass } from \"../core/anotherClass\";\nexport declare function returnMyClass(): myClass;\nexport declare function returnAnotherClass(): anotherClass;\n"} import { myClass } from "../core/myClass"; -import { bar } from "../core"; import { anotherClass } from "../core/anotherClass"; -export function returnMyClass() { - bar(); - return new myClass(); -} -export function returnAnotherClass() { - return new anotherClass(); -} +export declare function returnMyClass(): myClass; +export declare function returnAnotherClass(): anotherClass; + {"fileName":"/user/username/projects/myproject/tests/index.ts","version":"-2125404654-import { returnMyClass } from \"../logic\";\nreturnMyClass();"} import { returnMyClass } from "../logic"; diff --git a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-sample-project.js b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-sample-project.js index f0e6455a667ad..e02935abdd4ef 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-sample-project.js +++ b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-sample-project.js @@ -13,7 +13,7 @@ Config: /user/username/projects/sample1/tests/tsconfig.json : { "declaration": true, "forceConsistentCasingInFileNames": true, "skipDefaultLibCheck": true, - "persistResolutions": false, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" }, @@ -41,7 +41,7 @@ Config: /user/username/projects/sample1/core/tsconfig.json : { "declaration": true, "declarationMap": true, "skipDefaultLibCheck": true, - "persistResolutions": false, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" } @@ -59,7 +59,7 @@ Config: /user/username/projects/sample1/logic/tsconfig.json : { "sourceMap": true, "forceConsistentCasingInFileNames": true, "skipDefaultLibCheck": true, - "persistResolutions": false, + "persistResolutions": true, "traceResolution": true, "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" }, @@ -73,61 +73,36 @@ Config: /user/username/projects/sample1/logic/tsconfig.json : { FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic/tsconfig.json 2000 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Config file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic 1 undefined Config: /user/username/projects/sample1/logic/tsconfig.json WatchType: Wild card directory Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic 1 undefined Config: /user/username/projects/sample1/logic/tsconfig.json WatchType: Wild card directory -======== Resolving module '../core/index' from '/user/username/projects/sample1/tests/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. -Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/index', target file type 'TypeScript'. -File '/user/username/projects/sample1/core/index.ts' exist - use it as a name resolution result. -======== Module name '../core/index' was successfully resolved to '/user/username/projects/sample1/core/index.ts'. ======== -======== Resolving module '../logic/index' from '/user/username/projects/sample1/tests/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. -Loading module as file / folder, candidate module location '/user/username/projects/sample1/logic/index', target file type 'TypeScript'. -File '/user/username/projects/sample1/logic/index.ts' exist - use it as a name resolution result. -======== Module name '../logic/index' was successfully resolved to '/user/username/projects/sample1/logic/index.ts'. ======== -======== Resolving module '../core/anotherModule' from '/user/username/projects/sample1/tests/index.ts'. ======== -Module resolution kind is not specified, using 'NodeJs'. -Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/anotherModule', target file type 'TypeScript'. -File '/user/username/projects/sample1/core/anotherModule.ts' exist - use it as a name resolution result. -======== Module name '../core/anotherModule' was successfully resolved to '/user/username/projects/sample1/core/anotherModule.ts'. ======== -FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core/index.ts 500 undefined WatchType: Closed Script info -FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic/index.ts 500 undefined WatchType: Closed Script info -======== Resolving module '../core/index' from '/user/username/projects/sample1/logic/index.ts'. ======== -Using compiler options of project reference redirect '/user/username/projects/sample1/logic/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. -Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/index', target file type 'TypeScript'. -File '/user/username/projects/sample1/core/index.ts' exist - use it as a name resolution result. -======== Module name '../core/index' was successfully resolved to '/user/username/projects/sample1/core/index.ts'. ======== -======== Resolving module '../core/anotherModule' from '/user/username/projects/sample1/logic/index.ts'. ======== -Using compiler options of project reference redirect '/user/username/projects/sample1/logic/tsconfig.json'. -Module resolution kind is not specified, using 'NodeJs'. -Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/anotherModule', target file type 'TypeScript'. -File '/user/username/projects/sample1/core/anotherModule.ts' exist - use it as a name resolution result. -======== Module name '../core/anotherModule' was successfully resolved to '/user/username/projects/sample1/core/anotherModule.ts'. ======== -FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core/anotherModule.ts 500 undefined WatchType: Closed Script info FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core/index.d.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core/anotherModule.d.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic/index.d.ts 500 undefined WatchType: Closed Script info DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/tests/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/tests/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots -Finishing updateGraphWorker: Project: /user/username/projects/sample1/tests/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Finishing updateGraphWorker: Project: /user/username/projects/sample1/tests/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Completely Elapsed:: *ms Project '/user/username/projects/sample1/tests/tsconfig.json' (Configured) Files (5) /a/lib/lib.d.ts - /user/username/projects/sample1/core/index.ts - /user/username/projects/sample1/core/anotherModule.ts - /user/username/projects/sample1/logic/index.ts + /user/username/projects/sample1/core/index.d.ts + /user/username/projects/sample1/core/anotherModule.d.ts + /user/username/projects/sample1/logic/index.d.ts /user/username/projects/sample1/tests/index.ts ../../../../../a/lib/lib.d.ts Default library - ../core/index.ts + ../core/index.d.ts Imported via '../core/index' from file 'index.ts' - Imported via '../core/index' from file '../logic/index.ts' - ../core/anotherModule.ts - Imported via '../core/anotherModule' from file '../logic/index.ts' + File is output of project reference source '../core/index.ts' + ../core/anotherModule.d.ts + Imported via '../core/anotherModule' from file '../logic/index.d.ts' Imported via '../core/anotherModule' from file 'index.ts' - ../logic/index.ts + File is output of project reference source '../core/anotherModule.ts' + ../logic/index.d.ts Imported via '../logic/index' from file 'index.ts' + File is output of project reference source '../logic/index.ts' index.ts Part of 'files' list in tsconfig.json @@ -157,23 +132,20 @@ interface RegExp {} interface String { charAt: any; } interface Array { length: number; [n: number]: T; } -{"fileName":"/user/username/projects/sample1/core/index.ts","version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n"} -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +{"fileName":"/user/username/projects/sample1/core/index.d.ts","version":"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map"} +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map +{"fileName":"/user/username/projects/sample1/core/anotherModule.d.ts","version":"-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map"} +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map -{"fileName":"/user/username/projects/sample1/core/anotherModule.ts","version":"-2676574883-export const World = \"hello\";\r\n"} -export const World = "hello"; - - -{"fileName":"/user/username/projects/sample1/logic/index.ts","version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"} -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +{"fileName":"/user/username/projects/sample1/logic/index.d.ts","version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"} +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; {"fileName":"/user/username/projects/sample1/tests/index.ts","version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"} From f0db440c15836433ecdf5583adebe0dcc91fffa9 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 1 Jun 2021 18:46:32 -0700 Subject: [PATCH 48/48] Handle the difference is useSourceOfProjectReferenceRedirect and project reference files in the program so editor can use correct program --- src/compiler/builder.ts | 16 ++++ src/compiler/program.ts | 14 ++++ src/compiler/types.ts | 4 + ...ntains-fewer-modules-than-original-file.js | 73 ++++++++++++------- ...olution-for-program-with-sample-project.js | 62 +++++++++------- 5 files changed, 117 insertions(+), 52 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index 16927b47ea30e..63dc8fcf9925e 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -83,6 +83,7 @@ namespace ts { filesByName: ESMap; fileIncludeReasons: MultiMap; sourceFileFromExternalLibraryPath: Set | undefined; + sourceFileFromProjectReferencePath: Set | undefined; redirectTargetsMap: MultiMap; sourceFileToPackageName: ESMap; projectReferences: readonly ProjectReference[] | undefined; @@ -90,6 +91,7 @@ namespace ts { automaticTypeDirectiveNames: string[] | undefined; resolvedTypeReferenceDirectives: ESMap; fileProcessingDiagnostics: FilePreprocessingDiagnostic[] | undefined; + useSourceOfProjectReferenceRedirect: boolean; } export const enum BuilderFileEmit { @@ -340,6 +342,7 @@ namespace ts { if (!state.program || !state.compilerOptions.persistResolutions || state.persistedProgramState) return; const filesByName = mapEntries(state.program.getFilesByNameMap(), (key, value) => [key, value ? value.path : value as SourceFileOfProgramFromBuildInfo | Path | typeof missingSourceOfProjectReferenceRedirect | typeof missingFile]); let sourceFileFromExternalLibraryPath: Set | undefined; + let sourceFileFromProjectReferencePath: Set | undefined; const files = mapToReadonlyArray(state.program.getSourceFiles(), toSourceFileOfProgramFromBuildInfo); state.persistedProgramState = { files, @@ -347,6 +350,7 @@ namespace ts { filesByName, fileIncludeReasons: state.program.getFileIncludeReasons(), sourceFileFromExternalLibraryPath, + sourceFileFromProjectReferencePath, redirectTargetsMap: state.program.redirectTargetsMap, sourceFileToPackageName: state.program.sourceFileToPackageName, projectReferences: state.program.getProjectReferences(), @@ -354,10 +358,12 @@ namespace ts { resolvedTypeReferenceDirectives: state.program.getResolvedTypeReferenceDirectives(), automaticTypeDirectiveNames: state.program.getAutomaticTypeDirectiveNames(), fileProcessingDiagnostics: state.program.getFileProcessingDiagnostics(), + useSourceOfProjectReferenceRedirect: state.program.useSourceOfProjectReferenceRedirect, }; function toSourceFileOfProgramFromBuildInfo(sourceFile: SourceFile): SourceFileOfProgramFromBuildInfo { if (state.program!.isSourceFileFromExternalLibraryPath(sourceFile.path)) (sourceFileFromExternalLibraryPath ||= new Set()).add(sourceFile.path); + if (sourceFile.resolvedPath !== sourceFile.path && state.program!.isSourceFileFromExternalLibraryPath(sourceFile.path)) (sourceFileFromExternalLibraryPath ||= new Set()).add(sourceFile.path); const file: SourceFileOfProgramFromBuildInfo = { fileName: sourceFile.fileName, originalFileName: sourceFile.originalFileName, @@ -878,6 +884,7 @@ namespace ts { includeReasons: readonly PersistedProgramFileIncludeReason[]; isSourceFileFromExternalLibraryPath?: true; + isSourceFileFromProjectReference?: true; redirectTargets?: readonly ProgramBuildInfoAbsoluteFileId[]; packageName?: string; } @@ -924,6 +931,7 @@ namespace ts { resolvedTypeReferenceDirectives: readonly PersistedProgramResolutionEntry[] | undefined; fileProcessingDiagnostics: readonly PersistedProgramFilePreprocessingDiagnostic[] | undefined; resolutions: readonly PersistedProgramResolution[] | undefined; + useSourceOfProjectReferenceRedirect: true | undefined; } export interface ProgramBuildInfo { fileNames: readonly string[]; @@ -1036,6 +1044,7 @@ namespace ts { automaticTypeDirectiveNames: program.getAutomaticTypeDirectiveNames()?.length ? program.getAutomaticTypeDirectiveNames() : undefined, fileProcessingDiagnostics: mapToReadonlyArrayOrUndefined(program.getFileProcessingDiagnostics(), toPersistedProgramFilePreprocessingDiagnostic), resolutions: mapToReadonlyArrayOrUndefined(resolutions, toPersistedProgramResolution), + useSourceOfProjectReferenceRedirect: program.useSourceOfProjectReferenceRedirect ? true : undefined }; } return { @@ -1109,6 +1118,7 @@ namespace ts { redirectTargets: mapToReadonlyArrayOrUndefined(program.redirectTargetsMap.get(sourceFile.path), toAbsoluteFileId), includeReasons: program.getFileIncludeReasons().get(sourceFile.path)!.map(toPersistedProgramFileIncludeReason), isSourceFileFromExternalLibraryPath: program.isSourceFileFromExternalLibraryPath(sourceFile.path) ? true : undefined, + isSourceFileFromProjectReference: sourceFile.path !== sourceFile.resolvedPath && program.isSourceFileFromProjectReference(sourceFile) ? true : undefined, packageName: program.sourceFileToPackageName.get(sourceFile.path), }; } @@ -1726,6 +1736,7 @@ namespace ts { const filesByName = new Map(); const fileIncludeReasons = createMultiMap(); let sourceFileFromExternalLibraryPath: Set | undefined; + let sourceFileFromProjectReferencePath: Set | undefined; const redirectTargetsMap = createMultiMap(); const sourceFileToPackageName = new Map(); program.peristedProgram.filesByName?.forEach(entry => { @@ -1745,6 +1756,7 @@ namespace ts { filesByName, fileIncludeReasons, sourceFileFromExternalLibraryPath, + sourceFileFromProjectReferencePath, redirectTargetsMap, sourceFileToPackageName, projectReferences: program.peristedProgram.projectReferences?.map(toProjectReference), @@ -1752,6 +1764,7 @@ namespace ts { automaticTypeDirectiveNames: program.peristedProgram.automaticTypeDirectiveNames, resolvedTypeReferenceDirectives: toResolutionMap(program.peristedProgram.resolvedTypeReferenceDirectives) || new Map(), fileProcessingDiagnostics: map(program.peristedProgram.fileProcessingDiagnostics, toFileProcessingDiagnostic), + useSourceOfProjectReferenceRedirect: !!program.peristedProgram.useSourceOfProjectReferenceRedirect, }; return { program: createProgramFromPersistedProgramState(persistedProgramState, compilerOptions), @@ -1764,6 +1777,7 @@ namespace ts { fileIncludeReasons.set(path, file.includeReasons.map(toFileIncludeReason)); if (file.isSourceFileFromExternalLibraryPath) (sourceFileFromExternalLibraryPath ||= new Set()).add(path); + if (file.isSourceFileFromProjectReference) (sourceFileFromProjectReferencePath ||= new Set()).add(path); if (file.redirectTargets) redirectTargetsMap.set(path, file.redirectTargets.map(toFileAbsolutePath)); if (file.packageName) sourceFileToPackageName.set(path, file.packageName); @@ -1874,9 +1888,11 @@ namespace ts { getResolvedTypeReferenceDirectives: () => persistedProgramState.resolvedTypeReferenceDirectives, getFilesByNameMap: () => persistedProgramState.filesByName, isSourceFileFromExternalLibraryPath: path => !!persistedProgramState.sourceFileFromExternalLibraryPath?.has(path), + isSourceFileFromProjectReference: file => !!persistedProgramState.sourceFileFromProjectReferencePath?.has(file.path), getFileProcessingDiagnostics: () => persistedProgramState.fileProcessingDiagnostics, redirectTargetsMap: persistedProgramState.redirectTargetsMap, sourceFileToPackageName: persistedProgramState.sourceFileToPackageName, + useSourceOfProjectReferenceRedirect: persistedProgramState.useSourceOfProjectReferenceRedirect }; } diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 52a4e99abaf9e..f2186a251ddf4 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1162,6 +1162,8 @@ namespace ts { realpath: host.realpath?.bind(host), useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(), getFileIncludeReasons: () => fileReasons, + isSourceFileFromProjectReference, + useSourceOfProjectReferenceRedirect, structureIsReused, }; @@ -1564,6 +1566,11 @@ namespace ts { newSourceFile.resolvedPath = oldSourceFile.resolvedPath; newSourceFile.fileName = oldSourceFile.fileName; + if (oldProgram.useSourceOfProjectReferenceRedirect !== useSourceOfProjectReferenceRedirect && + (newSourceFile.path !== newSourceFile.resolvedPath || oldProgram.isSourceFileFromProjectReference(oldSourceFile as SourceFile & SourceFileOfProgramFromBuildInfo))) { + return StructureIsReused.Not; + } + const packageName = oldProgram.sourceFileToPackageName.get(oldSourceFile.path); if (packageName !== undefined) { // If there are 2 different source files for the same package name and at least one of them changes, @@ -2844,6 +2851,13 @@ namespace ts { return referencedProjectPath && getResolvedProjectReferenceByPath(referencedProjectPath); } + function isSourceFileFromProjectReference(file: SourceFile) { + return file.resolvedPath !== file.path || + useSourceOfProjectReferenceRedirect ? + !!getProjectReferenceRedirectProject(file.fileName) : // Is this source of project reference + !!getSourceOfProjectReferenceRedirect(file.fileName); // Is this output of project reference + } + function forEachResolvedProjectReference( cb: (resolvedProjectReference: ResolvedProjectReference) => T | undefined ): T | undefined { diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 7b4243507787f..423861f389275 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -3956,6 +3956,8 @@ namespace ts { /** Is the file emitted file */ /* @internal */ isEmittedFile(file: string): boolean; /* @internal */ getFileIncludeReasons(): MultiMap; + /* @internal */ useSourceOfProjectReferenceRedirect: boolean; + /* @internal */ isSourceFileFromProjectReference(file: SourceFile): boolean; /* @internal */ useCaseSensitiveFileNames(): boolean; getProjectReferences(): readonly ProjectReference[] | undefined; @@ -4045,7 +4047,9 @@ namespace ts { getFilesByNameMap(): ReadonlyESMap; isSourceFileFromExternalLibraryPath(path: Path): boolean; getFileProcessingDiagnostics(): FilePreprocessingDiagnostic[] | undefined; + isSourceFileFromProjectReference(file: SourceFileOfProgramFromBuildInfo): boolean; + useSourceOfProjectReferenceRedirect: boolean; redirectTargetsMap: MultiMap; sourceFileToPackageName: ESMap; } diff --git a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-project-where-dts-file-contains-fewer-modules-than-original-file.js b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-project-where-dts-file-contains-fewer-modules-than-original-file.js index 5fcf32a15216c..b21a131486dbf 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-project-where-dts-file-contains-fewer-modules-than-original-file.js +++ b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-project-where-dts-file-contains-fewer-modules-than-original-file.js @@ -63,33 +63,48 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 u Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core 1 undefined Config: /user/username/projects/myproject/core/tsconfig.json WatchType: Wild card directory FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/myClass.d.ts 500 undefined WatchType: Closed Script info -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/anotherClass.d.ts 500 undefined WatchType: Closed Script info -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic/index.d.ts 500 undefined WatchType: Closed Script info +Reusing resolution of module '../logic' from '/user/username/projects/myproject/tests/index.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/logic/index.ts'. +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/logic/index.ts 500 undefined WatchType: Closed Script info +Reusing resolution of module '../core/myClass' from '/user/username/projects/myproject/logic/index.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/core/myClass.ts'. +Reusing resolution of module '../core/anotherClass' from '/user/username/projects/myproject/logic/index.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/core/anotherClass.ts'. +======== Resolving module '../core' from '/user/username/projects/myproject/logic/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/myproject/logic/tsconfig.json'. +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/core', target file type 'TypeScript'. +File '/user/username/projects/myproject/core.ts' does not exist. +File '/user/username/projects/myproject/core.tsx' does not exist. +File '/user/username/projects/myproject/core.d.ts' does not exist. +File '/user/username/projects/myproject/core/package.json' does not exist. +File '/user/username/projects/myproject/core/index.ts' exist - use it as a name resolution result. +======== Module name '../core' was successfully resolved to '/user/username/projects/myproject/core/index.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/myClass.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/index.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/core/anotherClass.ts 500 undefined WatchType: Closed Script info DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tests/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tests/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tests/tsconfig.json WatchType: Type roots -Finishing updateGraphWorker: Project: /user/username/projects/myproject/tests/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Completely Elapsed:: *ms +Finishing updateGraphWorker: Project: /user/username/projects/myproject/tests/tsconfig.json Version: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/myproject/tests/tsconfig.json' (Configured) - Files (5) + Files (6) /a/lib/lib.d.ts - /user/username/projects/myproject/core/myClass.d.ts - /user/username/projects/myproject/core/anotherClass.d.ts - /user/username/projects/myproject/logic/index.d.ts + /user/username/projects/myproject/core/myClass.ts + /user/username/projects/myproject/core/index.ts + /user/username/projects/myproject/core/anotherClass.ts + /user/username/projects/myproject/logic/index.ts /user/username/projects/myproject/tests/index.ts ../../../../../a/lib/lib.d.ts Default library - ../core/myClass.d.ts - Imported via "../core/myClass" from file '../logic/index.d.ts' - File is output of project reference source '../core/myClass.ts' - ../core/anotherClass.d.ts - Imported via "../core/anotherClass" from file '../logic/index.d.ts' - File is output of project reference source '../core/anotherClass.ts' - ../logic/index.d.ts + ../core/myClass.ts + Imported via "../core/myClass" from file '../logic/index.ts' + ../core/index.ts + Imported via "../core" from file '../logic/index.ts' + ../core/anotherClass.ts + Imported via "../core/anotherClass" from file '../logic/index.ts' + ../logic/index.ts Imported via "../logic" from file 'index.ts' - File is output of project reference source '../logic/index.ts' index.ts Matched by include pattern '**/*' in 'tsconfig.json' @@ -97,7 +112,7 @@ Project '/user/username/projects/myproject/tests/tsconfig.json' (Configured) Search path: /user/username/projects/myproject/tests For info: /user/username/projects/myproject/tests/tsconfig.json :: No config files found. Project '/user/username/projects/myproject/tests/tsconfig.json' (Configured) - Files (5) + Files (6) ----------------------------------------------- Open files: @@ -119,22 +134,26 @@ interface RegExp {} interface String { charAt: any; } interface Array { length: number; [n: number]: T; } -{"fileName":"/user/username/projects/myproject/core/myClass.d.ts","version":"-7432826827-export declare class myClass {\n}\n"} -export declare class myClass { -} - +{"fileName":"/user/username/projects/myproject/core/myClass.ts","version":"-11785903855-export class myClass { }"} +export class myClass { } -{"fileName":"/user/username/projects/myproject/core/anotherClass.d.ts","version":"-6928009824-export declare class anotherClass {\n}\n"} -export declare class anotherClass { -} +{"fileName":"/user/username/projects/myproject/core/index.ts","version":"4120767815-export function bar() { return 10; }"} +export function bar() { return 10; } +{"fileName":"/user/username/projects/myproject/core/anotherClass.ts","version":"-6664885476-export class anotherClass { }"} +export class anotherClass { } -{"fileName":"/user/username/projects/myproject/logic/index.d.ts","version":"-26318514585-import { myClass } from \"../core/myClass\";\nimport { anotherClass } from \"../core/anotherClass\";\nexport declare function returnMyClass(): myClass;\nexport declare function returnAnotherClass(): anotherClass;\n"} +{"fileName":"/user/username/projects/myproject/logic/index.ts","version":"-8233748805-import { myClass } from \"../core/myClass\";\nimport { bar } from \"../core\";\nimport { anotherClass } from \"../core/anotherClass\";\nexport function returnMyClass() {\n bar();\n return new myClass();\n}\nexport function returnAnotherClass() {\n return new anotherClass();\n}"} import { myClass } from "../core/myClass"; +import { bar } from "../core"; import { anotherClass } from "../core/anotherClass"; -export declare function returnMyClass(): myClass; -export declare function returnAnotherClass(): anotherClass; - +export function returnMyClass() { + bar(); + return new myClass(); +} +export function returnAnotherClass() { + return new anotherClass(); +} {"fileName":"/user/username/projects/myproject/tests/index.ts","version":"-2125404654-import { returnMyClass } from \"../logic\";\nreturnMyClass();"} import { returnMyClass } from "../logic"; diff --git a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-sample-project.js b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-sample-project.js index e02935abdd4ef..32c54b49e1ed7 100644 --- a/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-sample-project.js +++ b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-sample-project.js @@ -75,34 +75,43 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic 1 un Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic 1 undefined Config: /user/username/projects/sample1/logic/tsconfig.json WatchType: Wild card directory FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core/index.d.ts 500 undefined WatchType: Closed Script info -FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core/anotherModule.d.ts 500 undefined WatchType: Closed Script info -FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic/index.d.ts 500 undefined WatchType: Closed Script info +Reusing resolution of module '../core/index' from '/user/username/projects/sample1/tests/index.ts' of old program, it was successfully resolved to '/user/username/projects/sample1/core/index.ts'. +Reusing resolution of module '../logic/index' from '/user/username/projects/sample1/tests/index.ts' of old program, it was successfully resolved to '/user/username/projects/sample1/logic/index.ts'. +Reusing resolution of module '../core/anotherModule' from '/user/username/projects/sample1/tests/index.ts' of old program, it was successfully resolved to '/user/username/projects/sample1/core/anotherModule.ts'. +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core/index.ts 500 undefined WatchType: Closed Script info +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/logic/index.ts 500 undefined WatchType: Closed Script info +Reusing resolution of module '../core/anotherModule' from '/user/username/projects/sample1/logic/index.ts' of old program, it was successfully resolved to '/user/username/projects/sample1/core/anotherModule.ts'. +======== Resolving module '../core/index' from '/user/username/projects/sample1/logic/index.ts'. ======== +Using compiler options of project reference redirect '/user/username/projects/sample1/logic/tsconfig.json'. +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/sample1/core/index', target file type 'TypeScript'. +File '/user/username/projects/sample1/core/index.ts' exist - use it as a name resolution result. +======== Module name '../core/index' was successfully resolved to '/user/username/projects/sample1/core/index.ts'. ======== +FileWatcher:: Added:: WatchInfo: /user/username/projects/sample1/core/anotherModule.ts 500 undefined WatchType: Closed Script info DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/tests/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/tests/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/sample1/node_modules/@types 1 undefined Project: /user/username/projects/sample1/tests/tsconfig.json WatchType: Type roots -Finishing updateGraphWorker: Project: /user/username/projects/sample1/tests/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Completely Elapsed:: *ms +Finishing updateGraphWorker: Project: /user/username/projects/sample1/tests/tsconfig.json Version: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Project '/user/username/projects/sample1/tests/tsconfig.json' (Configured) Files (5) /a/lib/lib.d.ts - /user/username/projects/sample1/core/index.d.ts - /user/username/projects/sample1/core/anotherModule.d.ts - /user/username/projects/sample1/logic/index.d.ts + /user/username/projects/sample1/core/index.ts + /user/username/projects/sample1/core/anotherModule.ts + /user/username/projects/sample1/logic/index.ts /user/username/projects/sample1/tests/index.ts ../../../../../a/lib/lib.d.ts Default library - ../core/index.d.ts + ../core/index.ts Imported via '../core/index' from file 'index.ts' - File is output of project reference source '../core/index.ts' - ../core/anotherModule.d.ts - Imported via '../core/anotherModule' from file '../logic/index.d.ts' + Imported via '../core/index' from file '../logic/index.ts' + ../core/anotherModule.ts + Imported via '../core/anotherModule' from file '../logic/index.ts' Imported via '../core/anotherModule' from file 'index.ts' - File is output of project reference source '../core/anotherModule.ts' - ../logic/index.d.ts + ../logic/index.ts Imported via '../logic/index' from file 'index.ts' - File is output of project reference source '../logic/index.ts' index.ts Part of 'files' list in tsconfig.json @@ -132,20 +141,23 @@ interface RegExp {} interface String { charAt: any; } interface Array { length: number; [n: number]: T; } -{"fileName":"/user/username/projects/sample1/core/index.d.ts","version":"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map"} -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map +{"fileName":"/user/username/projects/sample1/core/index.ts","version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n"} +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -{"fileName":"/user/username/projects/sample1/core/anotherModule.d.ts","version":"-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map"} -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map -{"fileName":"/user/username/projects/sample1/logic/index.d.ts","version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"} -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; +{"fileName":"/user/username/projects/sample1/core/anotherModule.ts","version":"-2676574883-export const World = \"hello\";\r\n"} +export const World = "hello"; + + +{"fileName":"/user/username/projects/sample1/logic/index.ts","version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"} +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; {"fileName":"/user/username/projects/sample1/tests/index.ts","version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"}